Skip to content

Commit

Permalink
Merge pull request #1914 from ehuss/update-mdbook
Browse files Browse the repository at this point in the history
Update mdbook to 0.4.46
  • Loading branch information
marioidival authored Mar 9, 2025
2 parents 66543bb + 64b9734 commit 6f69823
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 377 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rbe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install mdbook
run: |
mkdir bin
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
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
echo "$(pwd)/bin" >> ${GITHUB_PATH}
- name: Install mdbook-i18n-helpers
Expand Down
2 changes: 2 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ enable = true

[output.html]
git-repository-url = "https://github.com/rust-lang/rust-by-example"
hash-files = true
additional-css = [
"theme/css/language-picker.css",
]
additional-js = ["theme/js/language-picker.js"]

[rust]
edition = "2021"
Expand Down
4 changes: 4 additions & 0 deletions theme/head.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<script>
const mdbookPath = "{{ path }}";
const mdbookPathToRoot = "{{ path_to_root }}";
</script>
Loading

0 comments on commit 6f69823

Please sign in to comment.