Skip to content

docs(contributing): add a contributing guide - #7585

Merged
mcoker merged 6 commits into
patternfly:mainfrom
nicolethoen:add_contributing_guide
Aug 29, 2025
Merged

mcoker merged 6 commits into
patternfly:mainfrom
nicolethoen:add_contributing_guide

Conversation

@nicolethoen

@nicolethoen nicolethoen commented Jun 30, 2025 •

Copy link
Copy Markdown
Contributor

@nicolethoen
nicolethoen requested a review from mcoker June 30, 2025 18:56
@patternfly-build

patternfly-build commented Jun 30, 2025 •

Copy link
Copy Markdown
Collaborator

@srambach

srambach commented Jul 2, 2025

Copy link
Copy Markdown
Member

Is this replacing the contribution guide and coding guidelines at https://github.com/patternfly/patternfly/tree/main/patternfly-docs/site/pages? Also, we have those files linked from the workspace, so we should pick one and point to it from there and org.

@nicolethoen

Copy link
Copy Markdown
Contributor Author

Is this replacing the contribution guide and coding guidelines at https://github.com/patternfly/patternfly/tree/main/patternfly-docs/site/pages? Also, we have those files linked from the workspace, so we should pick one and point to it from there and org.

Oh I didn't see this contribution guide - in the react Repo it was at the root. I'll rewrite this and integrate it with the files we already have. sorry about that.

Comment thread patternfly-docs/site/pages/contribution.md Outdated
@mcoker

mcoker commented Jul 29, 2025

Copy link
Copy Markdown
Contributor

For this block -

patternfly/README.md

Lines 12 to 17 in d4085af

When you install PatternFly, the package includes:
- a single file for the entire compiled library: `node_modules/@patternfly/patternfly/patternfly.css`
- individual files with each component compiled separately: `node_modules/@patternfly/patternfly/<ComponentName>/styles.css`
- a single file for the entire library's source (SASS): `node_modules/@patternfly/patternfly/patternfly.scss`
- individual files for each component's source (SASS): `node_modules/@patternfly/patternfly/<ComponentName>/styles.scss`

I wonder if it's worth calling out other files and adding info to the existing bullet points. WDYT? Also all of these styles are available via .css and .scss, so not sure if we need separate bullet points for both, or if we can just mention something like "If you want the sass version of any of these stylesheets, just specify .scss as the suffix instead of .css"

  • @patternfly/patternfly/patternfly-base.css - base styles. Global styles, reset/normalize styles, global variables. These styles are required for patternfly styles to work properly.
  • @patternfly/patternfly/patternfly.css - this is patternfly-base.css, as well as all component and layout styles. Does not include utility styles.
  • @patternfly/patternfly/patternfly-addons.css - all utility class styles. These do not come with patternfly.css, and must be imported manually.
  • @patternfly/patternfly/utilities/[UtilityName]/[utility-name].css - individual utility class styles if you prefer only use one or two, and don't want to import all of them.
  • @patternfly/patternfly/patternfly-charts.css - required if using dark theme with PatternFly charts.

@srambach srambach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the big number of individual comments! I realize a few of these are out of scope of just reorganizing the contribution and guidelines. It's been a long while since we revisited these, so it's probably time for a good review.

Comment thread patternfly-docs/site/pages/contribution.md Outdated
Comment thread patternfly-docs/site/pages/contribution.md Outdated
Comment thread patternfly-docs/site/pages/contribution.md Outdated
Comment thread patternfly-docs/site/pages/contribution.md Outdated
Comment thread patternfly-docs/site/pages/contribution.md
Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread patternfly-docs/site/pages/guidelines.md
Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread patternfly-docs/site/pages/contribution.md Outdated
@nicolethoen
nicolethoen force-pushed the add_contributing_guide branch from d4085af to f90fce4 Compare July 30, 2025 17:44
@nicolethoen
nicolethoen requested review from mcoker and srambach August 26, 2025 18:47

@srambach srambach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made another pass through. Honestly, the guidelines should probably be broken up or at least have jumplinks to the sections. 😵‍💫 But for now I made some corrections to token usage and a few other nits.

Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread patternfly-docs/site/pages/guidelines.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@nicolethoen

nicolethoen commented Aug 29, 2025 •

Copy link
Copy Markdown
Contributor Author

I addressed your comments! Thank you so much!

Honestly, the guidelines should probably be broken up or at least have jumplinks to the sections. 😵‍💫 But for now I made some corrections to token usage and a few other nits.

I think you all can absolutely do an even more substantial rewrite or reorganization in the future! They've been so out of date for so long 😆

@mcoker mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some broken links it looks like. These pages need a good overhaul, I'll spare any comments about that 😅

@mcoker
mcoker merged commit d128e5c into patternfly:main Aug 29, 2025
4 checks passed
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.3.0-prerelease.54 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update AI generated code contribution guidelines in core.

4 participants