From e3672365cf95b98135c2b65446995dcd85b92d5e Mon Sep 17 00:00:00 2001 From: umarcor Date: Sun, 30 Aug 2020 23:25:38 +0200 Subject: doc: autodoc python modules (libghdl, thin, vhdl and pyutils) --- doc/conf.py | 8 +++++ doc/index.rst | 1 + doc/make.sh | 7 ++--- doc/using/py/libghdl.rst | 13 ++++++++ doc/using/py/pyutils.rst | 4 +++ doc/using/py/thin.rst | 48 +++++++++++++++++++++++++++++ doc/using/py/vhdl.rst | 79 ++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 156 insertions(+), 4 deletions(-) create mode 100644 doc/using/py/libghdl.rst create mode 100644 doc/using/py/pyutils.rst create mode 100644 doc/using/py/thin.rst create mode 100644 doc/using/py/vhdl.rst (limited to 'doc') diff --git a/doc/conf.py b/doc/conf.py index 952d230c8..69ff6f139 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -16,6 +16,7 @@ needs_sphinx = '1.5' extensions = [ # Standard Sphinx extensions 'recommonmark', + 'sphinx.ext.autodoc', 'sphinx.ext.extlinks', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', @@ -27,6 +28,13 @@ extensions = [ 'exec', ] +autodoc_default_options = { + "members": True, + 'undoc-members': True, + #'private-members': True, + 'inherited-members': True, +} + templates_path = ['_templates', '_themes'] # The suffix(es) of source filenames. diff --git a/doc/index.rst b/doc/index.rst index 359c037f8..60efcd2a6 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -126,6 +126,7 @@ using/Foreign using/ImplementationOfVHDL using/ImplementationOfVITAL + using/py/libghdl .. raw:: latex diff --git a/doc/make.sh b/doc/make.sh index faec1988e..b2852f777 100755 --- a/doc/make.sh +++ b/doc/make.sh @@ -5,13 +5,12 @@ set -e cd "$(dirname $0)" docker build -t ghdl/sphinx -f- . <