From a6e41c5f115e76f9e965d966feb38abe75ae2cfe Mon Sep 17 00:00:00 2001 From: Hector PENG Date: Fri, 10 Jan 2025 09:14:08 +0800 Subject: [PATCH] Updated src/ALL.md. --- book.toml | 4 ++++ theme/pagetoc.js | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/book.toml b/book.toml index 761f07f..1cfa70e 100644 --- a/book.toml +++ b/book.toml @@ -6,6 +6,10 @@ src = "src" title = "又一本 Jenkins 书。" description = "又一本 Jenkins 书,Yet another Chinese Jenkins book。" +[preprocessor.last-changed] +command = "mdbook-last-changed" +renderer = ["html"] + [preprocessor.pagetoc] [output.html] additional-css = ["theme/pagetoc.css"] diff --git a/theme/pagetoc.js b/theme/pagetoc.js index 2e79f03..5bfb6df 100644 --- a/theme/pagetoc.js +++ b/theme/pagetoc.js @@ -65,3 +65,12 @@ if(document.querySelector("#document-not-found404")) { } }, 1000); } + +var f = document.getElementById("last-change"); +if (f) { + var text = f.innerHTML; + text = text.replace("Last change", "知识共享许可协议,CC - 最后修改") + text = text.replace("commit", "于提交") + + f.innerHTML = text +}