Closed ethankoch4 closed 3 years ago
Hi @ethankoch4 ,
To get the exact folder structure that you are looking for you would need to write a renderer plugin. Currently there is the generic MarkdownRenderer
which can render a set of "api objects" into markdown format in a single file, and that renderer is also used by the MkdocsRenderer
, HugoRenderer
and DocusaurusRenderer
which produce the folder structure according to what's needed for the tool they are targeting.
In theory there could be a renderer that allows you to exactly describe the folder layout in YAML, but that doesn't currently exist.
Thanks for responding! If I write a Renderer (also maybe plumb through a CLI option) would a PR be welcome?
Hey @ethankoch4 , a PR is welcome if your renderer plugin doesn't just fit a niche use case but is applicable more broadly (such as, but not limited to, a generic plugin that allows you to define the directory layout in YAML). 🙂
Closing due to inactivity
If I have a project that looks like this:
How can I get markdown API docs in this format saved to disk?:
you'll see in the above that:
index.md
pdoc3
does this, the only issue is that they output html :(Any help would be appreciated. Thanks!