Skip to content

Commit 872f0d1

Browse files
committed
docs: publish config schema
1 parent 13e2d73 commit 872f0d1

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,4 @@ public/fonts/
161161
*.cpuprofile
162162
.claude/settings.local.json
163163
.worktrees
164+
public/modestbench-config.schema.json

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"clean": "rm -rf dist",
9595
"commitlint": "commitlint",
9696
"dev": "zshy --watch",
97-
"docs:build": "run-s docs:copy astro:build",
97+
"docs:build": "run-s build:schema docs:copy astro:build",
9898
"docs:copy": "tsx scripts/copy-docs.ts",
9999
"docs:dev": "run-s docs:copy astro:dev",
100100
"docs:preview": "astro preview --config astro.config.js",

scripts/copy-docs.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ copyFileSync(
5555
);
5656
console.log('✓ Copied HandelGothic Regular.woff2 → public/fonts/');
5757

58+
// Copy JSON schema to public for serving at site root
59+
copyFileSync(
60+
join(rootDir, 'dist/schema/modestbench-config.schema.json'),
61+
join(publicDir, 'modestbench-config.schema.json'),
62+
);
63+
console.log('✓ Copied modestbench-config.schema.json → public/');
64+
5865
// Files to copy with their frontmatter
5966
const files: DocFile[] = [
6067
{

0 commit comments

Comments
 (0)