diff --git a/doc/conf.py b/doc/conf.py index c60e69b..649563a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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/'), } diff --git a/virtualsmartcard/doc/generate_modules.py b/virtualsmartcard/doc/generate_modules.py index 00245a9..4f5720a 100755 --- a/virtualsmartcard/doc/generate_modules.py +++ b/virtualsmartcard/doc/generate_modules.py @@ -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