tldraw/apps/docs/scripts/functions
David Sheldrick 9f90fa230b
fix docs build (#3201)
- always refresh docs content when building on CI
- use local api.json files now since we don't want to use SOURCE_SHA
- @steveruizok it feels kinda problematic that we check in a bunch of
derived files that the docs build requires. Things can get out of sync
easily, and whose responsibility is it to update them? In the future I
reckon we should explore ways to remove these files from the git index
as much as possible.

closes #3200 

### Change Type

<!--  Please select a 'Scope' label ️ -->

- [ ] `sdk` — Changes the tldraw SDK
- [ ] `dotcom` — Changes the tldraw.com web app
- [x] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [x] `bugfix` — Bug fix
- [ ] `feature` — New feature
- [ ] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [ ] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know


### Test Plan

1. Add a step-by-step description of how to test your PR here.
2.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Add a brief release note for your PR here.
2024-03-18 15:59:29 +00:00
..
checkBrokenLinks.ts [docs] design shuffle (#2951) 2024-02-29 16:28:45 +00:00
connect.ts docs: rework docs site to have different sections (#2686) 2024-01-30 14:19:25 +00:00
createApiMarkdown.ts docs: fix missing API entries (#3111) 2024-03-12 13:36:24 +00:00
fetchApiSource.ts fix docs build (#3201) 2024-03-18 15:59:29 +00:00
fetchReleases.ts fix docs build (#3201) 2024-03-18 15:59:29 +00:00
generateApiContent.ts docs: rework docs site to have different sections (#2686) 2024-01-30 14:19:25 +00:00
generateContent.ts docs: rework docs site to have different sections (#2686) 2024-01-30 14:19:25 +00:00
generateExamplesContent.ts [docs] design shuffle (#2951) 2024-02-29 16:28:45 +00:00
generateSection.ts [docs] design shuffle (#2951) 2024-02-29 16:28:45 +00:00
getApiMarkdown.ts [docs] design shuffle (#2951) 2024-02-29 16:28:45 +00:00
getVectorDbStats.ts Add docs (#2470) 2024-01-15 12:33:15 +00:00
package-list.ts Add docs (#2470) 2024-01-15 12:33:15 +00:00
refreshContent.ts docs: add full-text search (#2735) 2024-02-06 09:49:31 +00:00