primer / primer.style

The website for all things Primer
https://primer.style/
MIT License
163 stars 31 forks source link

Add React component redirects #388

Closed camertron closed 8 months ago

camertron commented 8 months ago

This PR adds redirects for all our React components from the old docsite (https://primer.style/react) to the new one (https://primer.style/). I have tested it in staging and everything looks good 👍

Tracking issue: https://github.com/github/primer/issues/1904

pksjce commented 8 months ago

Looks great! I checked out the staging and tested a few.

Q: If I had to add a new component to the doc then I've to add a redirect here as well? or we can create them without redirects?

camertron commented 8 months ago

Thanks @pksjce 😄

Q: If I had to add a new component to the doc then I've to add a redirect here as well? or we can create them without redirects?

No, these redirects are only to help someone find the docs using an old URL, i.e. if they have it bookmarked or saved somewhere. It's nicer than getting a 404 😄