-
Notifications
You must be signed in to change notification settings - Fork 33
/
docusaurus.config.js
222 lines (222 loc) · 7.66 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
module.exports = {
title: 'Furion',
tagline: '让 .NET 开发更简单,更通用,更流行。',
url: 'http://icedmango.github.io',
baseUrl: '/furion-doc/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: '百签科技(广东)有限公司',
projectName: 'Furion',
deploymentBranch: 'master',
scripts: [],
themeConfig: {
zoom: {
selector:
'.markdown :not(em) > img,.markdown > img, article img[loading]',
background: {
light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)',
},
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
config: {},
},
// announcementBar: {
// id: "vip",
// content:
// "⭐️ 开通 VIP 服务仅需 499 元/年,尊享 365 天项目无忧 <a href='/docs/subscribe' style='background-color:rgb(199, 29, 36);color:#ffffff;padding:1px 10px;border-radius:3px;text-decoration:none;display:inline-block;margin:0 5px;font-size:12px;cursor:pointer;'>立即开通</a>⭐️",
// backgroundColor: "#4623d9",
// textColor: "yellow",
// isCloseable: false,
// },
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
},
prism: {
additionalLanguages: ['powershell', 'csharp', 'sql'],
// theme: require("prism-react-renderer/themes/github"),
// darkTheme: require("prism-react-renderer/themes/dracula"),
},
navbar: {
title: 'Furion',
logo: {
alt: 'Furion Logo',
src: 'img/furionlogo.png',
},
hideOnScroll: true,
items: [
// {
// type: "docsVersionDropdown",
// position: "left",
// },
{
to: 'docs/category/appendix',
activeBasePath: 'docs',
label: '文档',
position: 'left',
},
{
to: 'docs/global/app',
activeBasePath: 'docs/global',
label: '静态类',
position: 'left',
},
{
to: 'docs/settings/appsettings',
activeBasePath: 'docs/settings',
label: '配置',
position: 'left',
},
{ to: 'blog', label: '博客', position: 'left' },
{
label: '更新日志',
position: 'left',
items: [
{
label: '📝 查看日志(v4.9.1.7)',
href: '/docs/upgrade',
},
{
label: '🚀 路线图',
href: '/docs/target',
},
],
},
{
label: 'API',
position: 'left',
href: 'http://furion.baiqian.ltd/api/api',
},
// {
// to: "docs/net6-to-net7",
// activeBasePath: "docs/net6-to-net7",
// label: ".NET7🚀",
// position: "left",
// },
{
label: '仓库',
position: 'right',
items: [
// {
// label: "Gitee(主库)",
// href: "https://gitee.com/dotnetchina/Furion",
// },
{
label: 'GitHub',
href: 'https://github.com/IcedMango/Furion',
},
{
label: 'NuGet',
href: 'https://www.nuget.org/profiles/monk.soul',
},
],
},
// {
// label: "社区",
// position: "right",
// href: "https://gitee.com/dotnetchina",
// },
{
label: '案例',
position: 'right',
to: 'docs/case',
activeBasePath: 'docs/case',
},
// {
// label: "赞助",
// position: "right",
// to: "docs/donate",
// activeBasePath: "docs/donate",
// },
],
},
footer: {
style: 'dark',
links: [
{
title: '文档',
items: [
{
label: '入门',
to: 'docs/category/getstart',
},
{
label: '手册',
to: 'docs/category/appendix',
},
],
},
// {
// title: "社区",
// items: [
// {
// label: "讨论",
// href: "https://gitee.com/dotnetchina/Furion/issues",
// },
// {
// label: "看板",
// href: "https://gitee.com/dotnetchina/Furion/board",
// },
// ],
// },
{
title: '更多',
items: [
{
label: '博客',
to: 'blog',
},
{
label: '仓库',
href: 'https://github.com/IcedMango/Furion',
},
],
},
],
copyright: `版权 © 2020-present 百小僧, 百签科技(广东)有限公司`,
// logo: {
// src: "img/chinadotnet.png",
// href: "https://gitee.com/dotnetchina",
// },
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/IcedMango/Furion/tree/v4/handbook',
showLastUpdateTime: true,
showLastUpdateAuthor: true,
sidebarCollapsible: true,
sidebarCollapsed: true,
},
blog: {
showReadingTime: true,
editUrl:
'https://github.com/IcedMango/Furion/tree/v4/handbook',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
plugins: [require.resolve('docusaurus-plugin-image-zoom')],
themes: [
[
'@easyops-cn/docusaurus-search-local',
{
hashed: true,
language: ['en', 'zh'],
highlightSearchTermsOnTargetPage: true,
explicitSearchResultPath: true,
},
],
],
}