-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathdocusaurus.config.js
77 lines (76 loc) · 1.92 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
const math = require('remark-math');
const katex = require('rehype-katex');
module.exports = {
title: "Hydration Docs",
tagline: "Let's learn this",
url: "https://docs.hydration.net",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
favicon: "img/favicon.png",
organizationName: "galacticcouncil", // Usually your GitHub org/user name.
projectName: "Hydration-docs", // Usually your repo name.
themeConfig: {
prism: {
additionalLanguages: ['rust'],
},
navbar: {
title: "Hydration Docs",
logo: {
alt: "Hydration logo",
src: "img/logo.svg",
},
items: [
{
href: "https://hydration.net",
label: "Hydration 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/Hydration-docs/edit/main/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css',
integrity:
'sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc',
crossorigin: 'anonymous',
}
],
};