Skip to content

Commit

Permalink
Add "mdbook-external-links" preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
avivace committed Dec 17, 2023
1 parent 093e792 commit 6dd3e83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ jobs:
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 0.4.33

- name: Install mdbook-external-links preprocessor
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo install mdbook-external-links

- name: Install static-sitemap-cli
run: npm install static-sitemap-cli
Expand Down
3 changes: 3 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ use-default-preprocessors = false
command = "cargo run -p pandocs-preproc --locked --release --"
after = [ "links" ]

[preprocessor.external-links]
optional = true

# `{{#include }}` etc. resolution
[preprocessor.links]

Expand Down

0 comments on commit 6dd3e83

Please sign in to comment.