forked from w3f/Grants-Program
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
186 lines (184 loc) · 5.04 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
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const mdxMermaid = require('mdx-mermaid');
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Web3 Foundation Grants',
tagline: 'Funding Software Development and Research Efforts related to Polkadot and Kusama.',
url: 'https://grants.web3.foundation',
baseUrl: '/',
onBrokenLinks: 'warn', // Revert back to 'throw' once initial release is up
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon-32x32.png',
organizationName: 'w3f', // Usually your GitHub org/user name.
trailingSlash: false,
projectName: 'Grants-Program', // Usually your repo name.
themeConfig: {
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
announcementBar: {
id: 'announcement',
content:
'Check out our newly created <a target="_blank" rel="noopener noreferrer" href="https://futures.web3.foundation/">Decentralized Futures Program</a>!',
backgroundColor: '#000',
textColor: '#ffffff',
isCloseable: true,
},
navbar: {
title: 'Grants Program',
logo: {
alt: 'W3F Grants Program',
src: 'img/w3f_logo.svg',
},
items: [
{
type: 'doc',
docId: 'docs/introduction',
position: 'right',
label: 'Introduction',
},
{
type: 'doc',
docId: 'applications/index',
position: 'right',
label: 'List of Grants',
},
{
type: 'doc',
docId: 'docs/faq',
position: 'right',
label: 'FAQ',
},
{
type: 'doc',
docId: 'docs/Process/how-to-apply',
position: 'right',
label: 'Apply',
}
],
},
footer: {
style: 'dark',
links: [
{
title: 'More Info',
items: [
{
label: 'GitHub',
href: 'https://github.com/w3f/Grants-Program',
},
{
label: 'Website',
href: 'https://web3.foundation/',
},
{
label: 'Privacy Policy',
to: 'docs/Support%20Docs/privacy_policy',
},
{
label: 'Legal Disclosures',
to: 'https://web3.foundation/legal-disclosures/',
},
],
},
{
title: 'Connect',
items: [
{
label: 'Twitter',
href: 'https://twitter.com/Web3foundation',
},
{
label: 'Grants Community Matrix Channel',
href: 'https://matrix.to/#/!XpynPDLusWUWfDpaqr:matrix.org?via=web3.foundation&via=matrix.org&via=matrix.parity.io',
},
],
},
],
copyright: `© ${new Date().getFullYear()} Web3 Foundation`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
appId: '9VKKGZO0U1',
apiKey: '89d564c771c26d6eb84fe9cf608c128d',
indexName: 'grants-program',
contextualSearch: true,
externalUrlRegex: 'https://w3f.github.io',
searchParameters: {},
searchPagePath: 'search',
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: '.',
routeBasePath: '/',
editUrl: 'https://github.com/w3f/Grants-Program/edit/master/',
// showLastUpdateAuthor: true,
// showLastUpdateTime: true,
sidebarPath: require.resolve('./sidebars.js'),
beforeDefaultRehypePlugins: [
],
beforeDefaultRemarkPlugins: [
],
remarkPlugins: [
mdxMermaid
],
rehypePlugins: [
],
exclude: [
'applications/application-template.md',
'applications/example-project.md',
'applications/maintenance/maintenance-template.md',
'applications/application-template-research.md',
'docs/RFPs/suggestion-template.md',
'.docusaurus/**',
'.github/**',
'.vscode/**',
'build/**',
'node_modules/**',
'src/**',
'static/**',
'babel.config.js',
'.gitignore',
'LICENSE',
'package-lock.json',
'package.json',
'sidebars.js',
'README.md'
],
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
plugins: [
function (context, options) {
return {
name: 'webpack-configuration-plugin',
configureWebpack(config, isServer, utils) {
return {
resolve: {
symlinks: false,
}
};
}
};
},
],
};