mkdocstrings / pytkdocs

Load Python objects documentation.
https://mkdocstrings.github.io/pytkdocs
ISC License
50 stars 32 forks source link

fix: add source to class object #120

Closed jakekaplan closed 2 years ago

jakekaplan commented 2 years ago

Adds Source when instantiating Class in get_class_documentation

This feature in mkdocstrings allowed for sorting of members on render via members_order: source.

It relies on source.line_start existing on the objects that are being sorted.

For example a file of Classes will now render correctly with respect to the members_order: source

pawamoy commented 2 years ago

That's great, thanks @jakekaplan!