Skip to content

Commit 94d88ed

Browse files
authored
allow building the docs locally (#143)
1 parent 7d7856d commit 94d88ed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/make.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
using Documenter
22
import Pkg
3+
4+
# Fix for https://github.com/trixi-framework/Trixi.jl/issues/668
5+
# to allow building the docs locally
6+
if (get(ENV, "CI", nothing) != "true") &&
7+
(get(ENV, "JULIA_DOC_DEFAULT_ENVIRONMENT", nothing) != "true")
8+
push!(LOAD_PATH, dirname(@__DIR__))
9+
end
10+
311
using RootedTrees
412

513
# Define module-wide setups such that the respective modules are available in doctests

0 commit comments

Comments
 (0)