mirror of
https://github.com/nextcloud/documentation.git
synced 2025-12-12 07:29:47 +07:00
build: Copy merged OpenAPI spec from server sources
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +0,0 @@
|
||||
[submodule "build/openapi-extractor"]
|
||||
path = build/openapi-extractor
|
||||
url = https://github.com/nextcloud/openapi-extractor
|
||||
7
Makefile
7
Makefile
@@ -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
|
||||
|
||||
Submodule build/openapi-extractor deleted from d99e9c0fba
Reference in New Issue
Block a user