mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-15 21:28:43 +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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Enable mdbook-pandoc to build PDF version of the course
|
||||||
|
export MDBOOK_OUTPUT__PANDOC__DISABLED=false
|
||||||
|
|
||||||
mdbook build -d "$dest_dir"
|
mdbook build -d "$dest_dir"
|
||||||
|
|
||||||
# Disable the redbox button in built versions of the course
|
# 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
|
- name: Install mdbook-pandoc and related dependencies
|
||||||
run: |
|
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 update
|
||||||
sudo apt-get install -y texlive texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto
|
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 -
|
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/bin" >> $GITHUB_PATH
|
echo "$PWD/pandoc-3.2.1/bin" >> $GITHUB_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Install mdbook-i18n-helpers
|
- name: Install mdbook-i18n-helpers
|
||||||
|
@ -24,6 +24,7 @@ verbose = false # Report timing information.
|
|||||||
|
|
||||||
[output.pandoc]
|
[output.pandoc]
|
||||||
optional = true
|
optional = true
|
||||||
|
disabled = true
|
||||||
hosted-html = "https://google.github.io/comprehensive-rust/"
|
hosted-html = "https://google.github.io/comprehensive-rust/"
|
||||||
|
|
||||||
[output.pandoc.profile.pdf]
|
[output.pandoc.profile.pdf]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user