-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: bundle external OpenAPI spec visualizer (#1780)
- Loading branch information
1 parent
e9480e4
commit cb46cd8
Showing
8 changed files
with
1,858 additions
and
13 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{% extends "!layout.html" %} | ||
{% block extrahead %} | ||
<link href="{{ pathto("_static/custom.css", True) }}" rel="stylesheet" type="text/css"> | ||
{% endblock %} | ||
{%- if meta is mapping and meta.get("render_mode") == "raw" %} | ||
{% block body %}{% endblock %} | ||
{%- else %} | ||
{% extends "!layout.html" %} | ||
{% block extrahead %} | ||
<link href="{{ pathto("_static/custom.css", True) }}" rel="stylesheet" type="text/css"> | ||
{% endblock %} | ||
{%- endif %} |
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 |
---|---|---|
@@ -1,3 +1,18 @@ | ||
:render_mode: raw | ||
|
||
Backend.AI REST API Reference | ||
===== | ||
.. openapi:httpdomain:: openapi.json | ||
============================= | ||
|
||
.. raw:: html | ||
|
||
<redoc spec-url="../../openapi.json"></redoc> | ||
<script src="../../_static/js/spec-viewer.js"> </script> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
body > section > h1 { | ||
display: none; | ||
} | ||
</style> |
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