Skip to content

Commit c74989d

Browse files
authored
docs: include openapi.json (#20760)
1 parent 1283491 commit c74989d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
21-
yarn.lock
21+
yarn.lock
22+
23+
/static/openapi.json

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"format": "prettier --check .",
88
"format:fix": "prettier --write .",
99
"start": "docusaurus start --port 3005",
10-
"build": "docusaurus build",
10+
"copy:openapi": "jq -c < ../open-api/immich-openapi-specs.json > ./static/openapi.json || exit 0",
11+
"build": "npm run copy:openapi && docusaurus build",
1112
"swizzle": "docusaurus swizzle",
1213
"deploy": "docusaurus deploy",
1314
"clear": "docusaurus clear",

0 commit comments

Comments
 (0)