Replace openapi docs gen lib with redoc
[sim/a1-interface.git] / docs / conf.py
index 7a27615..e4fa58d 100644 (file)
@@ -1,13 +1,25 @@
 from docs_conf.conf import *
 
+branch = 'latest'
+
 language = 'en'
 
 linkcheck_ignore = [
     'http://localhost.*',
     'http://127.0.0.1.*',
-    'https://gerrit.o-ran-sc.org.*'
+    'https://gerrit.o-ran-sc.org.*',
+    './EXT_SRV_api.html', #Generated file that doesn't exist at link check.
 ]
 
-extensions = [
-   'sphinxcontrib.openapi',
-]
+extensions = ['sphinxcontrib.redoc']
+
+redoc = [
+            {
+                'name': 'CALLOUT SERVER',
+                'page': 'EXT_SRV_api',
+                'spec': '../near-rt-ric-simulator/test/EXT_SRV/api/EXT_SRV_api.yaml',
+                'embed': True,
+            }
+        ]
+
+redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js'