-
Notifications
You must be signed in to change notification settings - Fork 13
/
docusaurus.config.js
106 lines (106 loc) · 2.75 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
module.exports = {
title: 'Welcome to CKB Docs',
tagline: 'This docs is for Nervos Community members',
url: 'https://docs.ckb.dev',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'nervoscommunity', // Usually your GitHub org/user name.
projectName: 'website', // Usually your repo name.
themeConfig: {
gaGtag: {
trackingID: 'UA-134814659-2',
},
algolia: {
apiKey: '3c7fd59ae6979a7d317d3a94029c7a56',
indexName: 'ckb',
placeholder: '搜索',
algoliaOptions: {}, // Optional, if provided by Algolia
},
navbar: {
title: 'CKB Docs',
logo: {
alt: 'My Site Logo',
src: 'img/ditto.png',
},
links: [
{to: 'docs/docs/welcome/welcome-introduction', label: '文档', position: 'left'},
{to: 'blog', label: '博客', position: 'left'},
{to: 'docs/rfcs/introduction',label:'RFCs',position:'left'},
{to: 'docs/qa/welcome',label:'百科',position:'left'},
{
href: 'https://github.com/nervoscommunity/docs',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: '文档',
items: [
{
label: '开发文档',
to: 'docs/docs/welcome/welcome-introduction',
},
{
label: '博客',
to: 'blog',
},
{
label: 'RFCs',
to: 'docs/rfcs/introduction',
},
],
},
{
title: '社区',
items: [
{
label: '官方论坛',
href: 'https://talk.nervos.org',
},
{
label: 'Discord',
href: 'https://discord.gg/uWGUUpw',
},
],
},
{
title: '社交',
items: [
{
label: 'GitHub',
href: 'https://github.com/nervoscommunity/docs',
},
{
label: 'Twitter',
href: 'https://twitter.com/love_nervos',
},
{
label: '微博',
href: 'https://weibo.com/7198050632/profile?topnav=1&wvr=6',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Nervos Community. Built with Docusaurus.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/nervoscommunity/docs/blob/master/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};