[CI:DOCS]Connect API docs and RTD

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude
2020-01-17 15:07:21 -06:00
parent 3b6a843eb2
commit cc0f7defdc
3 changed files with 28 additions and 2 deletions

View File

@ -19,8 +19,8 @@ then
BUCKET="libpod-pr-releases"
elif [[ -n "$CIRRUS_BRANCH" ]]
then
# Only release non-development tagged commit ranges
if is_release
# Only release binaries for tagged commit ranges, unless working on docs
if is_release || [[ $CIRRUS_TASK_NAME =~ "docs" ]]
then
PR_OR_BRANCH="$CIRRUS_BRANCH"
BUCKET="libpod-$CIRRUS_BRANCH-releases"

View File

@ -1,2 +1,4 @@
Reference
=========
Check out our new [API documentation](api.html)

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>ReDoc</title>
<!-- needed for adaptive design -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<!--
ReDoc doesn't change outer page styles
-->
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<redoc spec-url='https://storage.googleapis.com/libpod-master-releases/swagger-latest-master.yaml'></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
</body>
</html>