|
| 1 | +// @ts-check |
| 2 | +// Note: type annotations allow type checking and IDEs autocompletion |
| 3 | + |
| 4 | +const { themes } = require('prism-react-renderer'); |
| 5 | +const lightCodeTheme = themes.github; |
| 6 | +const darkCodeTheme = themes.dracula; |
| 7 | + |
| 8 | +/** @type {import('@docusaurus/types').Config} */ |
| 9 | +const config = { |
| 10 | + title: 'Release Tool', |
| 11 | + tagline: 'Semantic Versioning & Release Management', |
| 12 | + url: 'https://sequentech.github.io', |
| 13 | + baseUrl: '/release-tool/', |
| 14 | + onBrokenLinks: 'throw', |
| 15 | + onBrokenMarkdownLinks: 'warn', |
| 16 | + favicon: 'img/favicon.ico', |
| 17 | + organizationName: 'sequentech', |
| 18 | + projectName: 'release-tool', |
| 19 | + |
| 20 | + presets: [ |
| 21 | + [ |
| 22 | + 'classic', |
| 23 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 24 | + ({ |
| 25 | + docs: { |
| 26 | + path: '.', |
| 27 | + sidebarPath: require.resolve('./sidebars.js'), |
| 28 | + editUrl: 'https://github.com/sequentech/release-tool/tree/main/docs/', |
| 29 | + exclude: ['**/node_modules/**'], |
| 30 | + }, |
| 31 | + theme: { |
| 32 | + customCss: require.resolve('./src/css/custom.css'), |
| 33 | + }, |
| 34 | + }), |
| 35 | + ], |
| 36 | + ], |
| 37 | + |
| 38 | + themeConfig: |
| 39 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 40 | + ({ |
| 41 | + colorMode: { |
| 42 | + defaultMode: 'light', |
| 43 | + disableSwitch: false, |
| 44 | + respectPrefersColorScheme: true, |
| 45 | + }, |
| 46 | + navbar: { |
| 47 | + title: 'Release Tool', |
| 48 | + items: [ |
| 49 | + { |
| 50 | + type: 'doc', |
| 51 | + docId: 'intro', |
| 52 | + position: 'left', |
| 53 | + label: 'Docs', |
| 54 | + }, |
| 55 | + { |
| 56 | + href: 'https://github.com/sequentech/release-tool', |
| 57 | + label: 'GitHub', |
| 58 | + position: 'right', |
| 59 | + }, |
| 60 | + ], |
| 61 | + }, |
| 62 | + footer: { |
| 63 | + style: 'dark', |
| 64 | + links: [ |
| 65 | + { |
| 66 | + title: 'Docs', |
| 67 | + items: [ |
| 68 | + { |
| 69 | + label: 'Introduction', |
| 70 | + to: '/docs/intro', |
| 71 | + }, |
| 72 | + ], |
| 73 | + }, |
| 74 | + ], |
| 75 | + copyright: `Copyright © ${new Date().getFullYear()} Sequent Tech Inc. Built with Docusaurus.`, |
| 76 | + }, |
| 77 | + prism: { |
| 78 | + theme: lightCodeTheme, |
| 79 | + darkTheme: darkCodeTheme, |
| 80 | + }, |
| 81 | + }), |
| 82 | +}; |
| 83 | + |
| 84 | +module.exports = config; |
0 commit comments