Skip to content

Commit c4f8509

Browse files
committed
Check for broken links on CI
1 parent 7f07ec0 commit c4f8509

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/guide.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,28 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14-
- name: Setup mdBook
14+
- name: Setup mdbook
1515
uses: peaceiris/actions-mdbook@v1
1616
with:
1717
mdbook-version: "0.4.6"
1818

19-
- name: Setup mdBook-mermaid
19+
- name: Setup mdbook-mermaid
2020
uses: actions-rs/cargo@v1
2121
with:
2222
command: install
2323
args: mdbook-mermaid
2424

25+
- name: Setup mdbook-linkcheck
26+
uses: actions-rs/cargo@v1
27+
with:
28+
command: install
29+
args: mdbook-linkcheck
30+
2531
- run: |
2632
cd guide
2733
mdbook build
2834
- name: Deploy
2935
uses: peaceiris/actions-gh-pages@v3
3036
with:
3137
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./guide/book
38+
publish_dir: ./guide/book

guide/book.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ multilingual = false
55
src = "src"
66
title = "Hermes Documentation"
77

8-
[preprocessor]
98
[preprocessor.mermaid]
109
command = "mdbook-mermaid"
1110

1211
[output.html]
1312
additional-js = ["mermaid.min.js", "mermaid-init.js"]
13+
14+
[output.linkcheck]

0 commit comments

Comments
 (0)