You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace data/*.json files with build time .cache/site.json (#7074)
**This PR**
- [x] Adds a build time script to generate the `.cache/site.json` file making sure the navigation and search do not need to be updated when creating new pages
- [x] Replaces `components.json` and `foundations.json` with `.cache/site.json`
- [x] Uses one file for the site data so that there is one `readFile` script needed to access it
- [x] Uses one file for the site data so it can be cached effectively when read
- [x] **Local dev:** Make the `.cache/site.json` file regenerate on changes to markdown files
- [x] Fixes json file typescript issues
**Future work**
- [ ] **Production:** Do not read and store `.cache/site.json` in client side memory when generating the navigation
- [ ] **Production:** Do not read and store `.cache/site.json` in client side memory when generating the components page categories
Co-authored-by: Chloe Rice <[email protected]>
0 commit comments