Skip to content

Commit a0e1add

Browse files
authored
Add more tools to install instructions. (#2756)
Install mdbook-linkcheck2 via xtask, rather than separate step.
1 parent c60070b commit a0e1add

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,6 @@ jobs:
161161
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
162162
msgfmt -o /dev/null --statistics po/messages.pot
163163
164-
- name: Install mdbook-linkcheck2
165-
if: contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language)
166-
run: |
167-
cargo uninstall mdbook-linkcheck || true
168-
cargo install mdbook-linkcheck2 --locked --version 0.9.1
169-
170164
- name: Build ${{ matrix.language }} translation
171165
run: |
172166
.github/workflows/build.sh ${{ matrix.language }} book/comprehensive-rust-${{ matrix.language }}

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ Install `dprint` using their
5959
[installation instructions](https://dprint.dev/install/) and install `rustfmt`
6060
via `rustup`.
6161

62+
Install [pandoc 3.7.0.1](https://github.com/jgm/pandoc/releases/tag/3.7.0.1).
63+
6264
On Debian, you can install the other tools using:
6365

6466
```sh
65-
sudo apt install yapf3 gettext
67+
sudo apt install yapf3 gettext texlive texlive-luatex texlive-lang-cjk texlive-lang-arabic librsvg2-bin fonts-noto
6668
```
6769

6870
### MacOS

xtask/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ fn install_tools() -> Result<()> {
8484
vec!["mdbook-pandoc", "--locked", "--version", "0.10.4"],
8585
vec!["mdbook-i18n-helpers", "--locked", "--version", "0.3.6"],
8686
vec!["i18n-report", "--locked", "--version", "0.2.0"],
87+
vec!["mdbook-linkcheck2", "--locked", "--version", "0.9.1"],
8788
// Mdbook-exerciser and mdbook-course are located in this repository.
8889
// To make it possible to install them from any directory we need to
8990
// specify their path from the workspace root.

0 commit comments

Comments
 (0)