123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- /** @type {import('@docusaurus/types').DocusaurusConfig} */
- module.exports = {
- title: 'David Windham | TIL',
- tagline: 'Because Today I Learned',
- url: 'https://davidawindham.com',
- baseUrl: '/til/',
- onBrokenLinks: 'throw',
- onBrokenMarkdownLinks: 'warn',
- favicon: 'img/favicon.ico',
- organizationName: 'windhamdavid',
- projectName: 'til',
- markdown: {
- mermaid: true,
- },
- themes: ['@docusaurus/theme-mermaid'],
- plugins: [
- 'plugin-image-zoom',
- require.resolve('docusaurus-plugin-matomo'),
- //require.resolve("@cmfcmf/docusaurus-search-local")
- [require.resolve('docusaurus-lunr-search'), {
- excludeRoutes: [
- 'lists/music/**/*', // exclude playlists from indexing
- ]
- }],
- [
- '@docusaurus/plugin-content-docs',
- {
- id: 'notes',
- path: 'notes',
- routeBasePath: 'notes',
- sidebarPath: require.resolve('./sidebarsnotes.js'),
- editUrl:'https://code.davidawindham.com/david/til/src/main/',
- showLastUpdateTime: true,
- },
- ],
- [
- '@docusaurus/plugin-content-docs',
- {
- id: 'lists',
- path: 'lists',
- routeBasePath: 'lists',
- sidebarPath: require.resolve('./sidebarslists.js'),
- editUrl:'https://code.davidawindham.com/david/til/src/main/',
- showLastUpdateTime: true,
- },
- ],
- [
- '@docusaurus/plugin-content-blog',
- {
- id: 'posts',
- path: 'posts',
- routeBasePath: 'posts',
- blogTitle: 'Posts',
- blogDescription: 'Posts by David Windham',
- postsPerPage: 'ALL',
- blogSidebarTitle: 'Posts',
- blogSidebarCount: 'ALL',
- feedOptions: {
- type: null,
- },
- showReadingTime: false,
- editUrl:'https://code.davidawindham.com/david/til/src/main/',
- },
- ],
- ],
- themeConfig: {
- matomo: {
- matomoUrl: 'https://davidawindham.com/wik/',
- siteId: '1',
- phpLoader: 'matomo.php',
- jsLoader: 'matomo.js',
- },
- image: 'img/zw.png',
- imageZoom: {
- options: {
- margin: 40,
- background: '#484c57',
- scrollOffset: 0,
- },
- },
- docs: {
- sidebar: {
- hideable: true,
- },
- },
- prism: {
- additionalLanguages: ['php', 'rust', 'shell-session', 'swift', 'diff'],
- },
- colorMode: {
- defaultMode: 'dark',
- disableSwitch: false,
- respectPrefersColorScheme: false,
- },
- navbar: {
- hideOnScroll: true,
- title: 'TIL',
- logo: {
- alt: 'windhamdavid',
- src: 'img/zw.png',
- },
- items: [
- {to: 'about/',activeBasePath: 'til',label: 'About',position: 'left'},
- {to: 'ai', label: 'AI',position: 'left'},
- {to: 'docs/',activeBasePath: 'docs',label: 'Docs',position: 'left'},
- {to: 'lists/',activeBasePath: 'lists',label: 'Lists',position: 'left'},
- {to: 'notes/',activeBasePath: 'notes',label: 'Notes',position: 'left'},
- {to: 'posts/',activeBasePath: 'posts',label: 'Posts',position: 'left'},
- {to: 'help', label: 'Help', position: 'left'},
- {type: 'search', position: 'left'},
- {
- href: 'https://davidawindham.com/desk',
- label: 'David A. Windham',
- 'aria-label': 'David A. Windham',
- className: 'header-homepage-link',
- target: '_self',
- position: 'right',
- },
- ],
- },
- },
- presets: [
- [
- '@docusaurus/preset-classic',
- {
- docs: {
- sidebarPath: require.resolve('./sidebars.js'),
- editUrl:'https://code.davidawindham.com/david/til/src/main/',
- showLastUpdateTime: true,
- },
- blog: {
- blogTitle: 'Posts',
- blogDescription: 'Posts by David Windham',
- postsPerPage: 'ALL',
- blogSidebarTitle: 'Posts',
- blogSidebarCount: 'ALL',
- feedOptions: {
- type: null,
- },
- showReadingTime: false,
- editUrl:'https://code.davidawindham.com/david/til/src/main/',
- },
- theme: {
- customCss: require.resolve('./src/css/custom.css'),
- },
- },
- ],
- ],
- };
|