include inheritance graphs

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@653 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2011-12-08 21:21:40 +00:00
parent 28db2c72cc
commit a4f4ecff14
2 changed files with 5 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ needs_sphinx = '1.1'
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ["breathe", "sphinxcontrib.doxylink", "sphinx.ext.autosummary", "sphinxcontrib.programoutput"]
extensions = ["breathe", "sphinxcontrib.doxylink", "sphinx.ext.autosummary", "sphinxcontrib.programoutput", "sphinx.ext.inheritance_diagram"]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -224,6 +224,8 @@ man_pages = [
('index', 'virtualsmartcardarchitecture', u'Virtual Smartcard Architecture Documentation',
[u'Dominik Oepen, Frank Morgner'], 1)
]
breathe_projects = {"npa": "npa/xml"}
breathe_default_project = "npa"
doxylink = { 'npa' : ('npa/npa.tag', '_static/doxygen-npa/'), }

View File

@@ -75,7 +75,8 @@ def format_heading(level, text):
def format_directive(module, package=None):
"""Create the automodule directive and add the options."""
directive = '.. automodule:: %s\n' % makename(package, module)
directive = '.. inheritance-diagram:: %s\n' % makename(package, module)
directive += '.. automodule:: %s\n' % makename(package, module)
for option in OPTIONS:
directive += ' :%s:\n' % option
return directive