The Service Catalogue provides a way for services to register themselves for other services to discover.
-See `App Catalogue API <./rac-api.html>`_ for full details of the API.
-
-The API is also described in Swagger-JSON and YAML:
-
-
-.. csv-table::
- :header: "API name", "|swagger-icon|", "|yaml-icon|"
- :widths: 10,5, 5
-
- "App Catalogue API", ":download:`link <../api/rac-api.json>`", ":download:`link <../api/rac-api.yaml>`"
-
+.. Generates content from rac-api.json
+.. openapi:: ../api/rac-api.json
+ :examples:
branch = 'latest'
+language = 'en'
+
linkcheck_ignore = [
'http://localhost.*',
'http://127.0.0.1.*',
'./rac-api.html', #Generated file that doesn't exist at link check.
]
-extensions = ['sphinxcontrib.redoc', 'sphinx.ext.intersphinx',]
+#extensions = ['sphinxcontrib.redoc', 'sphinx.ext.intersphinx',]
+
+extensions = [
+ # ...
+ #'sphinxcontrib.redoc',
+ 'sphinxcontrib.openapi',
+ 'sphinx.ext.intersphinx',
+]
-redoc = [
- {
- 'name': 'RAC API',
- 'page': 'rac-api',
- 'spec': '../api/rac-api.json',
- 'embed': True,
- }
- ]
+#redoc = [
+ #{
+ #'name': 'RAC API',
+ #'page': 'rac-api',
+ #'spec': '../api/rac-api.json',
+ #'embed': True,
+ #}
+ #]
-redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js'
+#redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js'
#intershpinx mapping with other projects
intersphinx_mapping = {}
skipsdist = true
[testenv:docs]
-basepython = python3
+basepython = python3.8
deps = -r{toxinidir}/docs/requirements-docs.txt
commands =
whitelist_externals = echo
[testenv:docs-linkcheck]
-basepython = python3
+basepython = python3.8
deps = -r{toxinidir}/docs/requirements-docs.txt
commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck