-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocusaurus.config.js
258 lines (254 loc) · 6.76 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
254
255
256
257
258
const {
Agile,
generateId,
createState,
createCollection,
createComputed,
} = require('@agile-ts/core');
const {
AgileHOC,
useAgile,
useWatcher,
useProxy,
useSelector,
useValue,
} = require('@agile-ts/react');
const { Event, useEvent } = require('@agile-ts/event');
const { toast } = require('react-toastify');
const githubOrgUrl = 'https://github.com/skyekiwi';
const domain = 'https://skye.kiwi';
const npmOrgUrl = 'https://www.npmjs.com/package/@agile-ts';
const customFields = {
copyright: `Made with 💜 by <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/skyekiwi_team">SkyeKiwi</a>`,
meta: {
title: "SkyeKiwi is a privacy layer for Web3.",
image: '/img/meta.png',
description:
"SkyeKiwi is a privacy layer for Web3",
color: '#6c69a0',
keywords: [
'web3',
'privacy',
'ethereum',
'blockchain',
'blockchain-privacy',
'blockchain-security',
'polkadot',
'kusama',
'substrate',
'near',
'near protocol',
'layer2',
'software',
'coding',
'development',
'engineering',
],
},
domain,
githubOrgUrl,
githubUrl: `${githubOrgUrl}/skyekiwi-network`,
githubDocsUrl: `${githubOrgUrl}/documentation`,
npmCoreUrl: `${npmOrgUrl}/core`,
discordUrl: `https://discord.com/invite/m7tFX8u43J`,
twitterUrl: 'https://twitter.com/skyekiwi_team',
telegramUrl: 'https://t.me/skyekiwi',
version: '0.0.1',
announcementBar: {
id: 'announcement',
content: [
`❓ If you have any questions, don't hesitate to join our <a target="_blank" rel="noopener noreferrer" href="https://discord.gg/T9GzreAwPH">Community Discord</a> ️`,
`🎉 If you like AgileTs, give us a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/agile-ts/agile">GitHub</a>`,
`⏰ If you want to stay update to date, follow use on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/AgileTypescript">Twitter</a>`,
],
random: false,
interval: 100000,
},
};
const config = {
title: 'SkyeKiwi',
tagline: 'SkyeKiwi is a privacy layer for blockchains. ',
url: customFields.domain,
baseUrlIssueBanner: false,
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'img/favicon.ico',
organizationName: 'SkyeKiwi',
projectName: 'https://github.com/skyekiwi',
themes: ['@docusaurus/theme-live-codeblock'],
scripts: [{ src: 'https://snack.expo.io/embed.js', async: true }], // https://github.com/expo/snack/blob/main/docs/embedding-snacks.md
plugins: [
'docusaurus-plugin-sass',
// @docusaurus/plugin-google-analytics (Not necessary because it automatically gets added)
],
customFields: { ...customFields },
themeConfig: {
hideableSidebar: false,
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
algolia: {
appId: '64P3EOD5L9',
apiKey: '461e97fe74b935316bf63af4a6a93345',
indexName: 'agile-ts',
},
// image: '/img/meta.png', // Gets used in Head as Meta Image (og:image)
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
defaultLanguage: 'javascript',
},
navbar: {
title: ' ',
hideOnScroll: true,
logo: {
alt: 'My Site Logo',
srcDark: 'img/logo.svg',
src: 'img/logo_white.svg',
},
items: [
// left
{
label: 'Get Started',
position: 'left',
items: [
{
label: 'Introduction',
to: '/docs/introduction/',
},
{
label: 'Quick Start',
to: '/docs/quick-start/interact',
},
{
label: 'Contributing',
to: '/docs/contributing/',
},
{
label: 'Common FAQs',
to: '/docs/faqs',
},
],
},
{
label: 'Community',
position: 'left',
items: [
{
label: 'GitHub',
href: customFields.githubUrl,
},
{
label: 'Twitter',
href: customFields.twitterUrl,
},
{
label: 'Discord',
href: customFields.discordUrl,
},
{
label: 'Telegram',
href: customFields.telegramUrl,
},
],
},
{
label: 'Documentation',
position: 'left',
to: 'docs/introduction',
},
],
},
footer: {
copyright: customFields.copyright,
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Get Started',
to: 'docs/introduction',
},
{
label: 'Quick Start',
to: 'docs/quick-start/interact',
},
{
label: 'FAQs',
to: 'docs/faqs',
},
],
},
{
title: 'Community',
items: [
{
label: 'GitHub',
href: customFields.githubUrl,
},
{
label: 'Twitter',
href: customFields.twitterUrl,
},
{
label: 'Discord',
href: customFields.discordUrl,
},
{
label: 'Telegram',
href: customFields.telegramUrl,
},
],
},
{
title: 'More',
items: [
{
label: 'Privacy Policy',
to: '/legal/privacy-notice',
},
{
label: 'Cookie Policy',
to: '/legal/cookie-notice',
},
],
},
],
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs',
admonitions: {
icons: 'emoji',
},
sidebarPath: require.resolve('./sidebars.js'),
editUrl: `${customFields.githubDocsUrl}/tree/develop`,
showLastUpdateAuthor: false,
showLastUpdateTime: true,
remarkPlugins: [
[require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }],
],
},
blog: {
showReadingTime: true,
editUrl: `${customFields.githubDocsUrl}/tree/develop`,
},
theme: {
customCss: [require.resolve('./src/css/custom.scss')],
},
googleAnalytics: {
trackingID: 'UA-189394644-1',
anonymizeIP: true, // Should IPs be anonymized?
},
},
],
],
};
module.exports = { ...config };