-
Notifications
You must be signed in to change notification settings - Fork 2
/
docusaurus.config.js
180 lines (171 loc) · 5.11 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
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'FAIRshare',
tagline: 'Your one-stop tool for making biomedical research data and software FAIR',
url: 'https://docs.fairshareapp.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.ico',
organizationName: 'fairdataihub',
projectName: 'FAIRshare-Docs',
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/fairdataihub/FAIRshare-Docs/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
versions: {
current: {
label: `Upcoming 🚧`,
},
},
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/fairdataihub/FAIRshare-Docs/edit/main/website/blog/',
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: ['docusaurus-plugin-umami'],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'FAIRshare',
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/FAIRshare',
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/changelog',
},
],
},
{
title: 'Community',
items: [
{
label: 'Homepage',
href: 'https://fairdataihub.org',
},
{
label: 'Twitter',
href: 'https://twitter.com/fairdataihub',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/fairdataihub/FAIRshare',
},
],
},
],
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 FAIRshare, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/fairdataihub/FAIRshare">Github</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/fairdataihub">Twitter</a>. </strong>`,
backgroundColor: '#eff6ff',
textColor: '#0f172a',
isCloseable: true,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
image:
// eslint-disable-next-line max-len
'https://kalai.fairdataihub.org/api/generate?app=fairshare&title=FAIRshare&org=fairdataihub&description=Your%20one-stop%20tool%20for%20making%20biomedical%20research%20data%20and%20software%20FAIR',
metadata: [
{
name: 'keywords',
content:
'SODA for COVID 19 Research, FAIRshare, fair data, fairhub, fairdataihub, software',
},
{
name: 'description',
// eslint-disable-next-line max-len
content: `FAIRshare is a cross-platform desktop software that allows researchers to easily organize and share their COVID-19 related genomics, immunology, and other general research data according to applicable FAIR guidelines.`,
},
{
name: 'robots',
content: 'index, follow',
},
{
name: 'author',
content: 'Fair Data Innovations Hub',
},
],
algolia: {
appId: 'GD7SXR5V16',
apiKey: 'a3dc9a3cc59523cd37850a7480ab26b7',
indexName: 'fairshareapp',
contextualSearch: true,
},
umami: {
websiteid: 'a0d89633-5053-41a1-ab20-08ea4214c798',
src: 'https://umami.fairdataihub.org/mushroom',
},
}),
scripts: [
{
src: 'scripts/uploadcare.js',
defer: true,
},
],
};
module.exports = config;