docusaurus.config.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /** @type {import('@docusaurus/types').DocusaurusConfig} */
  2. module.exports = {
  3. title: 'David Windham | TIL',
  4. tagline: 'Because Today I Learned',
  5. url: 'https://davidawindham.com',
  6. baseUrl: '/til/',
  7. onBrokenLinks: 'throw',
  8. onBrokenMarkdownLinks: 'warn',
  9. favicon: 'img/favicon.ico',
  10. organizationName: 'windhamdavid',
  11. projectName: 'til',
  12. markdown: {
  13. mermaid: true,
  14. },
  15. themes: ['@docusaurus/theme-mermaid'],
  16. plugins: [
  17. require.resolve('docusaurus-plugin-matomo'),
  18. require.resolve('docusaurus-lunr-search'),
  19. //require.resolve("@cmfcmf/docusaurus-search-local")
  20. [
  21. '@docusaurus/plugin-content-docs',
  22. {
  23. id: 'notes',
  24. path: 'notes',
  25. routeBasePath: 'notes',
  26. sidebarPath: require.resolve('./sidebarsnotes.js'),
  27. editUrl:'https://code.davidawindham.com/david/til/src/master/',
  28. },
  29. ],
  30. [
  31. '@docusaurus/plugin-content-docs',
  32. {
  33. id: 'lists',
  34. path: 'lists',
  35. routeBasePath: 'lists',
  36. sidebarPath: require.resolve('./sidebarslists.js'),
  37. editUrl:'https://code.davidawindham.com/david/til/src/master/',
  38. },
  39. ],
  40. ],
  41. themeConfig: {
  42. matomo: {
  43. matomoUrl: 'https://davidawindham.com/wik/',
  44. siteId: '1',
  45. phpLoader: 'matomo.php',
  46. jsLoader: 'matomo.js',
  47. },
  48. image: 'img/zw.png',
  49. docs: {
  50. sidebar: {
  51. hideable: true,
  52. },
  53. },
  54. prism: {
  55. additionalLanguages: ['rust', 'shell-session', 'swift', 'diff'],
  56. },
  57. colorMode: {
  58. defaultMode: 'dark',
  59. disableSwitch: false,
  60. respectPrefersColorScheme: false,
  61. },
  62. navbar: {
  63. hideOnScroll: true,
  64. title: 'TIL',
  65. logo: {
  66. alt: 'windhamdavid',
  67. src: 'img/zw.png',
  68. },
  69. items: [
  70. {to: 'about/',activeBasePath: 'til',label: 'About',position: 'left'},
  71. {to: 'docs/',activeBasePath: 'docs',label: 'Docs',position: 'left'},
  72. {to: 'notes/',activeBasePath: 'notes',label: 'Notes',position: 'left'},
  73. {to: 'lists/',activeBasePath: 'lists',label: 'Lists',position: 'left'},
  74. {to: 'help', label: 'Help', position: 'left'},
  75. {type: 'search', position: 'left'},
  76. {
  77. href: 'https://davidawindham.com/desk',
  78. label: 'David A. Windham',
  79. 'aria-label': 'David A. Windham',
  80. className: 'header-homepage-link',
  81. target: '_self',
  82. position: 'right',
  83. },
  84. ],
  85. },
  86. },
  87. presets: [
  88. [
  89. '@docusaurus/preset-classic',
  90. {
  91. docs: {
  92. sidebarPath: require.resolve('./sidebars.js'),
  93. editUrl:'https://code.davidawindham.com/david/til/src/master/',
  94. },
  95. theme: {
  96. customCss: require.resolve('./src/css/custom.css'),
  97. },
  98. blog: {
  99. feedOptions: {
  100. type: null,
  101. },
  102. },
  103. },
  104. ],
  105. ],
  106. };