-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Reinstating Primer Style CLI content within cli/cli
repository
#11060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit brings the https://github.com/primer/cli/ content into the repository for contributors and maintainers. Minimal changes to the original content have been made as this is being hosted as pure markdown.
Help content automatically render
Love it! I miss having this resource, so I'm very happy to see it come back in some form, especially one that we can improve more directly. Some random questions that come to mind:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reinstates the Primer Style CLI design content into the cli/cli
repository, bringing in foundational guidelines that shaped the GitHub CLI’s design and paving the way for expanded accessibility and style documentation.
- Adds a “Getting Started” primer with core design principles and process steps.
- Adds a “Foundations” primer covering language, typography, spacing, color, and more.
- Adds a “Components” primer detailing syntax, prompts, state, and UI patterns.
- Introduces a top-level
docs/primer/README.md
linking all primer sections.
Reviewed Changes
Copilot reviewed 4 out of 48 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
docs/primer/getting-started/README.md | Added core principles, process guidance, and prototyping tips. |
docs/primer/foundations/README.md | Added foundational design constraints and accessibility notes. |
docs/primer/components/README.md | Added reusable UI pattern definitions for CLI components. |
docs/primer/README.md | Added top‐level navigation to primer sections. |
Comments suppressed due to low confidence (2)
docs/primer/getting-started/README.md:54
- The backslash before the asterisk appears unintended and will render a literal '*'. Remove the backslash or rephrase to avoid stray characters.
- Ensure similar commands are visually and behaviorally parallel. \* For example, any create command should behave the same
docs/primer/getting-started/README.md:55
- Remove the escape before the asterisk to prevent rendering a stray '*', or reword this bullet without the backslash.
- Anticipate what people might want to do next. \* For example, we ask if you want to delete your branch after you merge.
Use [this template](https://docs.google.com/document/d/1JIRErIUuJ6fTgabiFYfCH3x91pyHuytbfa0QLnTfXKM/edit?usp=sharing), or format your document with these steps: | ||
|
||
1. Choose a dark background (File > Page Setup > Page Color) | ||
1. Choose a light text color |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] See previous comment: update list numbering to '2.' for this item to reflect sequence.
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic. No notes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, maybe one note that we might want to link to here from the main README or from CONTRIBUTING.md
praise: good catch! apparently there was a link to the old section within the Primer Style site, so I just updated it to point to these new docs Lines 53 to 65 in 89f15e9
|
This draft pull request is to open a discussion with maintainers and contributors about bringing https://github.com/primer/cli/ content into
cli/cli
repository.These design documents formed the basis of how the GitHub CLI was designed and have provided guidance to date. This is a precursor to expanding these docs based upon the work done in
v2.72.0
with accessibility enhancements.