From eb3da86fe9d5326e94225a05ffcf4ec9c8e5aefa Mon Sep 17 00:00:00 2001 From: "Unisko PENG," Date: Tue, 28 Mar 2023 21:43:16 +0800 Subject: [PATCH] Added mdbook-pagetoc preprocessor --- .gitignore | 4 ++++ book.toml | 5 +++++ index.html | 7 ++++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7585238..70a65a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ book + +theme/index.hbs +theme/pagetoc.css +theme/pagetoc.js diff --git a/book.toml b/book.toml index d153d24..62d3ac5 100644 --- a/book.toml +++ b/book.toml @@ -4,3 +4,8 @@ language = "zh-CN" multilingual = false src = "src" title = "CCNA60D Chinese, 中文版 CCNA 60 days" + +[preprocessor.pagetoc] +[output.html] +additional-css = ["theme/pagetoc.css"] +additional-js = ["theme/pagetoc.js"] diff --git a/index.html b/index.html index c4d1c94..eea4786 100644 --- a/index.html +++ b/index.html @@ -29,6 +29,7 @@ + @@ -143,9 +144,8 @@
-
-

60 天通过 CCNA 考试

-

60 天通过 CCNA 考试 🖧

+
+

60 天通过 CCNA 考试 🖧

Cisco CCNA in 60 Days

  • @@ -257,6 +257,7 @@ +