This repository has been archived by the owner on May 30, 2022. It is now read-only.
forked from godwokenrises/godwoken-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
77 lines (76 loc) · 1.83 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Godwoken Documentation',
tagline: 'Godwoken Documentation',
url: 'http://docs.godwoken.io/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'nervosnetwork', // Usually your GitHub org/user name.
projectName: 'godwoken-doc', // Usually your repo name.
plugins: [
'docusaurus-plugin-matomo',
],
themeConfig: {
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: {
hideOnScroll: true,
title: 'Godwoken Documentation',
logo: {
alt: 'Nervos',
src: 'img/favicon.png',
href: 'https://www.nervos.org/',
},
items: [
{
type: 'docsVersionDropdown',
position: 'right'
},
{
href: 'https://github.com/nervosnetwork/godwoken',
label: 'GitHub',
position: 'right',
},
{
label: 'Discord',
href: 'https://discord.gg/TfC9rExfHh',
position: 'right',
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} Nervos Foundation. All Rights Reserved.`,
},
matomo: {
matomoUrl: 'https://cryptapeblog.matomo.cloud/',
siteId: '2',
phpLoader: 'matomo.php',
jsLoader: 'matomo.js',
},
},
presets: [
[
'@docusaurus/preset-classic',
{
googleAnalytics: {
trackingID: 'UA-215912231-1',
anonymizeIP: true,
},
docs: {
path: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: '/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};