Skip to content

Commit

Permalink
Autogenerate docs for vmanage CLI (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlothian authored Dec 5, 2020
1 parent 27559c7 commit a16f4f7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/source/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
!.gitignore
!conf.py
!index.rst
!cli.rst
3 changes: 3 additions & 0 deletions docs/source/cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. click:: vmanage.__main__:vmanage
:prog: vmanage
:nested: full
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"sphinx_rtd_theme",
'sphinx.ext.todo',
'sphinx.ext.viewcode',
'm2r'
'm2r',
'sphinx_click',
]

extensions.append('autoapi.extension')
Expand Down
4 changes: 3 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
contain the root `toctree` directive.
Welcome to the Python Viptela SDK documentation!
==========================================
================================================

`python-viptela` provides a Python SDK for interacting with Cisco SDWAN (formerly Viptela).

Expand All @@ -13,6 +13,8 @@ Welcome to the Python Viptela SDK documentation!
:caption: Contents:

autoapi/index.rst
cli


Indices and tables
==================
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PyYAML
requests
sphinx>=2.1.2,<3.0
sphinx-autoapi==1.3.0
sphinx-click>=1.3.0
sphinx-markdown==1.0.2
sphinx-markdown-builder==0.5.4
sphinx_rtd_theme==0.4.3
Expand Down

0 comments on commit a16f4f7

Please sign in to comment.