Skip to content

Commit 63a05e7

Browse files
authored
Add generated API documentation (#59)
1 parent 8e049f1 commit 63a05e7

26 files changed

+4701
-478
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ cypress/downloads
5252
styles/Google/
5353
styles/proselint/
5454
styles/write-good/
55+
56+
# Generated API documentation (rebuilt on deploy)
57+
src/content/docs/api/

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"type": "module",
44
"version": "0.0.1",
55
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev",
8-
"build": "astro build",
6+
"generate:api": "npx tsx scripts/generate-api-docs.ts",
7+
"dev": "pnpm generate:api && astro dev",
8+
"start": "pnpm generate:api && astro dev",
9+
"build": "pnpm generate:api && astro build",
910
"preview": "astro preview",
1011
"lint": "biome check",
1112
"lint:fix": "biome check --write",
@@ -51,6 +52,7 @@
5152
"@flydotio/dockerfile": "^0.7.10",
5253
"cypress": "^15.8.1",
5354
"start-server-and-test": "^2.1.3",
55+
"tsx": "^4.21.0",
5456
"tw-animate-css": "^1.4.0",
5557
"typescript": "^5.9.3"
5658
}

0 commit comments

Comments
 (0)