forked from Chia-Network/chia-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js.j2
156 lines (154 loc) · 4.63 KB
/
docusaurus.config.js.j2
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
const lightCodeTheme = require('prism-react-renderer/themes/nightOwlLight');
const darkCodeTheme = require('prism-react-renderer/themes/nightOwl');
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(module.exports = {
title: 'Chia Documentation',
tagline: 'The source of truth for Chia documentation. Start here to learn more about Chia. ',
url: 'https://docs.chia.net',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/chia_leaf_green.svg',
organizationName: 'Chia-Network', // Usually your GitHub org/user name.
projectName: '{{ REPOSITORY_NAME }}', // Usually your repo name.
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
// For Docs using Chinese, The `language` is recommended to set to:
// ```
language: ["en", "zh"],
// ```
// When applying `zh` in language, please install `nodejieba` in your project.
},
],
],
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh'],
},
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
gtag: {
trackingID: 'G-6HSSLLPE6Q',
anonymizeIP: true,
},
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/Chia-Network/{{ REPOSITORY_NAME }}/blob/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
id: 'cat2_launch',
content:
'CAT2 Standard Released 🌱<a target="_blank" rel="noopener noreferrer" href="/docs/cat2/cat2-intro/"> Learn about CAT1 end-of-life and CAT2 reissuance</a>',
backgroundColor: '#0d3349',
textColor: '#fff',
isCloseable: true,
},
image: '/img/og-chia.png',
navbar: {
title: ' Chia Docs',
logo: {
alt: 'My Site Logo',
src: 'img/chia_leaf_green.svg',
},
items: [
{
to: '/docs/01introduction/what-is-chia',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{to: 'https://www.chia.net/', label: 'Chia.net', position: 'left'},
{to: 'https://github.com/Chia-Network/', label: 'Chia Github', position: 'left'},
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Approach',
items: [
{
label: 'White Paper',
to: 'https://www.chia.net/approach',
},
],
},
{
title: 'Technology',
items: [
{
label: 'Green Paper',
to: 'https://www.chia.net/greenpaper',
},
{
label: 'Consensus 1.1',
to: 'https://www.chia.net/assets/Chia-New-Consensus-0.9.pdf',
},
],
},
{
title: 'Developers',
items: [
{
label: 'Grants',
to: 'https://www.chia.net/grants',
},
{
label: 'Chialisp',
to: 'https://www.chialisp.com',
},
],
},
{
title: 'Company',
items: [
{
label: 'About',
to: 'https://chia.net/about',
},
{
label: 'Blog',
to: 'https://chia.net/blog',
},
{
label: 'Contact',
to: 'https://chia.net/contact',
},
],
},
],
copyright: `© ${new Date().getFullYear()} Chia Network Inc., Licensed under the <a href="https://github.com/Chia-Network/chia-docs/blob/main/LICENSE" target="_blank">Apache License, Version 2.0</a> | <a href="https://www.chia.net/terms">Terms</a>`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: [
'powershell',
'lisp',
],
},
}),
});