myst_parser._docs#
Code to use internally, for documentation.
1. Module Contents#
1.1. Classes#
Remove unsupported nodes from the doctree. |
|
Number sections (html only) |
|
Directive to print the docutils CLI help. |
|
Load and document a directive. |
|
Directive to print all known warnings. |
|
Directive to create an example, showing the source and output. |
|
Directive to show a set of admonitions, in a tab set. |
|
Directive to convert MyST to HTML. |
|
A custom lexer for MyST Markdown. |
1.2. Functions#
Convert an option function to a string. |
1.3. Data#
1.4. API#
- myst_parser._docs.LOGGER = None#
- class myst_parser._docs.StripUnsupportedLatex(document, startnode=None)[source]#
Bases:
sphinx.transforms.post_transforms.SphinxPostTransformRemove unsupported nodes from the doctree.
Initialization
Initial setup for in-place document transforms.
- default_priority = 900#
- class myst_parser._docs.NumberSections(document, startnode=None)[source]#
Bases:
sphinx.transforms.post_transforms.SphinxPostTransformNumber sections (html only)
Initialization
Initial setup for in-place document transforms.
- default_priority = 710#
- formats = ('html',)#
- class myst_parser._docs.MystConfigDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]#
Bases:
myst_parser._docs._ConfigBase- option_spec = None#
- class myst_parser._docs.DocutilsCliHelpDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]#
Bases:
sphinx.util.docutils.SphinxDirectiveDirective to print the docutils CLI help.
Initialization
- has_content = False#
- required_arguments = 0#
- optional_arguments = 0#
- final_argument_whitespace = False#
- class myst_parser._docs.DirectiveDoc(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]#
Bases:
sphinx.util.docutils.SphinxDirectiveLoad and document a directive.
Initialization
- required_arguments = 1#
- has_content = True#
- class myst_parser._docs.MystWarningsDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]#
Bases:
sphinx.util.docutils.SphinxDirectiveDirective to print all known warnings.
Initialization
- has_content = False#
- required_arguments = 0#
- optional_arguments = 0#
- final_argument_whitespace = False#
- class myst_parser._docs.MystExampleDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]#
Bases:
sphinx.util.docutils.SphinxDirectiveDirective to create an example, showing the source and output.
Initialization
- has_content = True#
- option_spec = None#
- class myst_parser._docs.MystAdmonitionDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]#
Bases:
sphinx.util.docutils.SphinxDirectiveDirective to show a set of admonitions, in a tab set.
Initialization
- required_arguments = 1#
- final_argument_whitespace = True#
- class myst_parser._docs.MystToHTMLDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]#
Bases:
sphinx.util.docutils.SphinxDirectiveDirective to convert MyST to HTML.
Initialization
- has_content = True#
- optional_arguments = 1#
- final_argument_whitespace = True#
- option_spec = None#