Run mdbook-linkcheck standalone; upload Pages from target/book

This commit is contained in:
andrussal 2025-12-03 07:42:44 +01:00
parent 62a4dc938c
commit d62d551492
2 changed files with 3 additions and 4 deletions

View File

@ -434,11 +434,13 @@ jobs:
run: npx -y markdownlint-cli2 "book/src/**/*.md" run: npx -y markdownlint-cli2 "book/src/**/*.md"
- name: Build book - name: Build book
run: mdbook build book run: mdbook build book
- name: Check links
run: mdbook-linkcheck -s book
- name: Upload book artifact for Pages - name: Upload book artifact for Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
path: book/book path: target/book
deploy_book: deploy_book:
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'

View File

@ -8,9 +8,6 @@ title = "Nomos Testing Book"
# Keep book output in target/ to avoid polluting the workspace root. # Keep book output in target/ to avoid polluting the workspace root.
build-dir = "../target/book" build-dir = "../target/book"
[preprocessor.linkcheck]
command = "mdbook-linkcheck"
[output.html] [output.html]
additional-js = ["theme/mermaid-init.js"] additional-js = ["theme/mermaid-init.js"]
default-theme = "light" default-theme = "light"