Skip to content

Conversation

@evwilkin
Copy link
Member

@evwilkin evwilkin commented Sep 16, 2022

Demonstrate possible approach to update #3183

  1. Update Core & React to add new patterns folders and fill them as needed.
    • In the Core repo create a new patterns directory and move any relevant files out of demos and into patterns.
    • In the React repo create new "patterns" directory and move relevant files out of demos into patterns.
    • Update the frontmatter of all moved .md files to include section: patterns
  2. Update patternfly-org/v4's source file to:
    • Edit the existing Core sourceMD command to also exclude the new patterns directory:
      • sourceMD(path.join(coreDocsPath, '!(demos|patterns)/**/examples/**/*.md'), 'html', coreDocsIgnore);
    • Add a new Core sourceMD command to process all the files in the new patterns directory and put them within an "HTML demos" tab:
      • sourceMD(path.join(coreDocsPath, 'patterns/**/*.md'), 'html-demos', coreDocsIgnore);
    • Add a new React sourceMD command to process all the files in the new patterns directory and put them within an "React demos" tab:
      • sourceMD(path.join(reactCorePath, '/patterns/**/*.md'), 'react-demos');

Screen Shot 2022-09-16 at 2 40 54 PM

Screen Shot 2022-09-16 at 12 50 20 PM

@patternfly-build
Copy link
Collaborator

patternfly-build commented Sep 16, 2022

@evwilkin evwilkin closed this Mar 15, 2023
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.

3 participants