docusaurus.config.js 1.7 KB

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