-
Notifications
You must be signed in to change notification settings - Fork 2
/
docusaurus.config.js
190 lines (186 loc) · 5.59 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
import { themes } from "prism-react-renderer";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Machine Learning",
tagline: "My machine learning and data science journey",
url: "https://pranabdas.github.io",
baseUrl: "/machine-learning/", // must have a trailing "/"
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.png",
organizationName: "pranabdas", // Usually your GitHub org/user name.
projectName: "Machine Learning", // Usually your repo name.
titleDelimiter: "•",
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [{ name: "theme-color", content: "#006bb3" }],
prism: {
theme: themes.github,
darkTheme: themes.nightOwl,
additionalLanguages: ["bash"],
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
},
// colorMode: {
// defaultMode: "dark",
// switchConfig: {
// // darkIcon: '☾',
// // lightIcon: "☀️"
// },
// respectPrefersColorScheme: true,
// },
navbar: {
title: "Machine Learning",
hideOnScroll: true,
logo: {
alt: "Logo",
src: "img/favicon.png",
},
items: [
{
to: "/",
label: "Docs",
position: "left",
items: [
{
label: "Machine Learning",
to: "/",
},
{
label: "~ ~ ~ Other Docs ~ ~ ~",
to: "https://pranabdas.github.io/docs/",
target: "_self",
},
{
label: "ARPES Python Tools",
to: "https://pranabdas.github.io/arpespythontools/",
target: "_self",
},
{
label: "C and C++ Programming",
to: "https://pranabdas.github.io/c-cpp/",
target: "_self",
},
{
label: "Condensed Matter Notes",
to: "https://pranabdas.github.io/condmat-notes/",
target: "_self",
},
{
label: "Fortran Programming",
to: "https://pranabdas.github.io/fortran/",
target: "_self",
},
{
label: "Javascript Tutorial",
to: "https://pranabdas.github.io/javascript/",
target: "_self",
},
{
label: "Linux Tutorial",
to: "https://pranabdas.github.io/linux/",
target: "_self",
},
{
label: "OpenMX tutorial",
to: "https://pranabdas.github.io/openmx/",
target: "_self",
},
{
label: "Python Tutorial",
to: "https://pranabdas.github.io/python-tutorial/",
target: "_self",
},
{
label: "Quantum Espresso Tutorial",
to: "https://pranabdas.github.io/espresso/",
target: "_self",
},
{
label: "Rust Programming",
to: "https://pranabdas.github.io/rust/",
target: "_self",
},
{
label: "SUV ARPES Manual",
to: "https://pranabdas.github.io/arpes-manual/",
target: "_self",
},
{
label: "SUV Python Tools",
to: "https://pranabdas.github.io/suvtools/",
target: "_self",
},
],
},
{
href: "https://github.com/pranabdas/machine-learning",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
title: "Visit project repository in GitHub",
target: "_self",
},
{
to: "https://pranabdas.github.io",
"aria-label": "About me",
position: "right",
target: "_self",
className: "header-homepage-link",
title: "Go to Pranab's Homepage",
},
],
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} Pranab Das. All rights
reserved.`,
},
}),
presets: [
[
"@docusaurus/preset-classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
editUrl: "https://github.com/pranabdas/machine-learning/blob/main/",
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themes: [
[
// https://github.com/easyops-cn/docusaurus-search-local
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
docsRouteBasePath: "/",
indexBlog: false,
indexPages: true,
highlightSearchTermsOnTargetPage: true,
},
],
],
stylesheets: [
{
href: "https://pranabdas.github.io/drive/webfonts/katex/katex.min.css",
type: "text/css",
},
],
};
export default config;