Add inheritance-diagram to Sphinx documentation

This commit is contained in:
Takafumi Arakaki
2013-02-24 21:19:27 +01:00
parent d9ac630633
commit c911255d6e
2 changed files with 28 additions and 1 deletions

View File

@@ -27,7 +27,8 @@ sys.path.append(os.path.abspath('_themes'))
# Add any Sphinx extension module names here, as strings. They can be extensions # Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.todo'] extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.todo',
'sphinx.ext.inheritance_diagram']
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']

View File

@@ -61,6 +61,22 @@ Parser Representation (parser_representation.py)
.. automodule:: parsing_representation .. automodule:: parsing_representation
.. inheritance-diagram::
SubModule
Class
Function
Lambda
Flow
ForFlow
Import
Statement
Param
Call
Array
Name
ListComprehension
:parts: 1
.. _evaluate: .. _evaluate:
Evaluation of python code (evaluate.py) Evaluation of python code (evaluate.py)
@@ -73,6 +89,16 @@ Evaluation Representation (evaluate_representation.py)
.. automodule:: evaluate_representation .. automodule:: evaluate_representation
.. inheritance-diagram::
Executable
Instance
InstanceElement
Class
Function
Execution
Generator
Array
:parts: 1
.. _dev-api: .. _dev-api: