I was playing around with autodoc lately, and encountered an issue with anonymous imports, getting
error: error: ModuleNotFound
when calling a step that creates docs via getEmittedDocs(). The anonymous import is added to the module in the build.zig and works fine, also the autodoc generation works fine, just not the combination of the two
is there a way to exclude imports from autodoc?
I know this feature is quiet new but is there some documentation on the autodoc feature in general?
install_docs creates the directory zig-out/docs
for doc_tests don’t use your full module set, but a simpler zig source that includes the wanted documentation.
It’s been a while since I looked at the autodocs feature, it seems that a significant revision was done since last time. Anonymous modules do not seem to be a problem anymore.
What (kind of) worked in the past, that you could just open the index.html in your browser, now doesn’t work anymore. But you can run the docs on a local server, e.g. via