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. plugins: [
  13. require.resolve('docusaurus-plugin-matomo'),
  14. require.resolve('docusaurus-lunr-search'),
  15. //require.resolve("@cmfcmf/docusaurus-search-local")
  16. [
  17. '@docusaurus/plugin-content-docs',
  18. {
  19. id: 'notes',
  20. path: 'notes',
  21. routeBasePath: 'notes',
  22. sidebarPath: require.resolve('./sidebarsnotes.js'),
  23. },
  24. ],
  25. [
  26. '@docusaurus/plugin-content-docs',
  27. {
  28. id: 'lists',
  29. path: 'lists',
  30. routeBasePath: 'lists',
  31. sidebarPath: require.resolve('./sidebarslists.js'),
  32. },
  33. ],
  34. ],
  35. themeConfig: {
  36. matomo: {
  37. matomoUrl: 'https://davidawindham.com/wik/',
  38. siteId: '1',
  39. phpLoader: 'matomo.php',
  40. jsLoader: 'matomo.js',
  41. },
  42. image: 'img/zw.png',
  43. hideableSidebar: true,
  44. prism: {
  45. additionalLanguages: ['shell-session'],
  46. },
  47. colorMode: {
  48. defaultMode: 'dark',
  49. disableSwitch: false,
  50. respectPrefersColorScheme: false,
  51. switchConfig: {
  52. darkIcon: '\u2800',
  53. darkIconStyle: {
  54. marginLeft: '1px',
  55. },
  56. lightIcon: '\u2800',
  57. lightIconStyle: {
  58. marginLeft: '1px',
  59. },
  60. },
  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. };