Skip to content

High performance self-hosted photo and video management solution.

docs: include openapi.json (#20760)

Jason Rasmussenc74989d3045e
diff --git a/docs/.gitignore b/docs/.gitignore
index 502ac97045..fbb000246e 100644
--- a/docs/.gitignore
+++ b/docs/.gitignore
@@ -18,4 +18,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
-yarn.lock
\ No newline at end of file
+yarn.lock
+
+/static/openapi.json
diff --git a/docs/package.json b/docs/package.json
index 9e4ab5504f..7fbcbada5a 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -7,7 +7,8 @@
"format": "prettier --check .",
"format:fix": "prettier --write .",
"start": "docusaurus start --port 3005",
- "build": "docusaurus build",
+ "copy:openapi": "jq -c < ../open-api/immich-openapi-specs.json > ./static/openapi.json || exit 0",
+ "build": "npm run copy:openapi && docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",