-
Notifications
You must be signed in to change notification settings - Fork 119
/
docusaurus.config.js
223 lines (222 loc) · 6.36 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
export default async function createConfigAsync() {
return {
markdown: {
mermaid: true,
},
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
onBrokenAnchors: 'warn',
title: 'OpenRefine',
tagline: 'A power tool for working with messy data.',
url: 'https://openrefine.org',
baseUrl: '/',
trailingSlash: false,
favicon: 'img/openrefine_logo.svg',
organizationName: 'OpenRefine', // Usually your GitHub org/user name.
projectName: 'openrefine.github.com', // Usually your repo name.
themes: ['@docusaurus/theme-mermaid'],
themeConfig: {
navbar: {
title: 'OpenRefine',
logo: {
alt: 'OpenRefine diamond logo',
src: 'img/openrefine_logo.svg',
},
items: [
{
to: '/download',
label: 'Download',
position: 'left',
},
{
to: '/docs',
activeBasePath: 'docs',
label: 'Documentation',
position: 'left',
},
{
to: '/community',
label: 'Community',
position: 'left',
},
{
to: 'blog',
label: 'Blog',
position: 'left',
},
{
to: '/donate',
label: 'Donate',
position: 'right',
},
{
to: 'https://forum.openrefine.org/',
label: 'Forum',
position: 'right',
},
{
href: 'https://github.com/OpenRefine/',
label: 'GitHub',
position: 'right',
},
],
},
algolia: {
apiKey: '240040de4cd636e60bfb796f913dda5a',
appId: 'RXJKLJKJU2',
indexName: 'openrefineorg',
contextualSearch: true,
},
footer: {
logo: {
alt: 'OpenRefine diamond logo',
src: 'img/openrefine_logo.svg',
href: 'https://openrefine.org',
height: 150,
},
style: 'dark',
links: [
{
title: 'Get OpenRefine',
items: [
{
label: 'Download',
href: '/download',
},
{
label: "What's new",
href: '/whats_new',
},
{
label: 'Extensions',
href: '/extensions',
},
{
label: 'Other distributions',
href: '/distributions',
},
{
label: 'Ecosystem',
href: '/ecosystem',
},
],
},
{
title: 'Documentation',
items: [
{
label: 'User manual',
href: '/docs',
},
{
label: 'Training and Courses',
href: '/external_resources',
},
{
label: 'Contributing',
href: '/docs/technical-reference/contributing',
},
{
label: 'Privacy notice',
href: '/privacy',
},
],
},
{
title: 'About OpenRefine',
items: [
{
label: 'Project history',
href: '/openrefine_history',
},
{
label: 'Project Roles and Governance',
href: '/community',
},
{
label: 'Who uses OpenRefine',
href: '/usage',
},
{
label: 'Grants & funding',
href: '/funding',
},
],
},
{
title: 'Social',
items: [
{
label: 'GitHub',
href: 'https://github.com/OpenRefine',
},
{
label: 'Forum',
href: 'https://forum.openrefine.org/',
},
{
label: 'Gitter chat',
href: 'https://gitter.im/OpenRefine/OpenRefine',
},
{
label: 'Twitter',
href: 'https://twitter.com/openrefine',
},
{
html: `
<a rel="me" class="footer__link-item" target="_blank" href="https://fosstodon.org/@OpenRefine">Mastodon<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a>
`
},
],
},
],
copyright: `<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />OpenRefine's website and documentation is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.`,
},
},
plugins: ['./src/plugins/docusaurus-versionsjson-plugin'],
presets: [
[
'@docusaurus/preset-classic',
{
sitemap: {
lastmod: 'date',
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
},
docs: {
// Docs folder path relative to website dir. Equivalent to `customDocsPath`.
// path: 'docs',
// Sidebars file relative to website dir.
sidebarPath: require.resolve('./sidebars.js'),
// Equivalent to `editUrl` but should point to `website` dir instead of `website/docs`.
editUrl: 'https://github.com/OpenRefine/openrefine.github.com/edit/master',
// Equivalent to `docsUrl`.
routeBasePath: '/docs/',
// Remark and Rehype plugins passed to MDX. Replaces `markdownOptions` and `markdownPlugins`.
remarkPlugins: [],
rehypePlugins: [],
// Equivalent to `enableUpdateBy`.
showLastUpdateAuthor: true,
// Equivalent to `enableUpdateTime`.
showLastUpdateTime: true,
},
blog: {
blogSidebarCount: 'ALL',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
scripts: [
{
src: '/js/fix-location.js',
async: false,
defer: false,
},
],
};
}