-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
77 lines (77 loc) · 1.77 KB
/
docusaurus.config.js
File metadata and controls
77 lines (77 loc) · 1.77 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module.exports = {
title: 'React Go',
tagline: '快速启动你的 React 项目',
url: 'https://react-go.github.io',
baseUrl: '/',
favicon: 'favicon.png',
organizationName: 'react-go', // Usually your GitHub org/user name.
projectName: 'react-go.github.io', // Usually your repo name.
themeConfig: {
navbar: {
title: 'React Go',
logo: {
alt: 'React Go Logo',
src: 'statics/logo.png',
},
links: [
{
to: 'docs/getting-started',
activeBasePath: 'docs',
label: '文档',
position: 'left',
},
{
href: 'https://github.com/react-go',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'light',
links: [
{
title: '文档',
items: [
{
label: '快速上手',
to: 'docs/getting-started',
},
{
label: '配置参考',
to: 'docs/configuration',
},
],
},
{
title: '链接',
items: [
{
label: 'GitHub',
href: 'https://github.com/react-go',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} React Go. Built with Docusaurus.`,
},
googleAnalytics: {
trackingID: 'UA-74390371-4'
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/react-go/react-go.github.io/edit/website',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};