docusaurus.config.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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: ['shell-session'],
  56. additionalLanguages: ['swift'],
  57. },
  58. colorMode: {
  59. defaultMode: 'dark',
  60. disableSwitch: false,
  61. respectPrefersColorScheme: false,
  62. },
  63. navbar: {
  64. hideOnScroll: true,
  65. title: 'TIL',
  66. logo: {
  67. alt: 'windhamdavid',
  68. src: 'img/zw.png',
  69. },
  70. items: [
  71. {to: 'about/',activeBasePath: 'til',label: 'About',position: 'left'},
  72. {to: 'docs/',activeBasePath: 'docs',label: 'Docs',position: 'left'},
  73. {to: 'notes/',activeBasePath: 'notes',label: 'Notes',position: 'left'},
  74. {to: 'lists/',activeBasePath: 'lists',label: 'Lists',position: 'left'},
  75. {to: 'help', label: 'Help', position: 'left'},
  76. {type: 'search', position: 'left'},
  77. {
  78. href: 'https://davidawindham.com/desk',
  79. label: 'David A. Windham',
  80. 'aria-label': 'David A. Windham',
  81. className: 'header-homepage-link',
  82. target: '_self',
  83. position: 'right',
  84. },
  85. ],
  86. },
  87. },
  88. presets: [
  89. [
  90. '@docusaurus/preset-classic',
  91. {
  92. docs: {
  93. sidebarPath: require.resolve('./sidebars.js'),
  94. editUrl:'https://code.davidawindham.com/david/til/src/master/',
  95. },
  96. theme: {
  97. customCss: require.resolve('./src/css/custom.css'),
  98. },
  99. blog: {
  100. feedOptions: {
  101. type: null,
  102. },
  103. },
  104. },
  105. ],
  106. ],
  107. };