-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
202 lines (190 loc) · 6.67 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
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from "prism-react-renderer";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Health & Survival articles | yell0wsuit's website",
tagline: "A collections of health and survival articles by yell0wsuit",
favicon: "favicon.ico",
// Set the production url of your site here
url: "https://health.yell0wsuit.page",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "yell0wsuit", // Usually your GitHub org/user name.
projectName: "health-survival-docusaurus", // Usually your repo name.
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
// Even if you don't use internationalization, 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"],
localeConfigs: {
vi: {
htmlLang: "vi-VN",
},
},
},
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/",
sidebarPath: "./sidebars.js",
editUrl: "https://github.com/yell0wsuit/health-survival-docusaurus/edit/main/",
},
theme: {
customCss: ["./src/css/custom.css", "./src/css/custom.scss"],
},
gtag: {
trackingID: "G-SX3SJWCLEY",
anonymizeIP: true,
},
}),
],
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
{
hashed: true,
explicitSearchResultPath: true,
docsRouteBasePath: "/",
ignoreFiles: "/apple-health/mental-health-quiz",
},
],
],
plugins: [
"docusaurus-plugin-sass",
[
"@docusaurus/plugin-pwa",
{
//debug: true,
//offlineModeActivationStrategies: ["appInstalled", "standalone", "queryString"],
pwaHead: [
{
tagName: "link",
rel: "icon",
href: "/img/icons/appicon-512.png",
},
{
tagName: "link",
rel: "manifest",
href: "/manifest.json",
},
{
tagName: "meta",
name: "theme-color",
content: "#f2f4ea",
},
],
},
],
],
scripts: [
/*{
src: '/scripts/customThemeSwitch.js',
async: true,
defer: true
},*/
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: "img/socialcard.jpg",
navbar: {
title: "yell0wsuit",
logo: {
alt: "yell0wsuit logo",
src: "img/logo.svg",
},
items: [
{
type: "docSidebar",
sidebarId: "healthSurvival",
position: "left",
label: "Health & Survival",
},
/*{
type: "localeDropdown",
position: "left",
},*/
],
},
announcementBar: {
id: "beta_wip",
content: "Working to add more contents. Stay tuned!",
isCloseable: true,
},
footer: {
links: [
{
title: "Main links",
items: [
{
label: "Homepage",
to: "https://yell0wsuit.page",
},
{
label: "HTML5 games",
to: "https://yell0wsuit.page/games.html",
},
{
label: "English learning tools",
to: "https://yell0wsuit.page/english.html",
},
{
label: "Blog",
to: "https://blog.yell0wsuit.page",
},
{
label: "About",
to: "https://yell0wsuit.page/about.html",
},
],
},
{
title: "Social links",
items: [
{
label: "GitHub",
href: "https://github.com/yell0wsuit",
},
{
label: "Soundcloud",
href: "https://soundcloud.com/yell0wsuit",
},
{
label: "Steam",
href: "https://steamcommunity.com/id/yell0wsuit",
},
],
},
],
copyright: `© yell0wsuit. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
colorMode: {
disableSwitch: true,
respectPrefersColorScheme: false,
},
}),
future: {
experimental_faster: true,
},
};
export default config;