docusaurus.config.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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/til',
  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. title: 'TIL',
  37. logo: {
  38. alt: 'windhamdavid',
  39. src: 'img/zw.png',
  40. },
  41. items: [
  42. {to: 'docs/',activeBasePath: 'docs',label: 'Docs',position: 'left'},
  43. {to: 'about/',activeBasePath: 'til',label: 'About',position: 'left'},
  44. {to: 'help', label: 'Help', position: 'left'},
  45. {
  46. search: true,
  47. },
  48. ],
  49. },
  50. },
  51. presets: [
  52. [
  53. '@docusaurus/preset-classic',
  54. {
  55. docs: {
  56. sidebarPath: require.resolve('./sidebars.js'),
  57. editUrl:'https://code.davidawindham.com/david/til/',
  58. },
  59. theme: {
  60. customCss: require.resolve('./src/css/custom.css'),
  61. },
  62. blog: {
  63. feedOptions: {
  64. type: null,
  65. },
  66. },
  67. },
  68. ],
  69. ],
  70. };