I have a docs page with this autodocs field (without the comments):
#```@autodocs
Modules = [MolSimToolkit.Reweighting]
Pages = ["Reweighting/reweighting.jl"]
Order = [:function, :type]
#```
The module Reweighting
is in the file /src/Reweighting/reweighthing.jl
.
This autodocs fais with:
┌ Error: failed to evaluate `Modules = [MolSimToolkit.Reweighting]` in `@autodocs` block in src/Reweighting.md:111-115
│ ```@autodocs
│ Modules = [MolSimToolkit.Reweighting]
│ Pages = ["Reweighting/reweighting.jl"]
│ Order = [:function, :type]
│ ```
│ exception = UndefVarError: `Reweighting` not defined
└ @ Documenter ~/.julia/packages/Documenter/pA5Sa/src/utilities/utilities.jl:44
┌ Error: '@autodocs' missing 'Modules = ...' in src/Reweighting.md:111-115
│ ```@autodocs
│ Modules = [MolSimToolkit.Reweighting]
│ Pages = ["Reweighting/reweighting.jl"]
│ Order = [:function, :type]
│ ```
└ @ Documenter ~/.julia/packages/Documenter/pA5Sa/src/utilities/utilities.jl:44
[ Info: CrossReferences: building cross-references.
[ Info: CheckDocument: running document checks.
[ Info: Populate: populating indices.
ERROR: `makedocs` encountered an error [:autodocs_block] -- terminating build before rendering.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] runner(::Type{Documenter.Builder.RenderDocument}, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/pA5Sa/src/builder_pipeline.jl:253
[3] dispatch(::Type{Documenter.Builder.DocumentPipeline}, x::Documenter.Document)
@ Documenter.Selectors ~/.julia/packages/Documenter/pA5Sa/src/utilities/Selectors.jl:170
[4] #84
@ ~/.julia/packages/Documenter/pA5Sa/src/makedocs.jl:248 [inlined]
[5] withenv(::Documenter.var"#84#86"{Documenter.Document}, ::Pair{String, Nothing}, ::Vararg{Pair{String, Nothing}})
@ Base ./env.jl:257
[6] #83
@ ~/.julia/packages/Documenter/pA5Sa/src/makedocs.jl:247 [inlined]
[7] cd(f::Documenter.var"#83#85"{Documenter.Document}, dir::String)
@ Base.Filesystem ./file.jl:112
[8] #makedocs#82
@ ~/.julia/packages/Documenter/pA5Sa/src/makedocs.jl:247 [inlined]
[9] top-level scope
@ ~/Downloads/MolSimToolkit.jl/docs/make.jl:7
I tried changing the path of the files, the names, but for now without success. In the same project I have some other similar structures which do work.
Any ideas?
In any case, to reproduce it:
git clone https://github.com/LV-IQ/MolSimToolkit.jl
cd MolSimToolkit.jl
julia --project
] activate docs
instantiate
using LiveServer
servedocs()