aboutsummaryrefslogtreecommitdiffstats
path: root/docs/conf.py
diff options
context:
space:
mode:
authordhebeha <dhebeha.mj71@wipro.com>2020-09-01 19:14:40 +0530
committerdhebeha <dhebeha.mj71@wipro.com>2020-09-07 18:35:13 +0530
commit1668918950d5590aab82710852257c8f8b89642d (patch)
treeb99e00d38310ed55c2e953c9ab5df75fb0802836 /docs/conf.py
parent053c09a2ed1a8fc8aeef3f8185902634feec8000 (diff)
add support for common swagger style
- add support for redoc Issue-ID: OPTFRA-805 Signed-off-by: dhebeha <dhebeha.mj71@wipro.com> Change-Id: I2ce1259a9d8f84ec1386518dbe1f286babc26d87
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 5371015..59016f1 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -7,6 +7,27 @@ linkcheck_ignore = [
'http://localhost',
]
+extensions = [
+ 'sphinxcontrib.redoc',
+]
+
+redoc = [
+ {
+ 'name': 'OSDF API',
+ 'page': './osdf-api',
+ 'spec': './api/swagger/oof-osdf-has-api.json',
+ 'embed': True,
+ },
+ {
+ 'name': 'OPTENG API',
+ 'page': './opteng-api',
+ 'spec': './api/swagger/oof-osdf-has-api.json',
+ 'embed': True,
+ }
+ ]
+
+redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js'
+
intersphinx_mapping = {}
html_last_updated_fmt = '%d-%b-%y %H:%M'