Skip to content

Commit 715bc47

Browse files
committed
Do not include headers in search index
This significantly shrinks the pre-compressed search index: $ du -h searchindex-old.js searchindex-new.js 26M searchindex-old.js 19M searchindex-new.js And shrinks the search index even after it's gzipped: $ du -h searchindex-old.js.gz searchindex-new.js.gz 4.5M searchindex-old.js.gz 3.3M searchindex-new.js.gz This change requires a newer version of mdBook, with rust-lang/mdBook#1637
1 parent 0c4110a commit 715bc47

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install mdbook
1515
run: |
1616
mkdir mdbook
17-
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.10/mdbook-v0.4.10-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
17+
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.13/mdbook-v0.4.13-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
1818
echo `pwd`/mdbook >> $GITHUB_PATH
1919
- name: Generate Book
2020
run: |

book.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ title = "The Rust RFC Book"
44
[output.html]
55
no-section-label = true
66
git-repository-url = "https://github.com/rust-lang/rfcs"
7+
8+
[output.html.search]
9+
heading-split-level = 0

0 commit comments

Comments
 (0)