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:
parent
054169992e
commit
df2076b111
3
.github/workflows/build.sh
vendored
3
.github/workflows/build.sh
vendored
@ -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
|
||||
|
6
.github/workflows/install-mdbook/action.yml
vendored
6
.github/workflows/install-mdbook/action.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user