mirror of
https://github.com/HackPlan/polaris-react.git
synced 2026-04-29 09:45:39 +08:00
1.4 KiB
1.4 KiB
Tophatting documentation 🎩
Summary
When components are updated in ways that impact how people use them, their README.md documentation should be updated to reflect this.
When you update the README.md of a component, that content can change the documentation that appears in the Polaris style guide.
Manually testing documentation (we call it “tophatting”, or 🎩 for short) adds that extra degree of certainty that what you’re shipping looks like what you expect.
When should you 🎩 documentation?
When you’re adding content to a component’s README.md (such as /src/components/Button/README.md) to change or add best practices, accessibility documentation, or other information.
What should you 🎩?
Check the location, appearance, and readability of the content you add to the style guide.
How to 🎩 documentation
- Check out the
masterbranch frompolaris-styleguide - In a separate tab if preferred, check out the updated
polaris-reactbranch - In the
polaris-reactdirectory, runyarn run build-consumer polaris-styleguide - In the
polaris-styleguidedirectory, rundev up && dev server - View documentation changes in the browser