Skip to content

Commit

Permalink
Add graphviz for manual inheritance diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
stigrj committed Sep 26, 2023
1 parent f9b2a1e commit 074371d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
# 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.mathjax', 'breathe']
extensions = [
'breathe',
'sphinx.ext.mathjax',
'sphinx.ext.graphviz',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The code can be found on `GitHub <https://github.com/MRChemSoft/mrcpp>`_.

.. toctree::
:maxdepth: 2
:caption: Programmer's Manual
:caption: Programmer's Manual

programmers_manual/overview
programmers_manual/clang_tidy.rst
9 changes: 8 additions & 1 deletion docs/programmers_manual/MWNode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
MWNode
---------------------

This is an introduction to the mwtree class. We write a small overarching summary of the class where we define the
This is an introduction to the mwtree class. We write a small overarching summary of the class where we define the
algorithm/equation/structure reasoning for having this class or where it fits with the rest of the code.

.. graphviz::

digraph trees {
"MWNode" -> "FunctionNode"
"MWNode" -> "OperatorNode"
}

.. doxygenclass:: mrcpp::MWNode
:members:
:protected-members:
Expand Down
14 changes: 11 additions & 3 deletions docs/programmers_manual/MWTree.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
------------------
MWTree
MWTree
------------------

This is an introduction to the mwtree class. We write a small overarching summary of the class where we define the
This is an introduction to the mwtree class. We write a small overarching summary of the class where we define the
algorithm/equation/structure reasoning for having this class or where it fits with the rest of the code.

.. graphviz::

digraph trees {
"MWTree" -> "FunctionTree"
"MWTree" -> "OperatorTree"
}

.. doxygenclass:: mrcpp::MWTree
:members:
:protected-members:
:private-members:
:private-members:

0 comments on commit 074371d

Please sign in to comment.