docusaurus.config.js 1.9 KB

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