1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-02-11 12:55:01 +02:00

Upgrade mdbook-pandoc and disable it except during CI workflows (#2212)

Implements the approach summarized in
https://github.com/google/mdbook-i18n-helpers/issues/200#issuecomment-2220035461
to disable running `mdbook-pandoc` even if it is available to avoid
dependency-related issues during local rendering.

Should address https://github.com/google/comprehensive-rust/issues/1911
since `mdbook-pandoc` will no longer run locally.
This commit is contained in:
Max Heller 2024-07-18 07:01:25 -04:00 committed by GitHub
parent 054169992e
commit df2076b111
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -36,6 +36,9 @@ else
fi
fi
# Enable mdbook-pandoc to build PDF version of the course
export MDBOOK_OUTPUT__PANDOC__DISABLED=false
mdbook build -d "$dest_dir"
# Disable the redbox button in built versions of the course

View File

@ -17,11 +17,11 @@ runs:
- name: Install mdbook-pandoc and related dependencies
run: |
cargo install mdbook-pandoc --locked --version 0.6.4
cargo install mdbook-pandoc --locked --version 0.7.0
sudo apt-get update
sudo apt-get install -y texlive texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.2/pandoc-3.2-linux-amd64.tar.gz | tar zxf -
echo "$PWD/pandoc-3.2/bin" >> $GITHUB_PATH
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.2.1/pandoc-3.2.1-linux-amd64.tar.gz | tar zxf -
echo "$PWD/pandoc-3.2.1/bin" >> $GITHUB_PATH
shell: bash
- name: Install mdbook-i18n-helpers

View File

@ -24,6 +24,7 @@ verbose = false # Report timing information.
[output.pandoc]
optional = true
disabled = true
hosted-html = "https://google.github.io/comprehensive-rust/"
[output.pandoc.profile.pdf]