simonster / Reexport.jl

Julia macro for re-exporting one module from another
Other
161 stars 19 forks source link

Names are not picked up by Documenter.jl #38

Open fonsp opened 2 years ago

fonsp commented 2 years ago

Any globals inserted into my main module are not automatically rendered when I use autodocs

MWE is a package like:

module Example
using Reexport

@reexport module Sub
export greet
greet(x) = "Hello $x"
end
end

With docs/make.jl

using Documenter

makedocs(;
    sitename = "Example",
    modules = [Example]
)

and docs/src/index.md:

# Example.jl

``\`@meta
CurrentModule = Example
``\`

``\`@autodocs
Modules = [Example]
Order   = [:function, :type]
``\`

Adding

Modules = [Example, Example.Sub]

does not help