-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
141 lines (138 loc) · 3.97 KB
/
docusaurus.config.js
File metadata and controls
141 lines (138 loc) · 3.97 KB
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
/* eslint-disable @typescript-eslint/no-var-requires */
import { themes } from "prism-react-renderer";
const darkCodeTheme = themes.dracula;
const lightCodeTheme = themes.github;
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(
module.exports = {
title: "MADICES",
tagline:
"Machine actionable data for chemical sciences: Bridging experiments, simulations, and machine learning",
url: "https://madices.github.io",
baseUrl: "/",
favicon: "img/favicon.ico",
organizationName: "MADICES",
projectName: "madices.github.io",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
presets: [
[
"@docusaurus/preset-classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: "docs",
sidebarPath: "./sidebars.js",
editUrl: "https://github.com/madices/madices.github.io/edit/main/",
versions: {
current: {
label: "current",
},
},
lastVersion: "current",
showLastUpdateAuthor: false,
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve("./static/css/custom.css"),
},
}),
],
],
plugins: [
[
"docusaurus-plugin-remote-content",
{
name: "resources",
sourceBaseUrl:
"https://raw.githubusercontent.com/MADICES/MADICES-2022/main/", // the base url for the markdown (gets prepended to all of the documents when fetching)
outDir: "docs", // the base directory to output to.
documents: [], // the file names to download
},
],
// ["docusaurus2-dotenv", {systemvars: true}],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
hideOnScroll: false,
logo: {
alt: "MADICES",
src: "img/svg/c_no_bg.svg",
srcDark: "img/svg/w_no_bg.svg",
},
items: [
// left
{
type: "dropdown",
label: "Workshops",
position: "left",
items: [
{
label: "MADICES 2022 (virtual)",
to: "docs/2022",
},
{
label: "MADICES 2024 (Berlin)",
to: "docs/2024",
},
{
label: "MADICES 2025 (Switzerland)",
to: "docs/2025",
},
],
},
{
type: "dropdown",
label: "Resources",
position: "left",
items: [
{
label: "Glossary",
to: "docs/glossary",
},
{
label: "Awesome list",
to: "docs/awesome_interoperability",
},
],
},
],
},
colorMode: {
defaultMode: "light",
disableSwitch: true,
respectPrefersColorScheme: false,
},
footer: {
links: [
{
title: "Community",
items: [
{
label: "Code of Conduct",
to: "docs/coc",
},
{
label: "GitHub",
to: "https://github.com/madices",
},
],
},
{
title: "Contact",
items: [{ label: "Email", to: "https://mailhide.io/e/TurK9QvA" }],
},
],
copyright: "MADICES Organization Team",
},
image: "img/svg/c_no_bg.svg",
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
}
);