WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@bradwade
Copy link

This just cleans up the main menu navigation if you have to prefix your pattern type categories.

Pattern type category prefixes can be defined in config.yml as an array named "prefixes"
containing strings of prefixes. For example if your pattern types are called,
"theme1_atoms", "theme1_molecules", etc. you can add to your config.yml:

prefixes

  • "theme1_"

...then theme1_ will not appear in the main menu navigation of pattern lab.

Needing to prefix the top level pattern type directories is a common use case when working with multiple pattern lab instances integrated with a single Drupal 8 installation for example.

…navigation.

Pattern type category prefixes can be defined in config.yml as an array named "prefixes"
containing strings of prefixes. For example if your pattern types are called,
"theme1_atoms", "theme1_molecules", etc. you can add to your config.yml:

prefixes
  - theme1_

...then theme1_ will not appear in the main menu navigation of pattern lab.: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.

Added ability to strip pattern type category prefixes from main menu navigation.

Pattern type category prefixes can be defined in config.yml as an array named "prefixes"
containing strings of prefixes. For example if your pattern types are called,
"theme1_atoms", "theme1_molecules", etc. you can add to your config.yml:

prefixes
  - theme1_

...then theme1_ will not appear in the main menu navigation of pattern lab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant