Skip to content

Commit 442a19f

Browse files
committed
feat: 添加前言
1 parent 7871e20 commit 442a19f

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

src/.vitepress/config.mts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,25 @@ export default defineConfig({
3131
// https://vitepress.dev/reference/default-theme-config
3232
logo: "/progynova.png",
3333
nav: [
34-
{ text: "正文", link: "/01/" },
34+
{ text: "正文", link: "/foreword" },
3535
{ text: "关于", link: "/about" },
3636
],
3737
sidebar: generateSidebar({
3838
documentRootPath: "/src",
3939
useTitleFromFileHeading: true,
4040
useFolderTitleFromIndexFile: true,
4141
useFolderLinkFromIndexFile: true,
42+
manualSortFileNameByPriority: ["foreword.md", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "afterword.md", "illustrations.md"],
4243
collapsed: true,
4344
excludeFiles: ["about.md", "SUMMARY.md"],
4445
}),
4546
outline: false,
4647
socialLinks: [{ icon: "github", link: "https://github.com/proskynova" }],
4748
footer: {
48-
message: "基于 <a href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans\">CC BY-NC-SA 4.0</a> 许可发布",
49-
copyright: "版权所有 © 2023 <a href=\"https://github.com/Zh40Le1ZOOB\">Zh40Le1ZOOB</a>",
49+
message:
50+
'基于 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans">CC BY-NC-SA 4.0</a> 许可发布',
51+
copyright:
52+
'版权所有 © 2023 <a href="https://github.com/Zh40Le1ZOOB">Zh40Le1ZOOB</a>',
5053
},
5154
editLink: {
5255
pattern:

src/SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 目录
22

33
- [关于](about.md)
4+
- [前言](foreword.md)
45
- [第一卷 · 朦胧的世界](01/index.md)
56
- [1 · 出走](01/001.md)
67
- [2 · 小城市](01/002.md)
@@ -754,5 +755,5 @@
754755
- [6 · 天语遥](10/006.md)
755756
- [7 · 胡玉牛](10/007.md)
756757
- [8 · 方莜莜](10/008.md)
757-
- [后记](11.md)
758+
- [后记](afterword.md)
758759
- [插画](illustrations.md)
File renamed without changes.

src/foreword.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# 前言
2+
3+
切勿按照本书内容使用药物,如有医疗需求请咨询正规医疗机构。
4+
5+
本书中关于药物的部分包含虚构内容,并非与现实完全一致。
6+
7+
本书中所有角色、事件纯属虚构,请勿对号入座或映射现实。
8+
9+
对跨性别者有歧视、仇恨者请自行离开。

src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hero:
1111
actions:
1212
- theme: brand
1313
text: 开始阅读
14-
link: /01/
14+
link: /foreword
1515
- theme: brand
1616
text: EPUB 版
1717
link: /药娘的天空.epub

0 commit comments

Comments
 (0)