You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can suggest a change to the documentation by opening an ARMI PR.
61
63
62
64
Documentation for ARMI plugins
63
65
==============================
64
66
The following subsections apply to documentation for ARMI plugins.
65
67
66
68
Linking to ARMI documentation from plugins
67
69
------------------------------------------
68
-
ARMI plugin documentation can feature rich hyperlinks to the ARMI API documentation with the help of the `intersphinx Sphinx plugin <http://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html>`_. The ARMI plugin documentation config file should add ``"sphinx.ext.intersphinx",`` to its active Sphinx plugin list, and change the default config to read::
70
+
ARMI plugin documentation can feature rich hyperlinks to the ARMI API documentation with the help
71
+
of the `intersphinx Sphinx plugin <http://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html>`_.
72
+
The ARMI plugin documentation config file should add ``"sphinx.ext.intersphinx",`` to its active
73
+
Sphinx plugin list, and change the default config to read::
69
74
70
75
intersphinx_mapping = {
71
76
"python": ("https://docs.python.org/3", None),
@@ -80,27 +85,30 @@ Now you can link to the ARMI documentation with links like::
80
85
81
86
Automatically building apidocs of namespace packages
Activating the ``"sphinxcontrib.apidoc",`` `Sphinx plugin <https://github.com/sphinx-contrib/apidoc>`_ enables plugin API documentation to be built with the standard ``make html`` Sphinx workflow. If your ARMI plugin is a namespace package, the following extra config is required::
88
+
Activating the ``"sphinxcontrib.apidoc",`` `Sphinx plugin <https://github.com/sphinx-contrib/apidoc>`_
89
+
enables plugin API documentation to be built with the standard ``make html`` Sphinx workflow. If your
90
+
ARMI plugin is a namespace package, the following extra config is required::
84
91
85
92
apidoc_extra_args = ["--implicit-namespaces"]
86
93
87
94
Updating the Gallery
88
95
====================
89
96
The `ARMI example gallery <https://terrapower.github.io/armi/gallery/index.html>`_ is a great way
90
97
to quickly highlight neat features and uses of ARMI. To add a new item to the gallery, add your
91
-
example code (including the required docstring) to the ``doc/gallery-src`` folder in the ARMI
92
-
source tree. The example will be added to the gallery during the next documentation build.
98
+
example code (including the required docstring) to the ``doc/gallery-src`` folder in the ARMI source
99
+
tree. The example will be added to the gallery during the next documentation build.
93
100
94
-
Using Jupyter notebooks
101
+
Using Jupyter Notebooks
95
102
=======================
96
-
For interactive tutorials, it's convenient to build actual Jupyter notebooks and
97
-
commit them to the documentation to be rendered by Sphinx using the nbsphinx plugin.
98
-
When this is done, notebooks without any output should be committed to the repository
99
-
so that Sphinx actually executes the notebooks with the up-to-date code when the
100
-
documentation is built. To do this, you can clean the output with::
103
+
For interactive tutorials, it's convenient to build actual Jupyter notebooks and commit them to the
104
+
documentation to be rendered by Sphinx using the nbsphinx plugin. When this is done, notebooks
105
+
without any output should be committed to the repository so that Sphinx actually executes the
106
+
notebooks with the up-to-date code when the documentation is built. To do this, you can clean the
0 commit comments