From c911255d6efc70865f542d669ab450d5f6b462f5 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sun, 24 Feb 2013 21:19:27 +0100 Subject: [PATCH] Add inheritance-diagram to Sphinx documentation --- docs/conf.py | 3 ++- docs/docs/development.rst | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 05531715..20bfc6a3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,8 @@ sys.path.append(os.path.abspath('_themes')) # Add any Sphinx extension module names here, as strings. They can be extensions # 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. templates_path = ['_templates'] diff --git a/docs/docs/development.rst b/docs/docs/development.rst index a7635ded..90849f84 100644 --- a/docs/docs/development.rst +++ b/docs/docs/development.rst @@ -61,6 +61,22 @@ Parser Representation (parser_representation.py) .. automodule:: parsing_representation +.. inheritance-diagram:: + SubModule + Class + Function + Lambda + Flow + ForFlow + Import + Statement + Param + Call + Array + Name + ListComprehension + :parts: 1 + .. _evaluate: Evaluation of python code (evaluate.py) @@ -73,6 +89,16 @@ Evaluation Representation (evaluate_representation.py) .. automodule:: evaluate_representation +.. inheritance-diagram:: + Executable + Instance + InstanceElement + Class + Function + Execution + Generator + Array + :parts: 1 .. _dev-api: