forked from archway-network/archway-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
253 lines (251 loc) · 8.74 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
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
require('dotenv').config();
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Archway Docs',
tagline: 'Rewarding Architects of Web3',
url: 'https://docs.archway.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'favicon.ico',
organizationName: 'archway-network', // GitHub org/user name.
projectName: 'archway-docs', // Repository name.
themeConfig: {
navbar: {
title: 'Docs',
logo: {
alt: 'Archway - Rewarding Architects of Web3',
src: 'img/logo.svg',
srcDark: 'img/logo-dark.svg',
},
},
footer: {},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
colorMode: {
respectPrefersColorScheme: true,
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 3,
},
// announcementBar: {
// id: 'unstable',
// content:`You're previewing Archway's unstable documentation. Hang in there, everything should work great by October 25!`,
// backgroundColor: '#EAE5E1',
// textColor: '#000000',
// isCloseable: false,
// },
algolia: {
appId: process.env.REACT_APP_ALGOLIA_APP_ID,
apiKey: process.env.REACT_APP_ALGOLIA_API_KEY,
indexName: 'archway',
},
tagManager: {
trackingID: 'GTM-54W7BX3'
}
},
customFields: {
pageCategories: [
{
name: 'build',
children: [
{
name: 'Quick Start',
value: '/docs/create/getting-started/install',
icon: 'icon-rocket',
description: 'Get started building decentralized applications on Archway',
},
{
name: 'Guides',
value: '/docs/create/guides/launchpad',
icon: 'icon-guide2',
description: 'Dive deeper into Archway smart contract development and dApp client code',
},
{
name: 'Videos',
value: '/videos',
icon: 'icon-video3',
description: 'Code along side Archway developers using our video tutorials',
},
{
name: 'Dependencies',
value: '/docs/create/advanced/cargo',
icon: 'icon-beta1',
description: 'Update your source code and manage dependencies',
},
{
name: 'Debugging',
value: '/docs/create/advanced/debug',
icon: 'icon-bug',
description: 'Tricks and tips for debugging smart contract errors',
},
{
name: 'Troubleshooting',
value: '/docs/create/advanced/troubleshooting',
icon: 'icon-fix2',
description: 'Troubleshoot common issues and problems with Archway development',
},
{
name: 'Core Protocol',
value: '/docs/create/cli/daemon',
icon: 'icon-computer',
description: "Learn about the archwayd binary from a developer's perspective",
},
{
name: 'CLI Basics',
value: '/docs/create/cli/developer-cli',
icon: 'icon-guide1',
description: 'Usage instructions and documentation for the Developer CLI',
},
],
},
{
name: 'join',
children: [
// Node Operators
[
{
name: 'Install',
value: '/docs/node/install',
icon: 'icon-hdd',
description: 'Installation requirements for Archway node operators',
},
{
name: 'Configure',
value: '/docs/node/configure',
icon: 'icon-settings',
description: 'Node configurations and operator settings',
},
{
name: 'Run a local testnet',
value: '/docs/node/running-a-local-testnet',
icon: 'icon-experiments',
description: 'Running local testnet nodes',
},
{
name: 'Joining a network',
value: '/docs/node/join-a-network',
icon: 'icon-sitemap',
description: 'Join an existing Archway network such as Augusta, Constantine or Titus',
},
],
// Validators
[
{
name: 'What are validators?',
value: '/docs/validator/overview',
icon: 'icon-safe1',
description: 'Learn about validators and how they keep Archway secure',
},
{
name: 'Requirements',
value: '/docs/validator/requirements',
icon: 'icon-download1',
description: 'Installation requirements for validator nodes',
},
{
name: 'Run a validator node',
value: '/docs/validator/running-a-validator-node',
icon: 'icon-sitemap',
description: 'Running your validator and earning rewards',
},
{
name: 'Monitor validators',
value: '/docs/validator/monitoring-validators',
icon: 'icon-monitor',
description: 'Enable monitoring services to help ensure continuous uptime',
},
{
name: 'Troubleshoot',
value: '/docs/validator/troubleshooting',
icon: 'icon-fix2',
description: 'Troubleshoot common problems with validator nodes',
},
],
],
},
{
name: 'participate',
children: [
{
name: 'Create a wallet',
value: '/docs/participate/wallet',
icon: 'icon-wallet',
description: 'Setup a new account to begin receiving and sending coins',
},
{ name: 'Staking', value: '/docs/participate/staking', icon: 'icon-pig', description: 'Enroll your account in staking rewards' },
{
name: 'Contributing',
value: '/docs/participate/contribute',
icon: 'icon-build',
description: 'Help maintain and support Archway documentation and guides',
},
],
},
{
name: 'overview',
children: [
{ name: 'About Archway', value: '/docs/overview/about', icon: '' },
{ name: 'Public Networks', value: '/docs/overview/network', icon: 'icon-sitemap' },
{ name: 'Join the Community', value: '/docs/overview/join-the-community', icon: 'icon-earth' },
],
},
],
videos: [
{
name: 'Create your own dApps and NFTs with CosmWasm using Archway',
url: 'https://www.youtube.com/watch?v=n4rvQB86lLM',
thumb: 'https://img.youtube.com/vi/n4rvQB86lLM/0.jpg',
tags: ['Cosmos', 'Ignite', 'Code with Us', 'NFTs', 'Rust', 'Cosmjs'],
description:
'CosmWasm unlocks a vast universe of new possibilities through true cross-chain smart contracts. However, the development experience hasn’t always been the most straightforward. With this workshop, you’ll learn just how easy it is to create your own CosmWasm dApps and NFTs on top of Archway.',
},
{
name: 'Archway Developer Rewards + CosmWasm Contracts',
url: 'https://www.youtube.com/watch?v=fit1_bMNgVc',
thumb: 'https://img.youtube.com/vi/fit1_bMNgVc/0.jpg',
tags: ['Developer Rewards', 'DAOs', 'Contract Metadata', 'Escrow'],
description:
'Learn how to write contracts that automatically redirect protocol rewards for several use cases (contributing to a DAO, subsidizing gas fees, seeding liquidity pools, boosting governance token rewards, etc.)',
},
],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// editUrl: 'https://github.com/archway-network/archway-docs/edit/main/'
},
blog: false,
theme: {
customCss: [
require.resolve('./src/css/custom.css'),
require.resolve('./src/css/markdown.css'),
require.resolve('./src/css/icons.css'),
],
},
},
],
],
plugins: [
'./plugins/docusaurus-google-tag-manager-plugin',
async function docusaurusTailwindcssPlugin(context, options) {
return {
name: 'docusaurus-tailwindcss',
configurePostCss(postcssOptions) {
postcssOptions.plugins.push(require('tailwindcss'));
postcssOptions.plugins.push(require('autoprefixer'));
postcssOptions.plugins.push(require('postcss-nested'));
return postcssOptions;
},
};
},
],
};