Skip to content

Commit

Permalink
Use autoflask for nicer API documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhartung committed Nov 2, 2017
1 parent 624f065 commit c9f912a
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 221 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
'sphinxcontrib.httpdomain'
'sphinxcontrib.httpdomain',
'sphinxcontrib.autohttp.flask'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
1 change: 1 addition & 0 deletions docs/paradrop/http-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Device Configuration
--------------------

.. automodule:: paradrop.backend.config_api
.. autoflask:: paradrop.backend.config_api:ConfigApi.routes

0 comments on commit c9f912a

Please sign in to comment.