File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 2121# TODO : doc on parameter & state handling? -> symbolic indexing
2222
2323mtkext = 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+
6073deploydocs (; 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
You can’t perform that action at this time.
0 commit comments