Skip to content

show_category_heading: true and group_by_category: true does not work #14

Description

@pedrolabonia

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions