-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
171 lines (166 loc) · 4.5 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
// @ts-check
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
const { themes } = require('prism-react-renderer');
/* eslint-enable @typescript-eslint/no-var-requires */
// directories
const docsDir = path.resolve(__dirname, 'docs');
const staticDir = path.resolve(docsDir, 'static');
const scriptsDir = path.resolve(docsDir, 'scripts');
const stylesDir = path.resolve(docsDir, 'styles');
// links
const githubLink =
'https://github.com/Good-Fortune-Felines-Core-Team/airdrop-tool';
const npmLink = 'https://npmjs.com/package/@jumpdefi/airdrop-tool';
const url = 'https://good-fortune-felines-core-team.github.io';
// header
const tagline =
'An airdrop tool for NEP-141 tokens that is designed to shoot a number of tokens to an NFT allowlist (or any list), with the ability to shoot multiple allocations to specific addresses.';
const title = 'Airdrop Tool';
/** @type {import('@docusaurus/types').Config} */
const config = {
baseUrl: '/airdrop-tool',
deploymentBranch: 'gh-pages',
favicon: 'images/favicon.png',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'throw',
onDuplicateRoutes: 'throw',
organizationName: 'Good-Fortune-Felines-Core-Team',
projectName: 'airdrop-tool',
plugins: ['docusaurus-plugin-sass'],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
blog: false,
docs: {
remarkPlugins: [
[
require('@docusaurus/remark-plugin-npm2yarn'),
{
sync: true,
},
],
],
routeBasePath: '/',
sidebarPath: require.resolve(path.resolve(scriptsDir, 'sidebars.js')),
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
},
theme: {
customCss: [
require.resolve(path.resolve(stylesDir, 'footer.scss')),
require.resolve(path.resolve(stylesDir, 'functions.scss')),
require.resolve(path.resolve(stylesDir, 'global.scss')),
require.resolve(path.resolve(stylesDir, 'navbar.scss')),
],
},
}),
],
],
staticDirectories: [staticDir],
tagline,
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [
{
name: 'keywords',
content: 'blockchain, cryptocurrency, near',
},
],
navbar: {
title,
logo: {
alt: 'Jump Dex logo',
src: 'images/logo.svg',
},
items: [
{
type: 'doc',
docId: 'overview',
position: 'left',
label: 'Overview',
},
{
type: 'doc',
docId: 'usage/index',
position: 'left',
label: 'Usage',
},
{
type: 'doc',
docId: 'api-reference/index',
position: 'left',
label: 'API',
},
// right
{
href: githubLink,
position: 'right',
className: 'navbar__icon navbar__icon--github',
'aria-label': 'GitHub repository',
},
{
href: npmLink,
position: 'right',
className: 'navbar__icon navbar__icon--npm',
'aria-label': 'npm registry',
},
],
},
footer: {
copyright: `
<div class="footer__copyright-container">
<p class="footer__text">Licensed under <a class="footer__text--link" href="${githubLink}/blob/main/LICENSE" target="_blank">MIT</a>.</p>
</div>
`,
links: [
{
title: 'Docs',
items: [
{
label: 'Overview',
to: '/',
},
{
label: 'Usage',
to: 'usage/index',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: githubLink,
},
{
label: 'npm',
href: npmLink,
},
],
},
],
style: 'dark',
},
prism: {
darkTheme: themes.dracula,
theme: themes.github,
},
}),
title,
trailingSlash: false,
url,
};
module.exports = config;