Skip to content

Commit 56a6073

Browse files
committed
set up mdbook-linkcheck
Signed-off-by: Daniel Maslowski <info@orangecms.org>
1 parent 2a8b4ab commit 56a6073

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
mdbook-version: "0.4.48"
2525
use-mermaid: true
2626
mermaid-version: "0.15.0"
27+
use-linkcheck: true
28+
linkcheck-version: "0.7.7"
2729

2830
- name: Install mdbook-mermaid
2931
run: mdbook-mermaid install

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ build:
44
run:
55
mdbook serve
66

7+
linkcheck:
8+
mdbook-linkcheck
9+
710
prepare:
811
cargo install mdbook
912
cargo install mdbook-mermaid
1013
mdbook-mermaid install
14+
cargo install mdbook-linkcheck

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ For more details, please refer to the mdBook documentation.
1818
Some pages render diagrams using [mermaid.js](https://mermaid.js.org/), which is
1919
preprocessed with [mdbook-mermaid](https://github.com/badboy/mdbook-mermaid).
2020

21+
To check that all links are still available, [mdbook-linkcheck](
22+
https://github.com/Michael-F-Bryan/mdbook-linkcheck) also runs in CI.
23+
2124
For convenience, the `Makefile` lets you set up and run the environment:
2225

2326
```sh

book.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ cname = "book.linuxboot.org"
1010
git-repository-url = "https://github.com/linuxboot/book"
1111
additional-js = ["mermaid.min.js", "mermaid-init.js"]
1212

13+
[output.linkcheck]
14+
1315
[preprocessor]
1416

1517
[preprocessor.mermaid]

0 commit comments

Comments
 (0)