forked from galacticcouncil/hydration-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
111 lines (110 loc) · 2.51 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
const math = require('remark-math');
const katex = require('rehype-katex');
module.exports = {
title: "HydraDX Docs",
tagline: "Let's learn this",
url: "https://docs.hydradx.io",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
favicon: "img/favicon.png",
organizationName: "galacticcouncil", // Usually your GitHub org/user name.
projectName: "HydraDX-docs", // Usually your repo name.
themeConfig: {
prism: {
additionalLanguages: ['rust'],
},
navbar: {
title: "HydraDX Documentation",
logo: {
alt: "HydraDX logo",
src: "img/logo.svg",
},
items: [
{
to: "/",
activeBasePath: "/",
label: "Docs",
position: "left",
},
{
type: 'localeDropdown',
position: 'right',
},
{
href: "https://hydradx.io",
label: "HydraDX Homepage",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.gg/HDNPFFrcnW",
},
{
label: "Twitter",
href: "https://twitter.com/hydra_dx",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Intergalactic, Inc. Built with Docusaurus.`,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
remarkPlugins: [math],
rehypePlugins: [katex],
editUrl: "https://github.com/galacticcouncil/HydraDX-docs/edit/main/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
integrity:
'sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc',
crossorigin: 'anonymous',
}
],
i18n: {
defaultLocale: 'en',
locales: ['en', 'de', 'ru', 'es', 'fr', 'cn'],
localeConfigs: {
en: {
label: 'English',
},
de: {
label: 'Deutsch',
},
ru: {
label: 'русский',
},
es: {
label: 'español',
},
fr: {
label: 'français',
},
cn: {
label: '中文',
}
},
},
};