Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Create auto generate Python API document for blueoil/ directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
oatawa1 committed Apr 15, 2020
1 parent 82a6141 commit 7288673
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
'sphinx.ext.autosummary',
'sphinx.ext.napoleon',
'sphinx.ext.mathjax',
'autoapi.extension'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -195,6 +196,13 @@
]


# -- Automatically run sphinx-autoapi --------------------------------------
autoapi_type = 'python'
autoapi_dirs = ['../blueoil']
autoapi_file_patterns = ['*.py']
autoapi_ignore = ['*/templates/*', '*/configs/*']


# -- Extension configuration -------------------------------------------------
def setup(app):
app.add_config_value('recommonmark_config', {
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Blueoil -- An efficient neural network generator
reference/index
converter/index
quantize/index
autoapi/index
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ sphinx==2.4.4
recommonmark
sphinx_rtd_theme

# for autoapi doc
sphinx-autoapi

# for autodoc of lmnet.
numpy
Pillow

0 comments on commit 7288673

Please sign in to comment.