-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
190 lines (182 loc) · 5.45 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
const { themes } = require('prism-react-renderer');
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;
// const lightCodeTheme = require('prism-react-renderer/themes/github');
// const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'FAIR BioRS Docs',
// eslint-disable-next-line max-len
tagline:
// eslint-disable-next-line max-len
'The first minimal and actionable step-by-step guidelines for biomedical researchers to make their research software compliant with the FAIR4RS principles.',
url: 'https://docs.fair-biors.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'fairdataihub',
projectName: 'FAIR BioRS Docs',
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/fairdataihub/FAIR-BioRS-Docs/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
versions: {
current: {
label: `Upcoming 🚧`,
},
},
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/fairdataihub/FAIR-BioRS-Docs/edit/main/website/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
},
}),
],
],
plugins: ['docusaurus-plugin-umami'],
themes: ['docusaurus-theme-frontmatter'],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'FAIR-BioRS Docs',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
hideOnScroll: true,
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Documentation',
},
{
type: 'docsVersionDropdown',
position: 'right',
},
{
href: 'https://github.com/fairdataihub/FAIR-BioRS-Docs',
label: 'GitHub',
position: 'right',
},
{
href: 'https://fairdataihub.org/contact-us',
label: 'Contact Us',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Changelog',
to: '/docs/developer-documentation/changelog',
},
],
},
{
title: 'Community',
items: [
// {
// label: "Stack Overflow",
// href: "https://stackoverflow.com/questions/tagged/docusaurus",
// },
{
label: 'Homepage',
href: 'https://fairdataihub.org',
},
{
label: 'Twitter',
href: 'https://twitter.com/fairdataihub',
},
],
},
{
title: 'More',
items: [
// {
// label: "Blog",
// to: "/blog",
// },
{
label: 'GitHub',
href: 'https://github.com/fairdataihub/FAIR-BioRS-Docs',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Fair Data Innovations Hub.`,
},
colorMode: {
respectPrefersColorScheme: false,
},
announcementBar: {
id: 'announcement-bar',
// eslint-disable-next-line max-len
content: `⭐️ <strong> If you like the FAIR BioRS Documentation, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/fairdataihub/FAIR-BioRS-Docs">Github</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/fairdataihub">Twitter</a>. </strong>`,
backgroundColor: '#fff3f8',
textColor: '#0f172a',
isCloseable: true,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
metadata: [
{
name: 'keywords',
content: 'FAIR BioRS, fairhub, fairdataihub, research, data, open science, open data',
},
{
name: 'description',
// eslint-disable-next-line max-len
content: `FAIR BioRS is the first minimal and actionable step-by-step guidelines for biomedical researchers to make their research software compliant with the FAIR4RS principles.`,
},
{
name: 'robots',
content: 'index, follow',
},
{
name: 'author',
content: 'Fair Data Innovations Hub',
},
],
algolia: {
appId: '5C68KRW2LG',
apiKey: 'f54157cf9bcb7564a29aa0995e0eb192',
indexName: 'docs-sodaforsparc',
contextualSearch: true,
},
umami: {
websiteid: '4dfba05a-4a76-4d20-92b4-a7778613dbb0',
src: 'https://umami.fairdataihub.org/mushroom',
},
}),
scripts: [
{
src: 'scripts/uploadcare.js',
defer: true,
},
],
};
module.exports = config;