Skip to content

Commit

Permalink
build_doc: also set terminal size
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Oct 2, 2024
1 parent c378d49 commit 5d2eb7a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/utils/docs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,13 @@ function build_doc(; doctest::Union{Symbol, Bool} = false, warnonly = true, open
if !isdefined(Main, :BuildDoc)
doc_init()
end
with_unicode(false) do
Pkg.activate(docsproject) do
Base.invokelatest(
Main.BuildDoc.doit, Oscar; warnonly=warnonly, local_build=true, doctest=doctest
)
withenv("COLUMNS"=>80, "LINES"=>24) do
with_unicode(false) do
Pkg.activate(docsproject) do
Base.invokelatest(

Check warning on line 228 in src/utils/docs.jl

View check run for this annotation

Codecov / codecov/patch

src/utils/docs.jl#L225-L228

Added lines #L225 - L228 were not covered by tests
Main.BuildDoc.doit, Oscar; warnonly=warnonly, local_build=true, doctest=doctest
)
end
end
end
if start_server
Expand Down

0 comments on commit 5d2eb7a

Please sign in to comment.