-
Notifications
You must be signed in to change notification settings - Fork 3
/
docusaurus.config.js
107 lines (107 loc) · 2.62 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Development Portal',
tagline: '',
url: 'https://developers.citizenlab.co',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'Go Vocal', // Usually your GitHub org/user name.
projectName: 'Go Vocal', // Usually your repo name.
themeConfig: {
navbar: {
title: '',
logo: {
alt: 'Go Vocal',
src: 'img/logo.svg',
},
items: [
{
to: '/',
activeBasePath: '/guides',
label: 'Guides',
position: 'left',
},
{
to: '/api',
activeBasePath: '/api',
label: 'API',
position: 'left',
},
{
href: 'https://github.com/CitizenLabDotCo/citizenlab-oss',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Info',
items: [
{
label: 'Go Vocal',
to: 'https://www.govocal.com',
},
{
label: 'Blog',
to: 'https://www.govocal.com/blog',
},
{
label: 'Development portal',
to: '/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Github discussions',
href: 'https://github.com/CitizenLabDotCo/citizenlab-oss/discussions',
},
{
label: 'Twitter',
href: 'https://twitter.com/citizenlabco',
},
],
}
],
copyright: `Copyright © ${new Date().getFullYear()} Go Vocal`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/CitizenLabDotCo/documentation/edit/master',
routeBasePath: '/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
[
'redocusaurus',
{
// Plugin Options for loading OpenAPI files
specs: [
{
spec: 'https://developers.citizenlab.co/api-docs/ee/public_api/master/open_api.json',
// Use this in development instead
// spec: '../citizenlab/back/doc/public_api/open_api.json',
route: '/api/',
},
]
},
],
],
};