-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
119 lines (115 loc) · 3.1 KB
/
docusaurus.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Vodyani',
tagline: '构建企业级 web 框架的不二之选 ✨',
url: 'https://vodyani.netlify.app',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo.png',
organizationName: 'Vodyani',
projectName: 'Vodyani',
i18n: {
defaultLocale: 'zh-cn',
locales: ['zh-cn', 'en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
// themes: ['@docusaurus/theme-search-algolia'],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// SEO
metadata: [
{ name: "Vodyani", content: "Vodyani" },
],
navbar: {
title: 'Vodyani',
logo: {
alt: 'Vodyani Logo',
src: 'img/logo.png',
},
items: [
{
type: 'doc',
label: '指南',
docId: 'intro',
position: 'left',
},
// todo: 增加版本控制
// {
// type: "dropdown",
// label: "v8.x",
// position: 'right',
// items: [
// {
// label: "v8.x",
// href: "https://vodyani.netlify.app/8",
// },
// ],
// },
{
type: 'localeDropdown',
position: 'right',
},
{
type: "search",
position: "right",
},
{
href: 'https://github.com/vodyani',
position: 'right',
className: "header-github-link",
"aria-label": "GitHub repository",
},
],
},
// todo: 增加页脚内容
footer: {
style: 'dark',
links: [
// {
// title: 'Community',
// items: [
// {
// label: 'Stack Overflow',
// href: 'https://stackoverflow.com/questions/tagged/vodyani',
// },
// ],
// },
],
copyright: `Copyright © ${new Date().getFullYear()} ChoGathK, Inc. `,
},
}),
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
language: ["en", "zh"],
translations: {
"search_placeholder": "Search",
"see_all_results": "See all results",
"no_results": "No results.",
"search_results_for": "Search results for \"{{ keyword }}\"",
"search_the_documentation": "Search the documentation",
"count_documents_found": "{{ count }} document found",
"count_documents_found_plural": "{{ count }} documents found",
"no_documents_were_found": "No documents were found"
}
},
],
],
};
module.exports = config;