build: Copy merged OpenAPI spec from server sources

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin
2025-03-18 14:04:29 +01:00
parent d03f6f40ae
commit 6ac0fc3e19
3 changed files with 1 additions and 10 deletions

3
.gitmodules vendored
View File

@@ -1,3 +0,0 @@
[submodule "build/openapi-extractor"]
path = build/openapi-extractor
url = https://github.com/nextcloud/openapi-extractor

View File

@@ -30,12 +30,7 @@ get-server-sources:
cd build && sh get-server-sources.sh $(DRONE_BRANCH)
openapi-spec: get-server-sources
git submodule update --init
cd build/openapi-extractor && composer install
cd build && ./openapi-extractor/merge-specs \
--core server/core/openapi.json \
--merged ../developer_manual/_static/openapi.json \
$$(ls server/apps/*/openapi.json)
cp build/server/openapi.json developer_manual/_static/openapi.json
cd developer_manual/_static && \
wget https://unpkg.com/@stoplight/elements@8.1.0/web-components.min.js -O stoplight-elements.js && \
wget https://unpkg.com/@stoplight/elements@8.1.0/styles.min.css -O stoplight-elements.css