diff --git a/.github/workflows/rbe.yml b/.github/workflows/rbe.yml index c24ec76737..5a5ac4bd5d 100644 --- a/.github/workflows/rbe.yml +++ b/.github/workflows/rbe.yml @@ -3,7 +3,8 @@ on: [push, pull_request] env: # Update the language picker in index.hbs to link new languages. - LANGUAGES: ja zh es + LANGUAGES: ja zh es ko + MDBOOK_VERSION: 0.5.1 jobs: test: @@ -27,12 +28,12 @@ jobs: - name: Install mdbook run: | mkdir bin - curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.51/mdbook-v0.4.51-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin + curl -sSL https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin echo "$(pwd)/bin" >> ${GITHUB_PATH} - name: Install mdbook-i18n-helpers run: | - cargo install mdbook-i18n-helpers --locked --version 0.3.4 + cargo install mdbook-i18n-helpers --locked --version 0.4.0 - name: Report versions run: | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 21c4d4567b..ffc8be1fe5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -56,8 +56,7 @@ $ mdbook build **The following warnings can be ignored safely.** ```text -[WARN] (mdbook::preprocess::cmd): The command wasn't found, is the "gettext" preprocessor installed? -[WARN] (mdbook::preprocess::cmd): Command: mdbook-gettext + WARN The command `mdbook-gettext` for preprocessor `gettext` was not found, but is marked as optional. ``` [install Rust]: http://rust-lang.org/install.html diff --git a/README.md b/README.md index b7a7dbf879..d56a73aeba 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,7 @@ read all content offline, however! **The following warnings can be ignored safely.** ```text -[WARN] (mdbook::preprocess::cmd): The command wasn't found, is the "gettext" preprocessor installed? -[WARN] (mdbook::preprocess::cmd): Command: mdbook-gettext + WARN The command `mdbook-gettext` for preprocessor `gettext` was not found, but is marked as optional. ``` ### Using translated version diff --git a/TRANSLATING.md b/TRANSLATING.md index 39f254d0e7..19733edb08 100644 --- a/TRANSLATING.md +++ b/TRANSLATING.md @@ -61,7 +61,7 @@ MDBOOK_BOOK__LANGUAGE=xx mdbook serve ### Add a language entry -Please add a language entry in `.github/workflows/rbe.yml`, `theme/index.hbs`, and `src/bootstrap/src/core/build_steps/doc.rs` in [rust-lang/rust](https://github.com/rust-lang/rust) like below: +Please add a language entry in `.github/workflows/rbe.yml`, `theme/head.hbs`, and `src/bootstrap/src/core/build_steps/doc.rs` in [rust-lang/rust](https://github.com/rust-lang/rust) like below: * `rbe.yml` @@ -71,7 +71,7 @@ env: LANGUAGES: xx yy zz ``` -* `index.hbs` +* `head.hbs` ```html