Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set GIT_TEMPLATE_DIR when calling Git #1862

Merged
merged 10 commits into from
Jul 6, 2022
Prev Previous commit
Next Next commit
Also fix doctest tests with JULIA_DEBUG
mortenpi committed Jun 27, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit e1af8f54366b1729599eadc3c1297d1888c9dc05
18 changes: 11 additions & 7 deletions test/doctests/doctests.jl
Original file line number Diff line number Diff line change
@@ -34,13 +34,17 @@ function run_makedocs(f, mdfiles, modules=Module[]; kwargs...)
touch(joinpath(srcdir, "index.md"))

c = IOCapture.capture(rethrow = InterruptException) do
makedocs(
sitename = " ",
format = Documenter.HTML(edit_link = "master"),
root = dir,
modules = modules;
kwargs...
)
# In case JULIA_DEBUG is set to something, we'll override that, so that we wouldn't
# get some unexpected debug output from makedocs.
withenv("JULIA_DEBUG" => "") do
makedocs(
sitename = " ",
format = Documenter.HTML(edit_link = "master"),
root = dir,
modules = modules;
kwargs...
)
end
end

@debug """run_makedocs($mdfiles, modules=$modules) -> $(c.error ? "fail" : "success")