forked from JATOS/JATOS_docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
155 lines (151 loc) · 4.31 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
// @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: 'JATOS',
tagline: 'Just Another Tool for Online Studies',
url: 'https://www.jatos.org',
baseUrl: '/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'JATOS', // Usually your GitHub org/user name.
projectName: 'JATOS_docs', // Usually your repo name.
trailingSlash: false,
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/JATOS/JATOS_docs/tree/master',
routeBasePath: '/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
versions: {
current: {
label: 'next',
path: 'next',
banner: 'unreleased',
},
'3.7.1': {
label: '3.7.x',
path: '',
banner: 'none',
},
'3.6.1': {
label: '3.6.1 and earlier',
path: '3.6.1',
banner: 'none',
},
},
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/JATOS/JATOS_docs/tree/master/blog',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
googleAnalytics: {
trackingID: 'UA-57013276-1',
anonymizeIP: true, // Should IPs be anonymized?
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'JATOS',
logo: {
alt: 'JATOS Logo',
src: 'img/jatos_logo_color.svg'
},
items: [
{
type: 'doc',
docId: 'Overview/Whats-JATOS',
position: 'left',
label: 'Documentation',
},
{
to: '/Example-Studies',
label: 'Example Studies',
position: 'left'
},
{
type: 'doc',
docId: 'Overview/Contact-us',
position: 'left',
label: 'Contact'
},
{
to: 'https://ko-fi.com/jatos',
label: 'Support us',
position: 'right'
},
{
type: 'docsVersionDropdown',
position: "right",
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'JATOS Forum',
to: 'https://forum.cogsci.nl/categories/jatos',
},
{
label: 'Slack',
to: 'https://communityinviter.com/apps/jatosworkspace/jatos-slack',
},
{
label: 'Google Group',
to: 'https://groups.google.com/g/jatos',
},
{
label: 'GitHub Issues',
to: 'https://github.com/JATOS/JATOS/issues',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: 'http://blog.jatos.org/',
},
{
label: 'GitHub',
to: 'https://github.com/JATOS/JATOS',
},
{
label: 'Source Code Docs',
to: 'https://docs.jatos.org',
},
],
},
],
copyright: `JATOS is free and <a href="https://github.com/JATOS/JATOS" class="footer__link-item">open source</a> and published under <a href="https://www.apache.org/licenses/LICENSE-2.0" class="footer__link-item">Apache License, version 2.0</a>`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;