AutomodsummRenderer
- class plasmapy_sphinx.automodsumm.generate.AutomodsummRenderer(app: Sphinx)
Bases:
AutosummaryRendererA helper class for retrieving and rendering
automodsummtemplates when writing stub files.- Parameters:
app (
sphinx.application.Sphinx) – Instance of thesphinxapplication.
Methods Summary
render(template_name, context)Render a template file.
Methods Documentation
- render(template_name: str, context: Dict) str
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 theautosummarytemplates directory. Upon finding the template, the values from thecontextdictionary will inserted into the template and returned.