Use sphinxcontrib-openapi to do the heavy lifting of Open API rendering.

This commit is contained in:
Ned Batchelder
2019-10-18 15:53:54 -04:00
parent 29828d781c
commit d71224e0a1
9 changed files with 139 additions and 347 deletions

View File

@@ -45,8 +45,7 @@ release = u''
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'recommonmark',
'sphinx.ext.autosectionlabel',
'sphinxcontrib.openapi',
]
# Prefix document path to section labels, otherwise autogenerated labels would look like 'heading'
@@ -59,7 +58,7 @@ templates_path = ['_templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
source_suffix = ['.rst', '.md']
source_suffix = ['.rst']
# The master toctree document.
master_doc = 'index'

View File

@@ -7,8 +7,6 @@ TODO: What should go here?
See all the endpoints at :doc:`The Endpoints <gen/index>`.
.. toctree::
:glob:
:maxdepth: 1
:hidden:
gen/index
gen/*