Describe the bug
Using show_category_heading: true and group_by_category: true does not work.
To Reproduce
Enable these settings
Expected behavior
Expected to have TOC separate them
Fix
The bug seems to happen here
|
{% if config.show_category_heading and obj.attributes.values()|any %} |
Removing any() results in the expected behavior.
Since we're calling .values(), if there's no values it already returns False.
Describe the bug
Using
show_category_heading: trueandgroup_by_category: truedoes not work.To Reproduce
Enable these settings
Expected behavior
Expected to have TOC separate them
Fix
The bug seems to happen here
python/src/mkdocstrings_handlers/python/templates/material/_base/children.html
Line 16 in d5ea1c5
Removing
any()results in the expected behavior.Since we're calling
.values(), if there's no values it already returnsFalse.