AutomodsummRendererο
- class plasmapy_sphinx.automodsumm.generate.AutomodsummRenderer(app: Sphinx)[source]ο
Bases:
AutosummaryRenderer
A helper class for retrieving and rendering
automodsumm
templates when writing stub files.- Parameters:
app (
sphinx.application.Sphinx
) β Instance of thesphinx
application.
Methods Summary
render
(template_name,Β context)Render a template file.
Methods Documentation
- render(template_name: str, context: Dict) str [source]ο
Render a template file. The render will first search for the template in the path specified by the sphinx configuration value
templates_path
, then thetemplates_dir
, and finally theautosummary
templates directory. Upon finding the template, the values from thecontext
dictionary will inserted into the template and returned.