Skip to content

Commit 6f69823

Browse files
authored
Merge pull request #1914 from ehuss/update-mdbook
Update mdbook to 0.4.46
2 parents 66543bb + 64b9734 commit 6f69823

File tree

5 files changed

+57
-377
lines changed

5 files changed

+57
-377
lines changed

.github/workflows/rbe.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Install mdbook
2828
run: |
2929
mkdir bin
30-
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.42/mdbook-v0.4.42-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
30+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.46/mdbook-v0.4.46-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
3131
echo "$(pwd)/bin" >> ${GITHUB_PATH}
3232
3333
- name: Install mdbook-i18n-helpers

book.toml

+2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ enable = true
1313

1414
[output.html]
1515
git-repository-url = "https://github.com/rust-lang/rust-by-example"
16+
hash-files = true
1617
additional-css = [
1718
"theme/css/language-picker.css",
1819
]
20+
additional-js = ["theme/js/language-picker.js"]
1921

2022
[rust]
2123
edition = "2021"

theme/head.hbs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<script>
2+
const mdbookPath = "{{ path }}";
3+
const mdbookPathToRoot = "{{ path_to_root }}";
4+
</script>

0 commit comments

Comments
 (0)