Hiding pattern sub groups ignored
See original GitHub issueI 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
- Create a sub group structure e.g. “components/buttons”.
- Add a test twig file to that folder, e.g. “components/buttons/test.twig” with some content.
- This appears in the documentation under the menu “components” as “buttons” then “test”.
- Now add
components/buttons/_buttons.md
with the content above (as in the expected behaviour. - The components -> buttons group should now no longer appear in the documentation menu. For me, it still does
Simplified example.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
UserWarning: This pattern has match groups. To actually get ...
Python: UserWarning: This pattern has match groups. To actually get the groups, use str.extract ; 'relevant_url1.csv', error_bad_lines=False) ...
Read more >Hiding and grouping accessibility data - a free Hacking with iOS
Hiding and grouping accessibility data ... Using .ignore and a custom label means the text is read all at once, and is much...
Read more >.gitignore File – How to Ignore Files and Folders in Git
gitignore , you can tell Git to ignore only a single file or a single folder by mentioning the name or pattern of...
Read more >Python's Hidden Regular Expression Gems
Fundamentally this is what we do when we write a regular expression with sub-patterns: (a|b). This will search for either a or b....
Read more >Find command Exclude or Ignore Files (e.g. Ignore All Hidden ...
Explains how to find and ignore ( exclude) certain files while using UNIX / Linux / BSD find command such as all hidden...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mfranzke I have quickly set up a project with handlebars and the demo project, added a
_forms.md
to the atoms folder with the hidden attribute set, and unless I did something wrong, it also seems to fail in a handlebars project. The forms menu with it’s sub components still appears in the UI.Thanks for the analysis and the very well-written issue. I created a PR for this topic; sorry for the inconvenience. 🍺