Add generation of API yaml file
[nonrtric.git] / docs / conf.py
index d620289..85721c6 100644 (file)
@@ -7,9 +7,30 @@ branch = 'latest'
 linkcheck_ignore = [
     'http://localhost.*',
     'http://127.0.0.1.*',
-    'https://gerrit.o-ran-sc.org.*'
+    'https://gerrit.o-ran-sc.org.*',
+    './rac-api.html', #Generated file that doesn't exist at link check.
+    './ecs-api.html' #Generated file that doesn't exist at link check.
 ]
 
+extensions = ['sphinxcontrib.redoc', 'sphinx.ext.intersphinx',]
+
+redoc = [
+            {
+                'name': 'RAC API',
+                'page': 'rac-api',
+                'spec': '../r-app-catalogue/api/rac-api.json',
+                'embed': True,
+            },
+            {
+                'name': 'ECS API',
+                'page': 'ecs-api',
+                'spec': '../enrichment-coordinator-service/api/ecs-api.json',
+                'embed': True,
+            }
+        ]
+
+redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js'
+
 #intershpinx mapping with other projects
 intersphinx_mapping = {}