Chilipp / autodocsumm

Extending your autodoc API docs with a summary
Apache License 2.0
48 stars 14 forks source link

Sorting sections in the summary #90

Closed funkyfuture closed 8 months ago

funkyfuture commented 8 months ago

hello there, i may be over-using this extension by returning other names than "Members" and "Attributes" from a autodocsumm-grouper handler. the order of sections within a summary is then determined by the one in which the members were evaluated. would you be interested to include an option for sorting these sections? i suppose the most flexible would be to accept either None (default) for no sorting or a callable that is then used for the key-parameter of the sorting.

Chilipp commented 8 months ago

hey @funkyfuture! sounds good to me! would you be able to submit a PR?

funkyfuture commented 8 months ago

given your quick reply, i'll do that after dinner.

Chilipp commented 8 months ago

awsome, thanks :smiley:

funkyfuture commented 8 months ago

solved in #93.

Chilipp commented 8 months ago

thanks again @funkyfuture! I just made a new release (0.2.12) that implements the new config value from #93