Skip to content

Commit 4999c78

Browse files
committed
try make docs pr with warnonly but still fail
1 parent a6fb5d1 commit 4999c78

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

docs/make.jl

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ end
2121
# TODO: doc on parameter & state handling? -> symbolic indexing
2222

2323
mtkext = Base.get_extension(NetworkDynamics, :MTKExt)
24-
makedocs(;
24+
kwargs = (;
2525
root=joinpath(pkgdir(NetworkDynamics), "docs"),
2626
sitename="NetworkDynamics",
2727
modules=[NetworkDynamics, mtkext],
@@ -53,13 +53,30 @@ makedocs(;
5353
],
5454
draft=false,
5555
format = Documenter.HTML(ansicolor = true),
56-
warnonly=[:cross_references, :missing_docs, :docs_block],
5756
# warnonly=true,
5857
)
5958

59+
success = true
60+
thrown_ex = nothing
61+
try
62+
# strict build
63+
makedocs(; kwargs)
64+
catch e
65+
@info "Strict doc build failed, try again with warnonly=true"
66+
success = false
67+
thrown_ex = e
68+
# kwargs = (; kwargs..., warnonly=[:cross_references, :missing_docs, :docs_block])
69+
kwargs = (; kwargs..., warnonly=true)
70+
makedocs(; kwargs)
71+
end
72+
6073
deploydocs(; repo="github.com/JuliaDynamics/NetworkDynamics.jl.git",
6174
devbranch="main", push_preview=true)
6275

76+
if !success
77+
rethrow(thrown_ex)
78+
end
79+
6380
# warnonly options
6481
# :autodocs_block
6582
# :cross_references

0 commit comments

Comments
 (0)