question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hiding pattern sub groups ignored

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
renestaldercommented, Oct 27, 2021

@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.

0reactions
JosefBredereckcommented, Nov 3, 2021

Thanks for the analysis and the very well-written issue. I created a PR for this topic; sorry for the inconvenience. 🍺

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found