mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-04 06:13:09 +00:00
Run mdbook-linkcheck standalone; upload Pages from target/book
This commit is contained in:
parent
62a4dc938c
commit
d62d551492
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@ -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'
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user