-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
123 lines (112 loc) · 4.32 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
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const organizationName = "a2s-institute";
const projectName = "gpu-cluster";
const url = process.env.URL || "https://a2s-institute.github.io";
const baseUrl = process.env.BASE_URL || "/gpu-cluster/";
const config = {
title: 'A2S GPU Cluster',
tagline: 'A Kubernetes-based compute cluster with ready-to-use machine learning environments',
favicon: 'img/A2S_Bildmarke_RGB.svg',
url: url,
baseUrl: baseUrl,
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
// GitHub Pages adds a trailing slash by default
trailingSlash: false,
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName,
projectName,
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
plugins: [
[
'docusaurus2-dotenv',
{
path: "./.env", // The path to your environment variables.
safe: false, // If false ignore safe-mode, if true load './.env.example', if a string load that file as the sample
systemvars: false, // Set to true if you would rather load all system variables as well (useful for CI purposes)
silent: false, // If true, all warnings will be suppressed
expand: false, // Allows your variables to be "expanded" for reusability within your .env file
defaults: false, // Adds support for dotenv-defaults. If set to true, uses ./.env.defaults
}
]
],
presets: [
[
'classic',
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: `https://github.com/${organizationName}/${projectName}/tree/main/`,
},
blog: {
showReadingTime: true,
editUrl: `https://github.com/${organizationName}/${projectName}/tree/main/`,
editUrl: ({ locale, blogDirPath, blogPath, permalink }) =>
`https://github.com/${organizationName}/${projectName}/edit/main/${blogDirPath}/${blogPath}`,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
({
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 5,
},
navbar: {
title: 'A2S GPU Cluster',
logo: {
alt: 'A2S Group Logo',
src: 'img/A2S_Bildmarke_RGB.svg',
},
items: [{
type: 'doc',
docId: 'about',
position: 'left',
label: 'Documentation',
},
{
to: 'https://a2s-cluster.inf.h-brs.de',
label: 'JupyterHub',
position: 'left'
},
{
to: '/blog',
label: 'News',
position: 'left'
},
{
href: 'https://github.com/a2s-institute/gpu-cluster',
label: 'GitHub',
position: 'right',
},
{
type: 'localeDropdown',
position: 'right'
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} A2S Institute<br>
Institute for Artificial Intelligence and Autonomous Systems (A2S)<br>
Hochschule Bonn-Rhein-Sieg`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;