diff --git a/docs/literate/make.jl b/docs/literate/make.jl index b620f85c975..f6ee8e78c97 100644 --- a/docs/literate/make.jl +++ b/docs/literate/make.jl @@ -56,7 +56,12 @@ function create_tutorials(files) @testset "$(filename[j][2][2])" begin include(joinpath(repo_src, filename[j][2][1], filename[j][2][2])) end end else # Single files - @testset "$title" begin include(joinpath(repo_src, filename)) end + mod = gensym(title) + @testset "$title" begin + @eval module $mod + include(joinpath(repo_src, filename)) + end + end end end end