-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
63 lines (61 loc) · 1.48 KB
/
docusaurus.config.js
File metadata and controls
63 lines (61 loc) · 1.48 KB
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
// @ts-check
import { themes as prismThemes } from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'FCP',
tagline: 'FluxMQ Control Plane - 授权与运维控制平面',
url: 'https://fcp.doc.fluxmq.com',
baseUrl: '/',
organizationName: 'quickmsg',
projectName: 'fcp-doc',
baseUrlIssueBanner: false,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},
plugins: ['./plugins/favicon-plugin.js'],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebars.js',
routeBasePath: '/',
includeCurrentVersion: true,
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
logo: {
src: 'favicon.ico',
srcDark: 'favicon.ico',
width: 36,
height: 36,
alt: 'FCP',
},
title: 'FCP',
items: [],
},
footer: {
style: 'dark',
copyright: `Copyright © 2021-${new Date().getFullYear()} 非迅科技 版权所有`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
favicon: 'favicon.ico',
};
export default config;