Support glob match for autodoc (autoclass/autofunction/etc.) #13225
Labels
awaiting:decision
PR waiting for a consensus from maintainers.
extensions:autodoc
type:proposal
a feature suggestion
I have an API library with a single class containing methods for accessing various object types in the API. Each function is prefixed with its object type, like so:
I want to document each supported object type separately, with a separate header and description, and have all of the relevant functions grouped together. Right now, to do this, I'd have to specify every function manually:
However, this means that I have to manually update the docs every time I add a new function. It would be nice if instead we could use a glob:
Describe alternatives you've considered
This could be done with some sort of automatic generator that runs before the docs are built and automatically writes out the
autofunction
directives.Alternatively, a new directive could be introduced specifically to support globbing/more advanced matches (regex?).
I'm not aware of any plugins that do this (at least, I haven't found any in my limited search), hence this feature request.
The text was updated successfully, but these errors were encountered: