docusaurus.config.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. editUrl:'https://code.davidawindham.com/david/til/src/master/',
  24. },
  25. ],
  26. [
  27. '@docusaurus/plugin-content-docs',
  28. {
  29. id: 'lists',
  30. path: 'lists',
  31. routeBasePath: 'lists',
  32. sidebarPath: require.resolve('./sidebarslists.js'),
  33. editUrl:'https://code.davidawindham.com/david/til/src/master/',
  34. },
  35. ],
  36. ],
  37. themeConfig: {
  38. matomo: {
  39. matomoUrl: 'https://davidawindham.com/wik/',
  40. siteId: '1',
  41. phpLoader: 'matomo.php',
  42. jsLoader: 'matomo.js',
  43. },
  44. image: 'img/zw.png',
  45. hideableSidebar: true,
  46. prism: {
  47. additionalLanguages: ['shell-session'],
  48. },
  49. colorMode: {
  50. defaultMode: 'dark',
  51. disableSwitch: false,
  52. respectPrefersColorScheme: false,
  53. switchConfig: {
  54. darkIcon: '\u2800',
  55. darkIconStyle: {
  56. marginLeft: '1px',
  57. },
  58. lightIcon: '\u2800',
  59. lightIconStyle: {
  60. marginLeft: '1px',
  61. },
  62. },
  63. },
  64. navbar: {
  65. hideOnScroll: true,
  66. title: 'TIL',
  67. logo: {
  68. alt: 'windhamdavid',
  69. src: 'img/zw.png',
  70. },
  71. items: [
  72. {to: 'about/',activeBasePath: 'til',label: 'About',position: 'left'},
  73. {to: 'docs/',activeBasePath: 'docs',label: 'Docs',position: 'left'},
  74. {to: 'notes/',activeBasePath: 'notes',label: 'Notes',position: 'left'},
  75. {to: 'lists/',activeBasePath: 'lists',label: 'Lists',position: 'left'},
  76. {to: 'help', label: 'Help', position: 'left'},
  77. {type: 'search', position: 'left'},
  78. {
  79. href: 'https://davidawindham.com/desk',
  80. label: 'David A. Windham',
  81. 'aria-label': 'David A. Windham',
  82. className: 'header-homepage-link',
  83. target: '_self',
  84. position: 'right',
  85. },
  86. ],
  87. },
  88. },
  89. presets: [
  90. [
  91. '@docusaurus/preset-classic',
  92. {
  93. docs: {
  94. sidebarPath: require.resolve('./sidebars.js'),
  95. editUrl:'https://code.davidawindham.com/david/til/src/master/',
  96. },
  97. theme: {
  98. customCss: require.resolve('./src/css/custom.css'),
  99. },
  100. blog: {
  101. feedOptions: {
  102. type: null,
  103. },
  104. },
  105. },
  106. ],
  107. ],
  108. };