about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide/book.toml
diff options
context:
space:
mode:
authorTshepang Mbambo <hopsi@tuta.io>2025-08-03 06:55:44 +0200
committerGitHub <noreply@github.com>2025-08-03 06:55:44 +0200
commit3bba46bb5242e2b32c9e48eaedcea1d55f9ebb2a (patch)
tree71ce326c3053c1c4a257bb72ce11f682eb55726c /src/doc/rustc-dev-guide/book.toml
parent700e063e7ed65307371adb0177f1c1312a14c96c (diff)
parent65589ad33f544003e49cabeb0b76f6b1f0d3ce30 (diff)
Merge pull request #2509 from rust-lang/tshepang-auto-toc
make toc generation fully automatic
Diffstat (limited to 'src/doc/rustc-dev-guide/book.toml')
-rw-r--r--src/doc/rustc-dev-guide/book.toml11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/doc/rustc-dev-guide/book.toml b/src/doc/rustc-dev-guide/book.toml
index b84b1e7548a..daf237ed908 100644
--- a/src/doc/rustc-dev-guide/book.toml
+++ b/src/doc/rustc-dev-guide/book.toml
@@ -6,17 +6,18 @@ description = "A guide to developing the Rust compiler (rustc)"
 [build]
 create-missing = false
 
-[preprocessor.toc]
-command = "mdbook-toc"
-renderer = ["html"]
-
 [preprocessor.mermaid]
 command = "mdbook-mermaid"
 
 [output.html]
 git-repository-url = "https://github.com/rust-lang/rustc-dev-guide"
 edit-url-template = "https://github.com/rust-lang/rustc-dev-guide/edit/master/{path}"
-additional-js = ["mermaid.min.js", "mermaid-init.js"]
+additional-js = [
+  "mermaid.min.js",
+  "mermaid-init.js",
+  "pagetoc.js",
+]
+additional-css = ["pagetoc.css"]
 
 [output.html.search]
 use-boolean-and = true