forked from helium/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
112 lines (109 loc) · 2.79 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
module.exports = {
title: 'Helium Documentation',
tagline: 'Documentation for the Helium Network',
url: 'https://docs.helium.com',
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'img/favicon/favicon.ico',
organizationName: 'helium', // Usually your GitHub org/user name.
projectName: 'docs', // Usually your repo name.
themeConfig: {
docs: {
sidebar: {
hideable: true,
},
},
// hideableSidebar: true,
algolia: {
appId: 'XC618T80WL',
apiKey: '7d9c9bfed6c45d91cb148ac5a365079d',
indexName: 'helium',
contextualSearch: false,
},
colorMode: {
// "light" | "dark"
defaultMode: 'light',
// Hides the switch in the navbar
// Useful if you want to support a single color mode
disableSwitch: true,
// Should we use the prefers-color-scheme media-query,
// using user system preferences, instead of the hardcoded defaultMode
respectPrefersColorScheme: false,
},
navbar: {
title: '',
style: 'primary',
logo: {
alt: 'Helium Logo',
src: 'img/icons/logoblack.svg',
srcDark: 'img/logowhite.svg',
},
items: [
{
to: '/use-the-network/console',
label: 'Try the New Console Today',
position: 'right',
activeBaseRegex: `docs`,
className: 'announcementnav',
},
{
to: '/',
label: 'Docs',
position: 'right',
activeBaseRegex: `docs`,
},
{
to: 'api',
label: 'API',
position: 'right',
activeBaseRegex: `api`,
},
{
href: 'https://github.com/helium',
position: 'right',
label: 'Github',
},
{
href: 'http://whitepaper.helium.com',
label: 'Whitepaper (2018)',
position: 'right',
},
{
href: 'https://explorer.helium.com',
label: 'Explorer',
position: 'right',
},
{
href: 'https://network.helium.com/coverage',
label: 'Coverage Map',
position: 'right',
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} Helium Foundation`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
breadcrumbs: false,
sidebarPath: require.resolve('./sidebarsDocs.js'),
routeBasePath: '/',
// Please change this to your repo.
editUrl: 'https://github.com/helium/docs/edit/master',
},
googleAnalytics: {
trackingID: 'UA-52432858-10',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
plugins: [],
}