Skip to content

Hiding pattern sub groups ignored  #1366

@renestalder

Description

@renestalder

I am using Pattern Lab Node v5.15.1 on Linux, with Node v16, using a Twig Edition.

Expected Behavior

If I add components/buttons/_buttons.md with the content:

---
hidden: true
---

That the "Buttons" group does not appear in the output of the documentation.

Relevant part of the patternlab documentation: https://patternlab.io/docs/hiding-patterns-in-the-navigation/#heading-hiding-pattern-sub-groups

Actual Behavior

The option seems to be ignored for a whole folder. At least for the Twig edition.

Hiding single files works as documented.

Steps to Reproduce
  1. Create a sub group structure e.g. "components/buttons".
  2. Add a test twig file to that folder, e.g. "components/buttons/test.twig" with some content.
  3. This appears in the documentation under the menu "components" as "buttons" then "test".
  4. Now add components/buttons/_buttons.md with the content above (as in the expected behaviour.
  5. The components -> buttons group should now no longer appear in the documentation menu. For me, it still does

Simplified example.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions