Generate#
- class sunpy.util.sphinx.generate.Generate(
- name,
- arguments,
- options,
- content,
- lineno,
- content_offset,
- block_text,
- state,
- state_machine,
Bases:
DirectiveCustom directive to include raw output generated using supplied Python code
This directive is similar to the
rawdirective, except that the raw content is generated instead of statically provided. As with therawdirective, the required argument specifies the format of the output (e.g.,htmlorlatex).The optional flag
html_bordersurrounds HTML output with a black border for visual separation.Attributes Summary
May the directive have content?
Mapping of option names to validator functions.
Number of optional arguments after the required arguments.
Number of required directive arguments.
Methods Summary
run()Attributes Documentation
- has_content = True#
May the directive have content?
- option_spec = {'html_border': <function flag>}#
Mapping of option names to validator functions.
- optional_arguments = 0#
Number of optional arguments after the required arguments.
- required_arguments = 1#
Number of required directive arguments.
Methods Documentation