plasmapy_sphinx: The Sphinx extension package for PlasmaPy
This Sphinx extension package contains custom documentation functionality used to document PlasmaPy’s packages .
Installation
This package is currently not released in any form and can only be obtained by
installing plasmapy directly from its
GitHub repository. We do plan to breakout
plasmapy_sphinx into its own repository and release it to https://pypi.org at
a future date.
Setup
To enable plasmapy_sphinx’s functionality it needs to be added to the
extensions configuration value in your conf.py file.
extensions = ["plasmapy_sphinx"]
If you don’t want all of plasmapy_sphinx’s functionality, then any module
containing a Sphinx setup() function can be activated independently. For
example, you can just implement the automodapi functionality by
setting up the plasmapy_sphinx.autodoc.automodapi module like…
extensions = ["plasmapy_sphinx.autodoc.automodapi"]
The Rundown
plasmapy_sphinx.autodoc
The
plasmapy_sphinx.autodocsub-package contains functionality that extendssphinx.ext.autodoc. The defined directives are registered assphinx.ext.autodocdirectives and, thus, will behave similarly toautoclass,autofunction, etc. and work withsphinx.ext.autosummaryandplasmapy_sphinx.automodsumm.
plasmapy_sphinx.automodsumm
The
plasmapy_sphinx.automodsummsub-package is an evolution ofsphinx.ext.autosummaryand was adapted fromsphinx_automodapi.automodsumm. Unlike theautosummarydirective where you have to manually list all the objects/members to appear in the summary table, theautomodsummdirective will inspect a given module and automatically populate the summary table with the detected objects/members.
plasmapy_sphinx.directives
This sub-package contains custom reStructuredText directives and roles that do not fall under
plasmapy_sphinx.autodocorplasmapy_sphinx.automodsumm.
API
Sub-Packages & Modules
|
|
|
|
|
|
The |
|
The PlasmaPy theme is a Sphinx theme that inherits from the |
|
A utility package containing functions and variables to support development of the core functionality in |
Variables & Attributes
|