Skip to content

feature: Support for accessors #230

Open
@znichollscr

Description

@znichollscr

Is your feature request related to a problem? Please describe.

If you document accessors, there isn't an obvious solution for how to show the namespace in which the accessor ends up in (as opposed to the original API). In the sphinx world, there is a package dedicated to handling this situation: https://github.com/xarray-contrib/sphinx-autosummary-accessors

Describe the solution you'd like

A similar thing for the mkdocs universe.

Describe alternatives you've considered

Additional context

I have written such an extension here: https://github.com/climate-resource/mkdocstrings-python-accessors. As you can see, it is super basic, but it seems to do what I want (see an example at the bottom of this page , with built docs here (note the namespace which is documented)).

Metadata

Metadata

Assignees

Labels

configRelated to configuration optionsfeatureNew feature or requestgriffe extensionCan be solved with a Griffe extensioninsidersCandidate for Insiders

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions