forked from lecepin/body-rejuvenation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vuepress.config.js
66 lines (65 loc) · 1.6 KB
/
vuepress.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
const { defaultTheme } = require("@vuepress/theme-default");
const { pwaPlugin } = require("@vuepress/plugin-pwa");
module.exports = {
lang: "zh-CN",
title: "程序员回春术",
description: "程序员回春术",
base: "/body-rejuvenation/",
head: [
["link", { rel: "icon", href: "/body-rejuvenation/logo.png" }],
[
"link",
{ rel: "manifest", href: "/body-rejuvenation/manifest.webmanifest" },
],
["script", { src: "/body-rejuvenation/reg.sw.js" }],
],
theme: defaultTheme({
repo: "https://github.com/lecepin/body-rejuvenation",
logo: "/logo.png",
navbar: [
{ text: "指南", link: "/guide/" },
{ text: "物理疗法", link: "/fitness/" },
{ text: "食补", link: "/diet/" },
],
sidebar: {
"/guide/": [
{
// text: "指南",
children: [
"/guide/README.md",
"/guide/sleep/README.md",
"/guide/kidney/README.md",
"/guide/control-inflammation/README.md",
"/guide/16h-fasting/README.md",
],
},
],
"/diet/": [
{
// text: "食补",
children: [
"/diet/README.md",
"/diet/肾虚腰痛.md",
"/diet/早衰.md",
"/diet/遗精.md",
],
},
],
"/fitness/": [
{
// text: "物理疗法",
children: [
"/fitness/README.md",
"/fitness/PC.md",
"/fitness/臀肌.md",
],
},
],
},
}),
plugins: [
pwaPlugin({
skipWaiting: true,
}),
],
};