-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
147 lines (135 loc) · 3.91 KB
/
docusaurus.config.js
File metadata and controls
147 lines (135 loc) · 3.91 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
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from 'prism-react-renderer';
import redirects from './redirects.js';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Nethermind documentation',
tagline: 'A robust execution client for Ethereum node operators.',
favicon: 'images/favicon.svg',
url: 'https://docs.nethermind.io',
baseUrl: '/',
organizationName: 'NethermindEth',
projectName: 'docs',
onBrokenLinks: 'throw',
markdown: {
hooks:{
onBrokenMarkdownLinks: 'warn'
}
},
i18n: {
defaultLocale: 'en',
locales: ['en']
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: './sidebars.js',
showLastUpdateTime: true,
editUrl: 'https://github.com/NethermindEth/docs/tree/main',
exclude: ['interacting/json-rpc-ns/eth_*.md']
},
blog: false,
theme: {
customCss: './src/css/custom.css'
},
gtag: {
trackingID: 'G-4JDCNMPQ22'
}
})
]
],
headTags: [
{
tagName: 'link',
attributes: {
rel: 'preconnect',
href: 'https://fonts.googleapis.com'
}
},
{
tagName: 'link',
attributes: {
rel: 'preconnect',
href: 'https://fonts.gstatic.com',
crossorigin: 'crossorigin'
}
},
{
tagName: 'link',
attributes: {
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400;1,9..40,500;1,9..40,600;1,9..40,700&family=Exo:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap'
}
}
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
respectPrefersColorScheme: true
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
},
image:
'https://github.com/NethermindEth/docs/assets/35319980/163ba000-69b1-45c6-86eb-e8c53109839f',
navbar: {
hideOnScroll: true,
logo: {
alt: 'Nethermind',
src: 'images/logo_dark.svg',
srcDark: 'images/logo_light.svg',
href: '/',
target: '_self'
},
items: [
{
type: 'docsVersionDropdown',
position: 'left',
dropdownActiveClassDisabled: true
},
{
'aria-label': 'GitHub',
className: 'header-social-link header-github-icon',
href: 'https://github.com/NethermindEth/nethermind',
position: 'right'
},
{
'aria-label': 'Discord',
className: 'header-social-link header-discord-icon',
href: 'https://discord.gg/GXJFaYk',
position: 'right'
},
{
'aria-label': 'X',
className: 'header-social-link header-x-icon',
href: 'https://x.com/nethermind',
position: 'right'
}
]
},
algolia: {
appId: '4I20VAM8JS',
apiKey: 'db0d2f0b1fc0c714f386cd90fd39cbe7',
indexName: 'nethermind'
},
prism: {
additionalLanguages: ['bash', 'csharp', 'docker', 'ini', 'json', 'powershell'],
theme: prismThemes.github,
darkTheme: prismThemes.dracula
}
}),
plugins: [['@docusaurus/plugin-client-redirects', { ...redirects }]]
};
export default config;