Commit 2f9bf52
committed
ci: Break CI build on broken links, ommitted files
Mkdocs is able to detect broken links or files ommitted from the "nav"
configuration, etc. By default, it reports them at the "INFO" level.
Instead, we can have "mkdocs build" report them as warnings. To do so,
we follow the documentation's "recommended settings for most sites
(maximal strictness)" (see link).
Once "mkdocs build" emits warnings for these issues, we can use the
strict mode (-s|--strict) to have the build error out if anything looks
wrong. Let's use this in CI to detect broken links, for example.
Link: https://www.mkdocs.org/user-guide/configuration/#validation
Signed-off-by: Quentin Monnet <qmo@qmon.net>1 parent f685895 commit 2f9bf52
3 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
136 | 142 | | |
137 | 143 | | |
138 | 144 | | |
0 commit comments