I compared with another project for which I succeeded in making documentation, but could not figure out what went wrong here.
Suggestions are really appreciated. Thanks.
I find out that it was due to I used LazyHelp from PyPlot to get the docstring from the Python module that was imported to my project.
I have sth. like the following in my module (copied from PyPlot.jl):
for f in plt_funcs
sf = string(f)
@eval @doc LazyHelp(plt,$sf) function $f(args...; kws...)
if !hasproperty(plt, $sf)
error("matplotlib ", version, " does not have pyplot.", $sf)
end
return pycall(plt.$sf, PyAny, args...; kws...)
end
end
If I comment out this part, then the documentation can be successfully generated. If there a way to proceed without commenting out this part?
It looks like that the docstring that LazyHelp attaches is not a Markdown.MD and that confuses Documenter. But itβs not immediately obvious where things are going wrong.
I would encourage you to open an issue for Documenter β minimally, we should turn that assertion into a more helpful error. It would help to have a small, isolated example to reproduce this (e.g. a simple module that one could run separately of any dependencies etc.)