parse_event
- plasmapy_sphinx.directives.event.parse_event(env, sig, signode)
Used to set up the
eventdirective and role for documenting Sphinx events. Taken from theconf.pyfile of Sphinx’s documentation.- Parameters:
env (sphinx.environment.BuildEnvironment) – Instance of the Sphinx’s build environment.
sig (str) –
The “signature” given the event directive or role. For example,
.. event:: foo(bar) :event:`foo`
in the directive case
foo(bar)would be the signature and in the role casefoowould be the signature.signode (sphinx.addnodes.desc_signature) – A
docutilsNode for the object signatures.