microsoft/hve-core

Public

mirrored fromhttps://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
hve-core-v3.3.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

docs/docusaurus/docusaurus.config.js

165lines · modecode

1// @ts-check
2import { themes as prismThemes } from 'prism-react-renderer';
3import remarkGithubAlert from 'remark-github-blockquote-alert';
4
5/** @type {import('@docusaurus/types').Config} */
6const 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: [
66 '@docusaurus/theme-mermaid',
67 [
68 '@easyops-cn/docusaurus-search-local',
69 /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
70 ({
71 hashed: true,
72 language: ['en'],
73 highlightSearchTermsOnTargetPage: true,
74 explicitSearchResultPath: true,
75 }),
76 ],
77 ],
78
79 themeConfig:
80 /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
81 ({
82 image: 'img/microsoft-logo.svg',
83 colorMode: {
84 respectPrefersColorScheme: true,
85 },
86 docs: {
87 sidebar: {
88 hideable: true,
89 autoCollapseCategories: true,
90 },
91 },
92 navbar: {
93 title: 'HVE Core',
94 logo: {
95 alt: 'Microsoft',
96 src: 'img/microsoft-logo.svg',
97 width: 26,
98 height: 26,
99 },
100 items: [
101 {
102 type: 'docSidebar',
103 sidebarId: 'docsSidebar',
104 position: 'left',
105 label: 'Documentation',
106 },
107 {
108 type: 'dropdown',
109 label: 'Topics',
110 position: 'left',
111 items: [
112 { label: 'Get Started', to: '/docs/getting-started/' },
113 { label: 'Workflows', to: '/docs/rpi/' },
114 { label: 'Customize', to: '/docs/customization/' },
115 { label: 'Reference', to: '/docs/architecture/' },
116 ],
117 },
118 {
119 href: 'https://github.com/microsoft/hve-core',
120 label: 'GitHub',
121 position: 'right',
122 },
123 ],
124 },
125 footer: {
126 style: 'dark',
127 links: [
128 {
129 title: 'Documentation',
130 items: [
131 { label: 'Getting Started', to: '/docs/getting-started/' },
132 { label: 'HVE Guide', to: '/docs/hve-guide/' },
133 { label: 'RPI Workflow', to: '/docs/rpi/' },
134 { label: 'Agents', to: '/docs/agents/' },
135 { label: 'Architecture', to: '/docs/architecture/' },
136 ],
137 },
138 {
139 title: 'Resources',
140 items: [
141 { label: 'Contributing', to: '/docs/contributing/' },
142 { label: 'Security', to: '/docs/security/' },
143 { label: 'Templates', to: '/docs/templates/' },
144 ],
145 },
146 {
147 title: 'Community',
148 items: [
149 {
150 label: 'GitHub',
151 href: 'https://github.com/microsoft/hve-core',
152 },
153 ],
154 },
155 ],
156 copyright: `© Microsoft ${new Date().getFullYear()}. Built with HVE.`,
157 },
158 prism: {
159 theme: prismThemes.github,
160 darkTheme: prismThemes.dracula,
161 },
162 }),
163};
164
165export default config;
166