mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2025-02-04 08:30:14 +08:00
Added mdbook-pagetoc preprocessor
This commit is contained in:
parent
ed1b6fe9d2
commit
5e06d064f2
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,5 @@
|
||||
book
|
||||
target
|
||||
theme/index.hbs
|
||||
theme/pagetoc.css
|
||||
theme/pagetoc.js
|
||||
|
@ -4,3 +4,8 @@ language = "zh_CN"
|
||||
multilingual = false
|
||||
src = "src"
|
||||
title = "Yet another Chinese rust-lang book."
|
||||
|
||||
[preprocessor.pagetoc]
|
||||
[output.html]
|
||||
additional-css = ["theme/pagetoc.css"]
|
||||
additional-js = ["theme/pagetoc.js"]
|
||||
|
@ -29,6 +29,7 @@
|
||||
<link rel="stylesheet" href="ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
<link rel="stylesheet" href="theme/pagetoc.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
@ -143,7 +144,7 @@
|
||||
</script>
|
||||
|
||||
<div id="content" class="content">
|
||||
<main>
|
||||
<main><div class="sidetoc"><nav class="pagetoc"></nav></div>
|
||||
<h1 id="rust-编程语言"><a class="header" href="#rust-编程语言">Rust 编程语言</a></h1>
|
||||
<p>原著:<a href="https://doc.rust-lang.org/book/">The Rust Programming Language</a></p>
|
||||
<p><em>原作者:Steve Klabnik 与 Carol Nichols, 及 Rust 社区</em></p>
|
||||
@ -254,6 +255,7 @@ rustc 1.68.0 (2c8cc3432 2023-03-06)
|
||||
<script src="book.js"></script>
|
||||
|
||||
<!-- Custom JS scripts -->
|
||||
<script src="theme/pagetoc.js"></script>
|
||||
|
||||
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user