Skip to content

Handling of custom types as docstrings #1394

@zwwi

Description

@zwwi

This issue was asked at discourse

It can be reproduced by
git clone https://github.com/JuliaPy/PyPlot.jl
then create a doc dir with the following make.jl

using Documenter, PyPlot

makedocs(;
    modules=[PyPlot],
    format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true"),
    pages = ["Home" => "index.md" ]
)

Project.toml:

[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"

and src/index.md:

CurrentModule = PyPlot
```

# PyPlot.jl
    
```@index
```

```@autodocs
Modules = [PyPlot]

Then julia make.jl gives the following error message:

[ Info: SetupBuildDirectory: setting up build directory.
[ Info: Doctest: running doctests.
ERROR: LoadError: AssertionError: md isa Markdown.MD
Stacktrace:
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions