docusaurus.config.js 2.6 KB

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