Skip to content

Commit 48b8e3c

Browse files
committed
install opensans differently
1 parent cfd712d commit 48b8e3c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ jobs:
2929
sudo cp -r core-sans-a-fonts/* /usr/local/share/fonts/
3030
sudo fc-cache -f -v
3131
fc-list | grep "Core Sans"
32-
- name: Use Fallback find for fork PRs
32+
- name: Use Fallback font for fork PRs
3333
if: "github.event.pull_request.head.repo.fork"
3434
run: |
35-
sed -i 's/CoreSansA45.ttf/OpenSans-Regular.ttf/g' book/book.toml
36-
sed -i 's/CoreSansA45It.ttf/OpenSans-Italic.ttf/g' book/book.toml
37-
sed -i 's/CoreSansA65It.ttf/OpenSans-BoldItalic.ttf/g' book/book.toml
35+
sed -i 's/CoreSansA45.ttf/Open Sans:style=Regular/g' book/book.toml
36+
sed -i 's/CoreSansA45It.ttf/Open Sans:style=Italic/g' book/book.toml
37+
sed -i 's/CoreSansA65.ttf/Open Sans:style=Bold/g' book/book.toml
38+
sed -i 's/CoreSansA65It.ttf/Open Sans:style=Bold Italic/g' book/book.toml
39+
cat book/book.toml
3840
- uses: actions-rust-lang/setup-rust-toolchain@v1
3941
- name: Install exercise plugin
4042
run: cargo install --path helpers/mdbook-exercise-linker
@@ -45,7 +47,7 @@ jobs:
4547
cargo install mdbook-pandoc --locked --version 0.7.1
4648
sudo apt-get update
4749
sudo apt-get install -y fonts-noto fonts-open-sans calibre pdftk
48-
50+
sudo fc-cache -f -v
4951
export PANDOC_VERSION=3.3
5052
curl -LsSf https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz | tar zxf -
5153
echo "$PWD/pandoc-${PANDOC_VERSION}/bin" >> $GITHUB_PATH

book/book.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ show-hidden-lines = true
2828
[output.pandoc.profile.pdf] # options to pass to Pandoc (see https://pandoc.org/MANUAL.html)
2929
output-file = "100-exercises-to-learn-rust.pdf"
3030
to = "latex"
31+
verbosity = "INFO"
3132
highlight-style = "./custom.theme"
3233
# We use `lualatext` because, right now, it's the only engine
3334
# that supports fallback fonts, which we need for emojis.

0 commit comments

Comments
 (0)