-
Notifications
You must be signed in to change notification settings - Fork 27
/
docusaurus.config.js
111 lines (107 loc) · 3.13 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
// @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: 'Radworks Documentation',
tagline: 'Learn more about how Radworks funds new, resilient, permissionless technologies to cultivate internet freedom.',
url: 'https://docs.radworks.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'radicle-dev',
projectName: 'radicle-docs',
trailingSlash: false,
scripts: [
{src: 'https://plausible.io/js/script.js', defer: true, 'data-domain': 'docs.radworks.org'}
],
plugins: [
[
require.resolve("@cmfcmf/docusaurus-search-local"),
{
indexBlog: false,
},
],
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/',
from: [
'/community/calls',
'/community/get-started',
'/community/manual-overview',
'/community/transition-dao',
'/community/treasury',
'/get-involved/community',
'/migrate-github-radicle',
'/get-started',
'/troubleshooting',
'/understanding-radicle/faq',
'/understanding-radicle/glossary',
'/understanding-radicle/how-radicle-works',
'/understanding-radicle/radicle-versus-github-gitlab',
'/using-radicle/clone',
'/using-radicle/collaboration',
'/using-radicle/create',
'/using-radicle/identity',
'/using-radicle/issues',
'/using-radicle/push',
'/using-radicle/track-review-merge',
'/using-radicle/view-share',
]
}
]
}
]
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/radicle-dev/radicle-docs/blob/main/',
showLastUpdateTime: true,
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/radworks_meta.png',
navbar: {
title: '',
logo: {
alt: 'Radicle',
src: 'img/radworks_logo.png',
srcDark: 'img/radworks_logo.png',
href: '/',
target: '_self',
width: 48,
height: 48
},
items: [
],
},
footer: {
style: 'light',
copyright: `Copyright © ${new Date().getFullYear()} Radworks <[email protected]> and contributors.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;