-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add an 'API Reference' top level nav in docs:
- for local build, just point to http://localhost:30870/api/redoc - for deployment, copy locally from prod and serve at /api/ - add copy-api-docs.sh to copy openapi.json, redoc and logo to /api/ dir - for local testing, run copy-api-docs.sh and then run mkdocs serve - fixes #1582
- Loading branch information
Showing
5 changed files
with
18 additions
and
1 deletion.
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
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,8 @@ | ||
#!/usr/bin/env bash | ||
CURR=$(dirname "${BASH_SOURCE[0]}") | ||
|
||
TARGET=$CURR/docs/api/ | ||
mkdir $TARGET | ||
curl "$DOCS_SOURCE_URL/api/openapi.json" > $TARGET/openapi.json | ||
curl "$DOCS_SOURCE_URL/api/redoc" > $TARGET/index.html | ||
curl "$DOCS_SOURCE_URL/docs-logo.svg" > $TARGET/../docs-logo.svg |
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