Skip to content

Commit 3d0acce

Browse files
committed
use open sans as fallback
1 parent 6f0a9ae commit 3d0acce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ 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
33+
if: "github.event.pull_request.head.repo.fork"
34+
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
3238
- uses: actions-rust-lang/setup-rust-toolchain@v1
3339
- name: Install exercise plugin
3440
run: cargo install --path helpers/mdbook-exercise-linker

0 commit comments

Comments
 (0)