microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
docs/docusaurus/docusaurus.config.js
153lines · modecode
| 1 | // @ts-check |
| 2 | import {themes as prismThemes} from 'prism-react-renderer'; |
| 3 | import remarkGithubAlert from 'remark-github-blockquote-alert'; |
| 4 | |
| 5 | /** @type {import('@docusaurus/types').Config} */ |
| 6 | const config = { |
| 7 | title: 'HVE Core', |
| 8 | tagline: 'AI-Driven Software Development Across the Full Lifecycle', |
| 9 | favicon: 'img/microsoft-logo.svg', |
| 10 | |
| 11 | future: { |
| 12 | v4: true, |
| 13 | }, |
| 14 | |
| 15 | url: 'https://microsoft.github.io', |
| 16 | baseUrl: '/hve-core/', |
| 17 | |
| 18 | organizationName: 'microsoft', |
| 19 | projectName: 'hve-core', |
| 20 | |
| 21 | onBrokenLinks: 'throw', |
| 22 | |
| 23 | markdown: { |
| 24 | mermaid: true, |
| 25 | hooks: { |
| 26 | onBrokenMarkdownLinks: 'throw', |
| 27 | }, |
| 28 | }, |
| 29 | |
| 30 | i18n: { |
| 31 | defaultLocale: 'en', |
| 32 | locales: ['en'], |
| 33 | }, |
| 34 | |
| 35 | presets: [ |
| 36 | [ |
| 37 | 'classic', |
| 38 | /** @type {import('@docusaurus/preset-classic').Options} */ |
| 39 | ({ |
| 40 | docs: { |
| 41 | path: '../', |
| 42 | exclude: [ |
| 43 | 'docusaurus/**', |
| 44 | 'announcements/**', |
| 45 | '**/_*.{js,jsx,ts,tsx,md,mdx}', |
| 46 | '**/_*/**', |
| 47 | '**/*.test.{js,jsx,ts,tsx}', |
| 48 | '**/__tests__/**', |
| 49 | ], |
| 50 | sidebarPath: './sidebars.js', |
| 51 | showLastUpdateTime: true, |
| 52 | showLastUpdateAuthor: true, |
| 53 | editUrl: ({ docPath }) => |
| 54 | `https://github.com/microsoft/hve-core/tree/main/docs/${docPath}`, |
| 55 | remarkPlugins: [remarkGithubAlert], |
| 56 | }, |
| 57 | blog: false, |
| 58 | theme: { |
| 59 | customCss: './src/css/custom.css', |
| 60 | }, |
| 61 | }), |
| 62 | ], |
| 63 | ], |
| 64 | |
| 65 | themes: ['@docusaurus/theme-mermaid'], |
| 66 | |
| 67 | themeConfig: |
| 68 | /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 69 | ({ |
| 70 | image: 'img/microsoft-logo.svg', |
| 71 | colorMode: { |
| 72 | respectPrefersColorScheme: true, |
| 73 | }, |
| 74 | navbar: { |
| 75 | title: 'HVE Core', |
| 76 | logo: { |
| 77 | alt: 'Microsoft', |
| 78 | src: 'img/microsoft-logo.svg', |
| 79 | width: 26, |
| 80 | height: 26, |
| 81 | }, |
| 82 | items: [ |
| 83 | { |
| 84 | type: 'docSidebar', |
| 85 | sidebarId: 'docsSidebar', |
| 86 | position: 'left', |
| 87 | label: 'Documentation', |
| 88 | }, |
| 89 | { |
| 90 | type: 'dropdown', |
| 91 | label: 'Topics', |
| 92 | position: 'left', |
| 93 | items: [ |
| 94 | { label: 'Getting Started', to: '/docs/category/getting-started' }, |
| 95 | { label: 'HVE Guide', to: '/docs/category/hve-guide' }, |
| 96 | { label: 'RPI Workflow', to: '/docs/category/rpi' }, |
| 97 | { label: 'Agents', to: '/docs/category/agents' }, |
| 98 | { label: 'Architecture', to: '/docs/category/architecture' }, |
| 99 | { label: 'Contributing', to: '/docs/category/contributing' }, |
| 100 | { label: 'Security', to: '/docs/category/security' }, |
| 101 | { label: 'Templates', to: '/docs/category/templates' }, |
| 102 | { label: 'Customization', to: '/docs/category/customization' }, |
| 103 | ], |
| 104 | }, |
| 105 | { |
| 106 | href: 'https://github.com/microsoft/hve-core', |
| 107 | label: 'GitHub', |
| 108 | position: 'right', |
| 109 | }, |
| 110 | ], |
| 111 | }, |
| 112 | footer: { |
| 113 | style: 'dark', |
| 114 | links: [ |
| 115 | { |
| 116 | title: 'Documentation', |
| 117 | items: [ |
| 118 | { label: 'Getting Started', to: '/docs/category/getting-started' }, |
| 119 | { label: 'HVE Guide', to: '/docs/category/hve-guide' }, |
| 120 | { label: 'RPI Workflow', to: '/docs/category/rpi' }, |
| 121 | { label: 'Agents', to: '/docs/category/agents' }, |
| 122 | { label: 'Architecture', to: '/docs/category/architecture' }, |
| 123 | ], |
| 124 | }, |
| 125 | { |
| 126 | title: 'Resources', |
| 127 | items: [ |
| 128 | { label: 'Contributing', to: '/docs/category/contributing' }, |
| 129 | { label: 'Security', to: '/docs/category/security' }, |
| 130 | { label: 'Templates', to: '/docs/category/templates' }, |
| 131 | { label: 'Customization', to: '/docs/category/customization' }, |
| 132 | ], |
| 133 | }, |
| 134 | { |
| 135 | title: 'Community', |
| 136 | items: [ |
| 137 | { |
| 138 | label: 'GitHub', |
| 139 | href: 'https://github.com/microsoft/hve-core', |
| 140 | }, |
| 141 | ], |
| 142 | }, |
| 143 | ], |
| 144 | copyright: `© Microsoft ${new Date().getFullYear()}. Built with HVE.`, |
| 145 | }, |
| 146 | prism: { |
| 147 | theme: prismThemes.github, |
| 148 | darkTheme: prismThemes.dracula, |
| 149 | }, |
| 150 | }), |
| 151 | }; |
| 152 | |
| 153 | export default config; |
| 154 | |