github.com/kubri/kubri@v0.5.1-0.20240317001612-bda2aaef967e/website/docusaurus.config.ts (about) 1 import { themes as prismThemes } from 'prism-react-renderer' 2 import type { Config } from '@docusaurus/types' 3 import type * as Preset from '@docusaurus/preset-classic' 4 5 const defaultLocale = 'en' 6 7 const config: Config = { 8 title: 'Kubri', 9 tagline: 'Sign and release software for common package managers and software update frameworks.', 10 favicon: 'img/favicon.svg', 11 12 url: 'https://kubri.dev', 13 baseUrl: '/', 14 15 organizationName: 'kubri', 16 projectName: 'kubri', 17 18 onBrokenLinks: 'throw', 19 onBrokenMarkdownLinks: 'warn', 20 21 i18n: { 22 defaultLocale, 23 locales: [defaultLocale], 24 }, 25 26 plugins: [ 27 'docusaurus-plugin-sass', 28 [ 29 './src/plugins/changelog/index.js', 30 { 31 blogTitle: 'Kubri Changelog', 32 blogDescription: 'Keep yourself up-to-date about new features in every release', 33 blogSidebarCount: 'ALL', 34 blogSidebarTitle: 'Changelog', 35 routeBasePath: '/changelog', 36 showReadingTime: false, 37 postsPerPage: 20, 38 archiveBasePath: null, 39 authorsMapPath: 'authors.json', 40 feedOptions: { 41 type: 'all', 42 title: 'Kubri changelog', 43 description: 'Keep yourself up-to-date about new features in every release', 44 language: defaultLocale, 45 }, 46 }, 47 ], 48 ], 49 50 presets: [ 51 [ 52 'classic', 53 { 54 docs: { 55 sidebarPath: './sidebars.ts', 56 editUrl: 'https://github.com/kubri/kubri/tree/master/website/', 57 }, 58 blog: { 59 showReadingTime: true, 60 editUrl: 'https://github.com/kubri/kubri/tree/master/website/', 61 }, 62 theme: { 63 customCss: './src/css/custom.scss', 64 }, 65 } satisfies Preset.Options, 66 ], 67 ], 68 69 themeConfig: { 70 // Replace with your project's social card 71 // image: 'img/docusaurus-social-card.jpg', 72 navbar: { 73 title: 'Kubri', 74 logo: { 75 alt: 'Kubri Logo', 76 src: 'img/logo.svg', 77 }, 78 style: 'dark', 79 items: [ 80 { 81 type: 'docSidebar', 82 sidebarId: 'tutorialSidebar', 83 position: 'left', 84 label: 'Docs', 85 }, 86 // { to: '/blog', label: 'Blog', position: 'left' }, 87 { 88 href: 'https://github.com/kubri/kubri', 89 label: 'GitHub', 90 position: 'right', 91 }, 92 ], 93 }, 94 footer: { 95 style: 'dark', 96 links: [ 97 { 98 title: 'Docs', 99 items: [ 100 { 101 label: 'Installation', 102 to: '/docs/installation', 103 }, 104 { 105 label: 'CLI Reference', 106 to: '/docs/cli', 107 }, 108 { 109 label: 'Configuration', 110 to: '/docs/configuration', 111 }, 112 ], 113 }, 114 { 115 title: 'Community', 116 items: [ 117 { 118 label: 'GitHub', 119 href: 'https://github.com/kubri/kubri', 120 }, 121 { 122 label: 'Stack Overflow', 123 href: 'https://stackoverflow.com/questions/tagged/kubri', 124 }, 125 ], 126 }, 127 { 128 title: 'More', 129 items: [ 130 // { 131 // label: 'Blog', 132 // to: '/blog', 133 // }, 134 { 135 label: 'Changelog', 136 to: '/changelog', 137 }, 138 ], 139 }, 140 ], 141 // copyright: `Copyright © ${new Date().getFullYear()} Adam Bouqdib.`, 142 }, 143 prism: { 144 theme: prismThemes.github, 145 darkTheme: prismThemes.dracula, 146 additionalLanguages: ['bash'], 147 }, 148 } satisfies Preset.ThemeConfig, 149 } 150 151 export default config