-
Notifications
You must be signed in to change notification settings - Fork 43
/
docusaurus.config.js
195 lines (191 loc) · 5.55 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
import { themes } from "prism-react-renderer";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
const site_url = "https://pranabdas.github.io";
const drive_url = "https://pranabdas.github.io/drive";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Quantum Espresso Tutorial",
tagline: "Density Functional Theory calculations using Quantum Espresso",
url: site_url,
baseUrl: "/espresso/", // must have a trailing "/"
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.png",
organizationName: "pranabdas", // Usually your GitHub org/user name.
projectName: "espresso", // Usually your repo name.
titleDelimiter: "•",
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [{ name: "theme-color", content: "#06445c" }],
prism: {
theme: themes.github,
darkTheme: themes.nightOwl,
additionalLanguages: ["bash", "diff", "docker", "fortran"],
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
},
colorMode: {
// disableSwitch: true,
// defaultMode: "dark",
respectPrefersColorScheme: true,
// switchConfig: {
// darkIcon: '☾',
// lightIcon: "☀️"
// },
},
navbar: {
title: "Quantum Espresso",
hideOnScroll: true,
logo: {
alt: "Logo",
src: "img/favicon.png",
},
items: [
{
to: "/",
label: "Docs",
position: "left",
items: [
{
label: "Quantum Espresso Tutorial",
to: "/",
},
{
label: "~ ~ ~ Other Docs ~ ~ ~",
to: site_url + "/docs/",
target: "_self",
},
{
label: "ARPES Python Tools",
to: site_url + "/arpespythontools/",
target: "_self",
},
{
label: "C and C++ Programming",
to: site_url + "/c-cpp/",
target: "_self",
},
{
label: "Condensed Matter Notes",
to: site_url + "/condmat-notes/",
target: "_self",
},
{
label: "Fortran Programming",
to: site_url + "/fortran/",
target: "_self",
},
{
label: "Javascript Tutorial",
to: site_url + "/javascript/",
target: "_self",
},
{
label: "Linux Tutorial",
to: site_url + "/linux/",
target: "_self",
},
{
label: "Machine Learning Notes",
to: site_url + "/machine-learning/",
target: "_self",
},
{
label: "OpenMX tutorial",
to: site_url + "/openmx/",
target: "_self",
},
{
label: "Python Tutorial",
to: site_url + "/python-tutorial/",
target: "_self",
},
{
label: "Rust Programming",
to: site_url + "/rust/",
target: "_self",
},
{
label: "SUV ARPES Manual",
to: site_url + "/arpes-manual/",
target: "_self",
},
{
label: "SUV Python Tools",
to: site_url + "/suvtools/",
target: "_self",
},
],
},
{
href: "https://github.com/pranabdas/espresso",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
title: "Visit project repository in GitHub",
target: "_self",
},
{
to: site_url,
"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: "/", // this is for docs only mode
editUrl: "https://github.com/pranabdas/espresso/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: drive_url + "/webfonts/katex/katex.min.css",
type: "text/css",
},
],
future: {
experimental_faster: true,
},
};
export default config;