-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocusaurus.config.js
230 lines (224 loc) · 6.2 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
224
225
226
227
228
229
230
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} */
export default {
title: 'Documentation for the AI-READI Dataset',
// eslint-disable-next-line max-len
tagline:
// eslint-disable-next-line max-len
'Artificial Intelligence Ready and Equitable Atlas for Diabetes Insights',
url: 'https://docs.aireadi.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'https://fairdataihub.org/images/hero/aireadi-logo.png',
organizationName: 'ai-readi',
projectName: 'AI-READI Dataset Docs',
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/ai-readi/ai-readi-docs/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
lastVersion: 'current',
versions: {
'1.0.0': {
label: `1.0.0`,
path: '1',
},
current: {
label: `2.0.0`,
path: '2',
},
},
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/ai-readi/ai-readi-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: 'AI-READI Dataset Docs',
logo: {
alt: 'My Site Logo',
src: 'https://fairdataihub.org/images/hero/aireadi-logo.png',
},
hideOnScroll: false,
items: [
{
type: 'docsVersionDropdown',
position: 'right',
},
{
href: 'https://github.com/ai-readi/ai-readi-docs',
label: 'GitHub',
position: 'right',
},
{
href: '/docs/2/contact',
label: 'Contact Us',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Changelog',
to: '/docs/2/changelog',
},
],
},
{
title: 'Community',
items: [
{
label: 'Homepage',
href: 'https://aireadi.org',
},
],
},
{
title: 'More',
items: [
// {
// label: "Blog",
// to: "/blog",
// },
{
label: 'GitHub',
href: 'https://github.com/ai-readi/ai-readi-docs',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} AI-READI.`,
},
colorMode: {
respectPrefersColorScheme: false,
},
// announcementBar: {
// id: 'announcement-bar',
// eslint-disable-next-line max-len
// content: `⭐️ <strong> We would love your support. Give us a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/FAIR-BioRS/Guidelines">Github</a>. </strong>`,
// backgroundColor: '#e8f0f7',
// textColor: '#0f172a',
// isCloseable: true,
// },
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
image:
// eslint-disable-next-line max-len
'https://kalai.fairdataihub.org/api/generate?title=AI-READI%20Documentation&description=&app=ai-readi&org=ai-readi',
metadata: [
{
name: 'keywords',
content: 'AI-READI, fairhub, fairdataihub, research, data, open science, open data',
},
{
name: 'description',
// eslint-disable-next-line max-len
content: `Generating a flagship AI-ready and ethically-sourced dataset to support future AI-driven discoveries in diabetes research.`,
},
{
name: 'robots',
content: 'index, follow',
},
{
name: 'author',
content: 'Fair Data Innovations Hub',
},
{
name: 'twitter:card',
content: 'summary_large_image',
},
],
scripts: [],
headTags: [
{
tagName: 'link',
attributes: {
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
},
},
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon-32x32.png',
},
},
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/favicon-16x16.png',
},
},
{
tagName: 'link',
attributes: {
rel: 'manifest',
href: '/site.webmanifest',
},
},
{
tagName: 'meta',
attributes: {
name: 'msapplication-TileColor',
content: '#da532c',
},
},
{
tagName: 'meta',
attributes: {
name: 'theme-color',
content: '#ffffff',
},
},
],
algolia: {
appId: '4T4KZ07U83',
apiKey: 'b025fdc0a3429e57b6e015e322d9eb9e',
indexName: 'aireadi',
contextualSearch: true,
},
umami: {
websiteid: '65407c20-12f0-4e47-ae25-43d4447c9bc7',
src: 'https://umami.fairdataihub.org/mushroom',
},
}),
};