Added mdbook-pagetoc preprocessor

This commit is contained in:
Unisko PENG, 2023-03-28 21:43:06 +08:00
parent 774ef0fca0
commit 322ba40c74
3 changed files with 17 additions and 1 deletions

5
.gitignore vendored
View File

@ -1,5 +1,10 @@
# Logs
book
theme/index.hbs
theme/pagetoc.css
theme/pagetoc.js
logs
*.log
npm-debug.log*

11
book.toml Normal file
View File

@ -0,0 +1,11 @@
[book]
authors = ["Lenny Peng"]
language = "zh_CN"
multilingual = false
src = "src"
title = "Yet another Chinese TypeScript tutorial."
[preprocessor.pagetoc]
[output.html]
additional-css = ["theme/pagetoc.css"]
additional-js = ["theme/pagetoc.js"]

View File

@ -154,7 +154,7 @@
<p><a href="https://java.xfoss.com">Java 编程语言</a>&quot;Head First Java&quot; 书中文翻译</p>
</li>
<li>
<p><a href="https://ccna60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d60d.xfoss.com">60天通过CCNA考试</a>,一本基础的网络通讯书,翻译自国外经典 CCNA 60 days</p>
<p><a href="https://ccna60d.xfoss.com">60天通过CCNA考试</a>,一本基础的网络通讯书,翻译自国外经典 CCNA 60 days</p>
</li>
</ul>
<p>你可以在 https://github.com/gnu4cn/ts-learnings 上 fork 本项目,并提交你的修正。</p>