-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
254 lines (242 loc) · 7.4 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
254 lines (242 loc) · 7.4 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
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
// @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');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Anagolay and Kelp docs',
tagline: 'All Anagolay and Kelp related documentation',
url: 'https://anagolay.dev',
baseUrl: '/',
baseUrlIssueBanner: true,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'https://ipfs.anagolay.network/ipfs/QmQVnJYMMDwXo8MRpaMb998rV6bkYUX1brrpvCLwGVCzLS?filename=favicon.svg',
trailingSlash: true,
scripts: [{ src: 'https://analytics.kelp.digital/js/plausible.js', defer: true, 'data-domain': 'anagolay.dev' }],
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
plugins: [
// @ts-ignore
require('./plugins/gitpod'),
[
'ideal-image',
/** @type {import('@docusaurus/plugin-ideal-image').PluginOptions} */
({
quality: 70,
max: 1030,
min: 640,
steps: 2,
// Use false to debug, but it incurs huge perf costs
disableInDev: true,
}),
],
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
debug: true, // force debug plugin usage
docs: {
// sidebarPath: require.resolve('./sidebars.js'),
path: 'docs',
sidebarPath: 'sidebars.js',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
blog: {
path: 'blog',
feedOptions: {
type: 'all',
copyright: `Copyright © ${new Date().getFullYear()} Anagolay Network`,
},
blogTitle: 'Anagolay Blog',
blogDescription: 'Anagolay and Kelp blog, our place to share stuff with you',
blogSidebarTitle: 'All posts',
routeBasePath: '/blog',
include: ['**/*.{md,mdx}'],
exclude: ['**/_*.{js,jsx,ts,tsx,md,mdx}', '**/_*/**', '**/*.test.{js,jsx,ts,tsx}', '**/__tests__/**'],
postsPerPage: 10,
// blogListComponent: '@theme/BlogListPage',
// blogPostComponent: '@theme/BlogPostPage',
// blogTagsListComponent: '@theme/BlogTagsListPage',
// blogTagsPostsComponent: '@theme/BlogTagsPostsPage',
// rehypePlugins: [],
// beforeDefaultRemarkPlugins: [],
// beforeDefaultRehypePlugins: [],
truncateMarker: /<!--\s*(truncate)\s*-->/,
showReadingTime: true,
},
theme: {
customCss: [require.resolve('./src/css/custom.css')],
},
pages: {},
sitemap: {
// Note: /tests/docs already has noIndex: true
ignorePatterns: ['/tests/{blog,pages}/**'],
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
hideOnScroll: true,
title: 'Anagolay+Kelp=😻',
logo: {
alt: 'Anagolay+kelp logo',
src: 'https://ipfs.anagolay.network/ipfs/QmVpp83HfN3gdhd6fgjQcGqga9yw7kXB7qpmCMWsChnTDP',
target: '_self',
width: 32,
height: 32,
className: 'tw-rounded-full',
},
items: [
{
type: 'doc',
docId: 'README',
position: 'left',
label: 'Docs',
},
{
to: 'blog',
position: 'left',
label: 'Blog',
},
{
label: 'Testnet Explorer',
position: 'right',
href: 'https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fidiyanale-testnet.anagolay.io',
},
{
label: 'Discord',
position: 'right',
href: 'https://discordapp.com/invite/WHe4EuY',
},
{
label: 'Anagolay White Paper',
position: 'right',
href: 'https://bit.ly/Anagolay_WhitePaper_wip',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Anagolay Quick Links',
items: [
{
label: 'Docs',
to: '/docs',
},
{
label: 'JS/TS SDK',
to: '/docs/anagolay/js-sdk/',
},
{
label: 'Anagolay CLI',
to: '/docs/anagolay/support/anagolay-cli',
},
{
label: 'Anagolay Explanation Deck',
position: 'right',
href: 'https://bit.ly/Anagolay_deck2023Q1',
},
],
},
{
title: 'Kelp Quick Links',
items: [
{
label: 'Macula is missing layer for IPFS',
to: '/docs/kelp/macula',
},
{
label: 'Remote signer',
to: '/docs/kelp/remote-signer',
},
{
label: 'Web3 auth',
to: '/docs/kelp/multi-authentication',
},
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discordapp.com/invite/WHe4EuY',
},
{
label: 'Matrix',
href: 'https://matrix.to/#/#anagolay-general:matrix.org',
},
{
label: 'Anagolay on Mastodon',
href: 'https://mastodon.social/@anagolay',
},
{
label: 'Anagolay Twitter',
href: 'https://twitter.com/AnagolayNet',
},
{
label: 'Idiyanale Twitter',
href: 'https://twitter.com/IdiyanaleNet',
},
],
},
{
title: 'Websites',
items: [
{
href: 'https://kelp.digital',
label: 'Kelp Digital',
position: 'right',
},
{
href: 'https://anagolay.network',
label: 'Anagolay Network',
position: 'right',
},
{
href: 'https://github.com/anagolay',
label: 'Anagolay GitHub',
position: 'right',
},
{
href: 'https://github.com/kelp-hq',
label: 'Kelp Digital GitHub',
position: 'right',
},
],
},
],
copyright: `Copyright © 2019 - ${new Date().getFullYear()} Kelp Digital OÜ`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['rust'],
},
algolia: {
// The application ID provided by Algolia
appId: 'WN1M3JBJTT',
// Public API key: it is safe to commit it
apiKey: '5d7ab70b7e5b236090387b5efbca7879',
indexName: 'anagolay',
// Optional: see doc section below
contextualSearch: true,
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
// searchPagePath: 'search',
},
}),
};
module.exports = config;