-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jld3103 <[email protected]>
- Loading branch information
1 parent
f4c96a4
commit 3435dac
Showing
7 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "build/openapi-extractor"] | ||
path = build/openapi-extractor | ||
url = https://github.com/nextcloud/openapi-extractor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ user-manual-html: | |
cd user_manual && make html | ||
@echo "User manual build finished; HTML is updated" | ||
|
||
developer-manual-html: icons-docs | ||
developer-manual-html: openapi-spec icons-docs | ||
rm -rf developer_manual/_build/html/com | ||
cd developer_manual && make html | ||
@echo "Developer manual build finished; HTML is updated" | ||
|
@@ -26,8 +26,22 @@ user-manual-pdf: | |
cd user_manual && make latexpdf | ||
@echo "User manual build finished; PDF is updated" | ||
|
||
icons-docs: clean-icons-docs | ||
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) | ||
cd developer_manual/_static && \ | ||
wget https://unpkg.com/@stoplight/[email protected]/web-components.min.js -O stoplight-elements.js && \ | ||
wget https://unpkg.com/@stoplight/[email protected]/styles.min.css -O stoplight-elements.css | ||
|
||
|
||
icons-docs: clean-icons-docs get-server-sources | ||
cd build && composer install && composer update | ||
cd build && php generateIconsDoc.php | ||
|
||
|
Submodule openapi-extractor
added at
13d22c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html> | ||
<head> | ||
<title>OCS API</title> | ||
<script src="stoplight-elements.js"></script> | ||
<link rel="stylesheet" href="stoplight-elements.css"> | ||
</head> | ||
<body> | ||
<elements-api apiDescriptionUrl="openapi.json" router="hash" hideTryIt="true" logo="logo-blue.png"></elements-api> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters