Skip to content

Commit

Permalink
fix: resolve links correctly when book contains exactly one chapter (#…
Browse files Browse the repository at this point in the history
…101)

Pandoc's `--file-scope` option [only takes effect if there are at least
two files](https://pandoc.org/MANUAL.html#option--file-scope[), so if
there is only one file, links will not be adjusted correctly. In this
case, add an additional empty dummy file as input to convince Pandoc to
perform the link adjustment.
  • Loading branch information
max-heller authored Jun 24, 2024
1 parent f31cc8e commit 5c8f15b
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: ./scripts/install-ci-deps
- name: nextest
run: cargo nextest run
run: cargo nextest run --run-ignored all
- name: doctest
run: cargo test --doc
- name: Archive rendered books
Expand Down
Loading

0 comments on commit 5c8f15b

Please sign in to comment.