Files
polaris-react/documentation/Tophatting documentation.md
2019-04-29 15:23:52 -07:00

1.4 KiB
Raw Permalink Blame History

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 youre shipping looks like what you expect.

When should you 🎩 documentation?

When youre adding content to a components 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

  1. Check out the master branch from polaris-styleguide
  2. In a separate tab if preferred, check out the updated polaris-react branch
  3. In the polaris-react directory, run yarn run build-consumer polaris-styleguide
  4. In the polaris-styleguide directory, run dev up && dev server
  5. View documentation changes in the browser