diff --git a/.github/workflows/rbe.yml b/.github/workflows/rbe.yml index 97b7c0bc79..b482285d8a 100644 --- a/.github/workflows/rbe.yml +++ b/.github/workflows/rbe.yml @@ -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 diff --git a/book.toml b/book.toml index e8364161b2..05b898aa07 100644 --- a/book.toml +++ b/book.toml @@ -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" diff --git a/theme/head.hbs b/theme/head.hbs new file mode 100644 index 0000000000..f9a6286907 --- /dev/null +++ b/theme/head.hbs @@ -0,0 +1,4 @@ + diff --git a/theme/index.hbs b/theme/index.hbs deleted file mode 100644 index 504b437742..0000000000 --- a/theme/index.hbs +++ /dev/null @@ -1,376 +0,0 @@ - - -
- - -