Skip to content

Commit 80e84d3

Browse files
authored
[docs] Build with linkcheck=true (#856)
* [docs] Build with `linkcheck=true` * [docs] Use empty user agent for linkchecks * [docs] Require Documenter.jl v1.7 * [docs] Run linkchecks only on CI --------- Co-authored-by: Mosè Giordano <[email protected]>
1 parent 780aaa0 commit 80e84d3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
44
MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267"
55

66
[compat]
7-
Documenter = "1"
7+
Documenter = "1.7"
88
MPIPreferences = "0.1"
99
MPI = "0.20"

docs/make.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ makedocs(
7878
],
7979
"refindex.md",
8080
],
81+
# Run linkcheck tests only on CI, to speed up building of documentation locally. If one
82+
# wants to run the linkchecks locally they can set the environment variable `CI=true`.
83+
linkcheck = get(ENV, "CI", "false") == "true",
84+
linkcheck_useragent = nothing,
8185
)
8286

8387
deploydocs(

0 commit comments

Comments
 (0)