I’m stuck trying to run doctests; it seems that the module isn’t being loaded, but I’ve included what I think is the appropriate meta DocTestSetup block. I’ve been banging my head against this on and off for months, so any suggestions would be greatly appreciated. edit: When I try, e.g. Simulation73.extent
I also get Simulation73 is not defined
.
# docs/make.jl
using Documenter, Simulation73
makedocs(
sitename="Simulation73",
modules=[Simulation73],
pages = [
"Home" => "index.md",
"Manual" => Any[
"man/simulation.md"
],
"Library" => Any[
"Public" => "lib/public.md",
hide("Internals" => "lib/internals.md",
Any[joinpath("lib/internals", f) for f in readdir("docs/src/lib/internals")]
)
]
]
)
deploydocs(
repo = "github.com/grahamas/Simulation73.git"
)
# docs/src/index.md
# Simulation73 Documentation
``@meta
DocTestSetup = quote
using Simulation73
end
``
## Manual
``@contents
Pages = joinpath.("man", ["simulation.md"])
``
## Library Documentation
``@contents
Pages = joinpath.("lib", ["public.md", "internals.md"])
``
# test/runtests.jl
using Test, Documenter, Simulation73
doctest(Simulation73)
When run, the test returns all errored because no variables defined in Simulation73
exist. T̶h̶e̶ ̶p̶r̶o̶b̶l̶e̶m̶ ̶i̶s̶ ̶f̶i̶x̶e̶d̶ ̶b̶y̶ ̶q̶u̶a̶l̶i̶f̶y̶i̶n̶g̶ ̶a̶l̶l̶ ̶v̶a̶r̶i̶a̶b̶l̶e̶s̶ ̶(̶e̶.̶g̶.̶ ̶̶S̶i̶m̶u̶l̶a̶t̶i̶o̶n̶7̶3̶.̶e̶x̶t̶e̶n̶t̶
̶)̶,̶ ̶b̶u̶t̶ ̶I̶’̶d̶ ̶r̶e̶a̶l̶l̶y̶ ̶r̶a̶t̶h̶e̶r̶ ̶n̶o̶t̶.̶