This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
153 lines (148 loc) · 4 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
// @ts-check
const path = require('path');
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
// 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/agoralabs-sh/algorand-provider';
const npmLink = 'https://npmjs.com/package/@agoralabs-sh/algorand-provider';
// Titles
const title = 'Algorand Provider';
/** @type {import('@docusaurus/types').Config} */
const config = {
baseUrl: '/',
deploymentBranch: 'gh-pages',
favicon: 'images/favicon.png',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'throw',
onDuplicateRoutes: 'throw',
organizationName: 'agoralabs-sh',
projectName: 'algorand-provider',
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')),
},
theme: {
customCss: [
require.resolve(path.resolve(stylesDir, 'global.css')),
require.resolve(path.resolve(stylesDir, 'navbar.css')),
],
},
}),
],
],
staticDirectories: [staticDir],
tagline: 'Bridging the gap between dApps and wallets in a standardized way',
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: title,
logo: {
alt: 'Algorand logo',
src: 'images/logo.svg',
},
items: [
{
type: 'doc',
docId: 'overview',
position: 'left',
label: 'Overview',
},
{
type: 'doc',
docId: 'getting-started/index',
position: 'left',
label: 'Getting Started',
},
{
type: 'doc',
docId: 'api-reference/index',
position: 'left',
label: 'API Reference',
},
// right
{
href: githubLink,
position: 'right',
className: 'header-icon-github-link',
'aria-label': 'GitHub repository',
},
{
href: npmLink,
position: 'right',
className: 'header-icon-npm-link',
'aria-label': 'npm registry',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Overview',
to: 'overview',
},
{
label: 'Getting Started',
to: 'getting-started',
},
{
label: 'API Reference',
to: 'api-reference',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: githubLink,
},
{
label: 'npm',
href: npmLink,
},
],
},
],
copyright: `Developed with ❤️ by Agora Labs. Licensed under <a href="${githubLink}/blob/main/LICENSE" target="_blank">MIT</a>.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
title: title,
trailingSlash: false,
url: 'https://algorand-provider.agoralabs.sh',
};
module.exports = config;