forked from dappnode/DAppNodeDocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
120 lines (118 loc) · 2.9 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'DAppNode',
tagline: 'Dinosaurs are cool',
url: 'https://docs.dappnode.io/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo.png',
organizationName: 'dappnode', // Usually your GitHub org/user name.
projectName: 'DAppNode', // Usually your repo name.
themeConfig: {
navbar: {
title: 'DAppNode',
logo: {
alt: 'DAppNode Logo',
src: 'img/logo.png',
},
items: [
{to: '/', label: 'User Guide', position: 'left'},
{to: '/intro', label: 'Builder Docs', position: 'left'},
{to: '/dao', label: 'DAO', position: 'left'},
{
type: 'localeDropdown',
dropdownItemsAfter: [
{
to: '/help-us-translate',
label: 'Help Us Translate',
},
],
position: 'right',
},
{
href: 'https://github.com/dappnode/DAppNode',
label: 'GitHub',
position: 'right',
},
],
},
colorMode: {
defaultMode: 'dark',
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Docs',
to: 'https://docs.dappnode.io/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Medium',
href: 'https://medium.com/dappnode',
},
{
label: 'Discord',
href: 'https://discord.com/invite/dappnode',
},
{
label: 'Twitter',
href: 'https://twitter.com/DAppNode',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/dappnode',
},
{
label: 'Youtube',
href: 'https://www.youtube.com/channel/UCKnEqk4yVMN_Z6B8ikloYYA',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} DAppNode, Inc. Built with Docusaurus.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
routeBasePath: '/',
editLocalizedFiles: true,
editUrl:
'https://github.com/dappnode/DAppNodeDocs/blob/master',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
themes: [
// ... Your other themes.
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
docsRouteBasePath: "/",
language: "en",
},
],
],
};