Open mfelsche opened 7 years ago
"only create docs for public types in the package in the given directory" has been added #2092
Take away from sync.
The current document generation has only (afawk) been used for standard library docs. There are changes that we want to make to allow docgen to be useful to libraries.
What we want to be able to do is only include documentation for classes defined in a library or application and not bring in documentation from other libraries. To do this, we would supply a top level path for the library/app (perhaps inferred). We should be able to compare against the package path available in docgen to verify that the package path in question is below our top level path. If it is, we can include otherwise filter out.
IF you are interested in this project that falls under the "ponydoc" category, talk to me. I have started a lot of work on this.
the docgen process is currently set up so it creates documentation for the code inside the given directory and all reference packages. It documents private types as well as public ones and also includes test types.
I would like to be able to generate and publish API documentation for a pony project. With the current setup i need to manually go through the generated files and exclude stuff from
builtin
,collections
and other packages. I also need to remove test classes and types and private methods and types.I would like the docgen process to be able to:
Given these changes it is possible to create useful project API documentation only by using
ponyc --docs .
(possibly some more arguments) and calling mkdocs afterwards.Given this is a wanted feature, i could start working on it.
This idea started from an IRC conversation with SeanTAllen: