Skip to content

Commit

Permalink
Allow passing ARGS via env.vars to docs/make.jl
Browse files Browse the repository at this point in the history
(cherry picked from commit 02619fd, PR #1058)
  • Loading branch information
mortenpi committed Jul 3, 2019
1 parent 299e067 commit 2d7afce
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
using Documenter, DocumenterTools

# The DOCSARGS environment variable can be used to pass additional arguments to make.jl.
# This is useful on CI, if you need to change the behavior of the build slightly but you
# can not change the .travis.yml or make.jl scripts any more (e.g. for a tag build).
if haskey(ENV, "DOCSARGS")
for arg in split(ENV["DOCSARGS"])
push!(ARGS, arg)
end
end

makedocs(
modules = [Documenter, DocumenterTools],
format = Documenter.HTML(
Expand Down Expand Up @@ -49,7 +58,7 @@ makedocs(
],
"contributing.md",
],
strict = true,
strict = !("strict=false" in ARGS),
)

deploydocs(
Expand Down

0 comments on commit 2d7afce

Please sign in to comment.