Skip to content

Commit

Permalink
[docs] Build with linkcheck=true (#856)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
giordano and giordano authored Sep 6, 2024
1 parent 780aaa0 commit 80e84d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267"

[compat]
Documenter = "1"
Documenter = "1.7"
MPIPreferences = "0.1"
MPI = "0.20"
4 changes: 4 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ makedocs(
],
"refindex.md",
],
# Run linkcheck tests only on CI, to speed up building of documentation locally. If one
# wants to run the linkchecks locally they can set the environment variable `CI=true`.
linkcheck = get(ENV, "CI", "false") == "true",
linkcheck_useragent = nothing,
)

deploydocs(
Expand Down

0 comments on commit 80e84d3

Please sign in to comment.