-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
193 lines (181 loc) · 4.79 KB
/
docusaurus.config.ts
File metadata and controls
193 lines (181 loc) · 4.79 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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'Helios Hub',
tagline: 'All about the Helios Ecosystem to Learn how to Build and Innovate.',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://hub.helios.network/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'helios-network', // Usually your GitHub org/user name.
projectName: 'helios-hub', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
remarkPlugins: [require('remark-math')],
rehypePlugins: [require('rehype-katex')],
},
blog: {
path: 'articles',
routeBasePath: 'articles',
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
algolia: {
appId: 'IU9TP7H66Z',
apiKey: '8523169bbcd386a82283474e47386dba',
indexName: 'hub-helioschain',
// Optional parameters:
insights: true, // Enables click analytics
},
colorMode: {
defaultMode: "light",
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: {
title: 'Helios Hub',
logo: {
alt: 'Helios Network – Secure, Automated, and Interchain-Ready',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'learnSidebar',
position: 'left',
label: 'Learn',
},
{
type: 'docSidebar',
sidebarId: 'buildSidebar',
position: 'left',
label: 'Build',
},
{
type: 'docSidebar',
sidebarId: 'innovateSidebar',
position: 'left',
label: 'Innovate',
},
{
type: 'docSidebar',
sidebarId: 'testnetSidebar',
position: 'left',
label: 'Testnet',
},
{to: '/articles', label: 'Articles', position: 'left'},
{
type: 'search',
position: 'right',
},
{
href: 'https://github.com/helios-network',
label: 'GitHub',
position: 'right',
},
{
href: 'https://helios-network.github.io/HIP',
label: 'Helios Improvement Proposals (HIPs)',
position: 'right'
}
],
},
footer: {
style: 'light',
links: [
{
title: 'Docs',
items: [
{
label: 'Learn',
to: '/docs/learn/intro/what-is-helios',
},
{
label: 'Build',
to: '/docs/build/running-a-node/system-requirements',
},
{
label: 'Innovate',
to: '/docs/innovate/building-with-helios/developing-dapps',
},
{
label: 'Testnet',
to: '/docs/testnet',
},
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.gg/AjpJnJxt5e',
},
{
label: 'Telegram',
href: 'https://t.me/heliosblock',
},
],
},
{
title: 'More',
items: [
{
label: 'Articles',
to: '/articles',
},
{
label: 'GitHub',
href: 'https://github.com/helios-network',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Helios Foundation. All rights reserved.`,
},
prism: {
theme: prismThemes.duotoneLight,
darkTheme: prismThemes.duotoneDark,
},
} satisfies Preset.ThemeConfig,
plugins: [
// [
// require.resolve('@cmfcmf/docusaurus-search-local'),
// {
// indexDocs: true,
// indexBlog: true,
// language: ['en'],
// },
// ],
],
};
export default config;