docusaurus.config.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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: 'right'},
  45. {to: 'help', label: 'Help', position: 'right'},
  46. {type: 'search', position: 'right'},
  47. ],
  48. },
  49. },
  50. presets: [
  51. [
  52. '@docusaurus/preset-classic',
  53. {
  54. docs: {
  55. sidebarPath: require.resolve('./sidebars.js'),
  56. editUrl:'https://code.davidawindham.com/david/til/src/master/',
  57. },
  58. theme: {
  59. customCss: require.resolve('./src/css/custom.css'),
  60. },
  61. blog: {
  62. feedOptions: {
  63. type: null,
  64. },
  65. },
  66. },
  67. ],
  68. ],
  69. };