Skip to content

Commit

Permalink
feat: 添加前言
Browse files Browse the repository at this point in the history
  • Loading branch information
Zh40Le1ZOOB committed Feb 2, 2024
1 parent 7871e20 commit 442a19f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,25 @@ export default defineConfig({
// https://vitepress.dev/reference/default-theme-config
logo: "/progynova.png",
nav: [
{ text: "正文", link: "/01/" },
{ text: "正文", link: "/foreword" },
{ text: "关于", link: "/about" },
],
sidebar: generateSidebar({
documentRootPath: "/src",
useTitleFromFileHeading: true,
useFolderTitleFromIndexFile: true,
useFolderLinkFromIndexFile: true,
manualSortFileNameByPriority: ["foreword.md", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "afterword.md", "illustrations.md"],
collapsed: true,
excludeFiles: ["about.md", "SUMMARY.md"],
}),
outline: false,
socialLinks: [{ icon: "github", link: "https://github.com/proskynova" }],
footer: {
message: "基于 <a href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans\">CC BY-NC-SA 4.0</a> 许可发布",
copyright: "版权所有 © 2023 <a href=\"https://github.com/Zh40Le1ZOOB\">Zh40Le1ZOOB</a>",
message:
'基于 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans">CC BY-NC-SA 4.0</a> 许可发布',
copyright:
'版权所有 © 2023 <a href="https://github.com/Zh40Le1ZOOB">Zh40Le1ZOOB</a>',
},
editLink: {
pattern:
Expand Down
3 changes: 2 additions & 1 deletion src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 目录

- [关于](about.md)
- [前言](foreword.md)
- [第一卷 · 朦胧的世界](01/index.md)
- [1 · 出走](01/001.md)
- [2 · 小城市](01/002.md)
Expand Down Expand Up @@ -754,5 +755,5 @@
- [6 · 天语遥](10/006.md)
- [7 · 胡玉牛](10/007.md)
- [8 · 方莜莜](10/008.md)
- [后记](11.md)
- [后记](afterword.md)
- [插画](illustrations.md)
File renamed without changes.
9 changes: 9 additions & 0 deletions src/foreword.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 前言

切勿按照本书内容使用药物,如有医疗需求请咨询正规医疗机构。

本书中关于药物的部分包含虚构内容,并非与现实完全一致。

本书中所有角色、事件纯属虚构,请勿对号入座或映射现实。

对跨性别者有歧视、仇恨者请自行离开。
2 changes: 1 addition & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hero:
actions:
- theme: brand
text: 开始阅读
link: /01/
link: /foreword
- theme: brand
text: EPUB 版
link: /药娘的天空.epub
Expand Down

0 comments on commit 442a19f

Please sign in to comment.