-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocusaurus.config.js
209 lines (203 loc) · 6.27 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
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
async function createConfig() {
const katex = (await import('rehype-katex')).default;
const math = (await import('remark-math')).default;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Pyrsia.io',
tagline: 'Decentralized Package Network',
url: 'https://pyrsia.io',
baseUrl: '/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: '/img/favicon-32x32.png',
organizationName: 'pyrsia', // Usually your GitHub org/user name.
projectName: 'pyrsia.github.io', // Usually your repo name.
trailingSlash: true,
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css',
type: 'text/css',
integrity:
'sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X',
crossorigin: 'anonymous',
},
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/pyrsia/pyrsia.github.io/edit/main/',
remarkPlugins: [require('mdx-mermaid')],
},
blog: {
showReadingTime: true,
remarkPlugins: [require('mdx-mermaid'), math],
rehypePlugins: [[katex, {strict: false}]],
postsPerPage: 1,
blogSidebarTitle: 'All posts',
blogSidebarCount: 'ALL',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: [
[
require.resolve('docusaurus-gtm-plugin'),
{
id: 'GTM-WZ4WCZ8', // GTM Container ID
}
]
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [{ name: 'robots', content: 'all' }],
colorMode: {
defaultMode: 'light',
disableSwitch: true, // remove light dark switch
},
navbar: {
title: '',
logo: {
alt: 'Pyrsia logo',
src: 'img/logo-pyrsia.svg',
},
items: [
{
to: 'vision',
label: 'Vision',
position: 'left'
},
{
type: 'doc',
docId: 'tutorials/quick-installation',
label: 'Tutorials',
position: 'left'
},
{
type: 'doc',
docId: 'community/get_involved/readme',
label: 'Get Involved',
position: 'left'
},
{
to: '/blog',
label: 'Blog',
position: 'left'
},
{
href: 'https://github.com/pyrsia',
label: 'GitHub',
position: 'left',
},
],
},
footer: {
style: 'light',
logo: {
alt: 'Pyrsia Logo',
src: 'img/icon-pyrsia-torch-175.svg',
width: 118,
height: 183,
},
links: [
{
title: 'Docs',
items: [
{
label: 'Overview',
to: '/docs',
},
{
label: 'Tutorial',
to: '/docs/tutorials',
},
{
label: 'Blog',
to: '/blog',
},
{
label: 'Blog Categories',
to: '/blog/tags',
},
],
},
{
title: 'Community',
items: [
{
label: 'Google',
href: 'https://groups.google.com/g/pyrsia',
},
{
label: 'CDF Slack',
href: 'https://cdeliveryfdn.slack.com/join/shared_invite/zt-1eryue9cw-9YpgrfIfsTcDS~hGHchURg',
},
{
label: 'Youtube',
href: 'https://www.youtube.com/channel/UClPQKloIElvJk7EdSST3W5g',
},
{
label: 'Twitter',
href: 'https://twitter.com/PyrsiaOSS',
},
],
},
{
title: 'About Us',
items: [
{
label: 'The Team',
to: '/#team',
},
{
label: 'Technical Charter',
to: 'https://drive.google.com/file/d/13nOwuFGMDwC-S6mUkhSopC0sFMTo__uE/view?usp=sharing',
},
]
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/pyrsia',
},
{
label: 'Shared Docs',
href: 'https://drive.google.com/drive/folders/1HVw3WARxg7LKEh22_lLkesVhqFmKj5r7?usp=share_link',
},
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/pyrsia',
},
],
},
],
copyright: `<br/><br/>
<a href="https://cd.foundation" target="_blank"><img src="/img/logo-cdf.png" style="width:100%;max-width:400px;" /></a><br />
Pyrsia is a Continuous Delivery Foundation project.
<br/><br/>
Copyright © Pyrsia a Series of LF Projects, LLC. <br/>
For website terms of use, trademark policy and other project policies please see <a href="https://lfprojects.org">https://lfprojects.org</a>.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
return config;
}
module.exports = createConfig;