{ "sectnum(docutils.parsers.rst.directives.parts.Sectnum)": { "is_markdown": true, "description": [ "## Automatic Section Numbering", "", "| | |", "|-|-|", "| Directive Type | \"sectnum\" or \"section-numbering\" (synonyms) |", "| Doctree Elements | [pending](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#pending), [generated](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#generated) |", "| Directive Arguments | None. |", "| Directive Options | Possible (see below). |", "| Directive Content | None. |", "| Configuration Setting | [sectnum_xform](https:/docutils.sourceforge.io/docs/ref/rst/../../user/config.html#sectnum-xform) |", "", "The \"sectnum\" (or \"section-numbering\") directive automatically numbers", "sections and subsections in a document (if not disabled by the", "`--no-section-numbering` command line option or the [sectnum_xform](https:/docutils.sourceforge.io/docs/ref/rst/../../user/config.html#sectnum-xform)", "configuration setting).", "", "Section numbers are of the \"multiple enumeration\" form, where each", "level has a number, separated by periods. For example, the title of section", "1, subsection 2, subsubsection 3 would have \"1.2.3\" prefixed.", "", "The \"sectnum\" directive does its work in two passes: the initial parse", "and a transform. During the initial parse, a \"pending\" element is", "generated which acts as a placeholder, storing any options internally.", "At a later stage in the processing, the \"pending\" element triggers a", "transform, which adds section numbers to titles. Section numbers are", "enclosed in a \"generated\" element, and titles have their \"auto\"", "attribute set to \"1\".", "", "The following options are recognized:", "", "`depth`: integer", "The number of section levels that are numbered by this directive.", "The default is unlimited depth.", "", "`prefix`: string", "An arbitrary string that is prefixed to the automatically", "generated section numbers. It may be something like \"3.2.\", which", "will produce \"3.2.1\", \"3.2.2\", \"3.2.2.1\", and so on. Note that", "any separating punctuation (in the example, a period, \".\") must be", "explicitly provided. The default is no prefix.", "", "`suffix`: string", "An arbitrary string that is appended to the automatically", "generated section numbers. The default is no suffix.", "", "`start`: integer", "The value that will be used for the first section number.", "Combined with `prefix`, this may be used to force the right", "numbering for a document split over several source files. The", "default is 1." ], "options": { "depth": "integer\nThe number of section levels that are numbered by this directive.\nThe default is unlimited depth.\n", "prefix": "string\nAn arbitrary string that is prefixed to the automatically\ngenerated section numbers. It may be something like \"3.2.\", which\nwill produce \"3.2.1\", \"3.2.2\", \"3.2.2.1\", and so on. Note that\nany separating punctuation (in the example, a period, \".\") must be\nexplicitly provided. The default is no prefix.\n", "suffix": "string\nAn arbitrary string that is appended to the automatically\ngenerated section numbers. The default is no suffix.\n", "start": "integer\nThe value that will be used for the first section number.\nCombined with `prefix`, this may be used to force the right\nnumbering for a document split over several source files. The\ndefault is 1.\n" }, "source": "https://docutils.sourceforge.io/docs/ref/rst/directives.html#automatic-section-numbering", "license": "https://docutils.sourceforge.io/docs/" }, "attention(docutils.parsers.rst.directives.admonitions.Attention)": { "is_markdown": true, "description": [ "## Specific Admonitions", "", "| | |", "|-|-|", "| Directive Types | \"attention\", \"caution\", \"danger\", \"error\", \"hint\",", "\"important\", \"note\", \"tip\", \"warning\", \"admonition\" |", "| Doctree Elements | attention, caution, danger, error, hint, important,", "note, tip, warning, [admonition](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#admonition), [title](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#title) |", "| Directive Arguments | None. |", "| Directive Options | [class](https://docutils.sourceforge.io/docs/ref/rst/directives.txt#id33), [name](https://docutils.sourceforge.io/docs/ref/rst/directives.txt#name) |", "| Directive Content | Interpreted as body elements. |", "", "Admonitions are specially marked \"topics\" that can appear anywhere an", "ordinary body element can. They contain arbitrary body elements.", "Typically, an admonition is rendered as an offset block in a document,", "sometimes outlined or shaded, with a title matching the admonition", "type. For example:", "", "```", ".. DANGER::", " Beware killer rabbits!", "```", "", "This directive might be rendered something like this:", "", "```", "+------------------------+", "| !DANGER! |", "| |", "| Beware killer rabbits! |", "+------------------------+", "```", "", "The following admonition directives have been implemented:", "- attention", "- caution", "- danger", "- error", "- hint", "- important", "- note", "- tip", "- warning", "", "Any text immediately following the directive indicator (on the same", "line and/or indented on following lines) is interpreted as a directive", "block and is parsed for normal body elements. For example, the", "following \"note\" admonition directive contains one paragraph and a", "bullet list consisting of two list items:", "", "```", ".. note:: This is a note admonition.", " This is the second line of the first paragraph.", "", " - The note contains all indented body elements", " following.", " - It includes this bullet list.", "```" ], "options": {}, "source": "https://docutils.sourceforge.io/docs/ref/rst/directives.html#attention", "license": "https://docutils.sourceforge.io/docs/" }, "caution(docutils.parsers.rst.directives.admonitions.Caution)": { "is_markdown": true, "description": [ "## Specific Admonitions", "", "| | |", "|-|-|", "| Directive Types | \"attention\", \"caution\", \"danger\", \"error\", \"hint\",", "\"important\", \"note\", \"tip\", \"warning\", \"admonition\" |", "| Doctree Elements | attention, caution, danger, error, hint, important,", "note, tip, warning, [admonition](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#admonition), [title](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#title) |", "| Directive Arguments | None. |", "| Directive Options | [class](https://docutils.sourceforge.io/docs/ref/rst/directives.txt#id33), [name](https://docutils.sourceforge.io/docs/ref/rst/directives.txt#name) |", "| Directive Content | Interpreted as body elements. |", "", "Admonitions are specially marked \"topics\" that can appear anywhere an", "ordinary body element can. They contain arbitrary body elements.", "Typically, an admonition is rendered as an offset block in a document,", "sometimes outlined or shaded, with a title matching the admonition", "type. For example:", "", "```", ".. DANGER::", " Beware killer rabbits!", "```", "", "This directive might be rendered something like this:", "", "```", "+------------------------+", "| !DANGER! |", "| |", "| Beware killer rabbits! |", "+------------------------+", "```", "", "The following admonition directives have been implemented:", "- attention", "- caution", "- danger", "- error", "- hint", "- important", "- note", "- tip", "- warning", "", "Any text immediately following the directive indicator (on the same", "line and/or indented on following lines) is interpreted as a directive", "block and is parsed for normal body elements. For example, the", "following \"note\" admonition directive contains one paragraph and a", "bullet list consisting of two list items:", "", "```", ".. note:: This is a note admonition.", " This is the second line of the first paragraph.", "", " - The note contains all indented body elements", " following.", " - It includes this bullet list.", "```" ], "options": {}, "source": "https://docutils.sourceforge.io/docs/ref/rst/directives.html#caution", "license": "https://docutils.sourceforge.io/docs/" }, "code(docutils.parsers.rst.directives.body.CodeBlock)": { "is_markdown": true, "description": [ "## Code", "", "| | |", "|-|-|", "| Directive Type | \"code\" |", "| Doctree Element | [literal_block](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#literal-block), [inline elements](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#inline-elements) |", "| Directive Arguments | One, optional (formal language). |", "| Directive Options | name, class, number-lines. |", "| Directive Content | Becomes the body of the literal block. |", "| Configuration Setting | [syntax_highlight](https:/docutils.sourceforge.io/docs/ref/rst/../../user/config.html#syntax-highlight). |", "", "The \"code\" directive constructs a literal block. If the code language is", "specified, the content is parsed by the [Pygments](https://pygments.org/) syntax highlighter and", "tokens are stored in nested [inline elements](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#inline-elements) with class arguments", "according to their syntactic category. The actual highlighting requires", "a style-sheet (e.g. one [generated by Pygments](https://pygments.org/docs/cmdline/#generating-styles), see the", "[sandbox/stylesheets](https://docutils.sourceforge.io/sandbox/stylesheets/) for examples).", "", "The parsing can be turned off with the [syntax_highlight](https:/docutils.sourceforge.io/docs/ref/rst/../../user/config.html#syntax-highlight) configuration", "setting and command line option or by specifying the language as [class](https://docutils.sourceforge.io/docs/ref/rst/directives.txt#id33)", "option instead of directive argument. This also avoids warnings", "when [Pygments](https://pygments.org/) is not installed or the language is not in the", "[supported languages and markup formats](https://pygments.org/languages/).", "", "For inline code, use the [\"code\" role](https:/docutils.sourceforge.io/docs/ref/rst/roles.html#code).", "", "The following options are recognized:", "", "`number-lines`: [integer] (start line number)", "Precede every line with a line number.", "The optional argument is the number of the first line (default 1).", "", "and the common options [class](https://docutils.sourceforge.io/docs/ref/rst/directives.txt#id33) and [name](https://docutils.sourceforge.io/docs/ref/rst/directives.txt#name).", "", "`Example::`: ", "The content of the following directive", "", "```", ".. code:: python", "", " def my_function():", " \"just a test\"", " print 8/2", "```", "", "is parsed and marked up as Python source code." ], "options": { "number-lines": "[integer] (start line number)\nPrecede every line with a line number.\nThe optional argument is the number of the first line (default 1).\n", "Example::": "\nThe content of the following directive\n\n```\n.. code:: python\n\n def my_function():\n \"just a test\"\n print 8/2\n```\n\nis parsed and marked up as Python source code.\n" }, "source": "https://docutils.sourceforge.io/docs/ref/rst/directives.html#code", "license": "https://docutils.sourceforge.io/docs/" }, "compound(docutils.parsers.rst.directives.body.Compound)": { "is_markdown": true, "description": [ "## Compound Paragraph", "", "| | |", "|-|-|", "| Directive Type | \"compound\" |", "| Doctree Element | [compound](https:/docutils.sourceforge.io/docs/ref/rst/../doctree.html#compound) |", "| Directive Arguments | None. |", "| Directive Options | [class](https://docutils.sourceforge.io/docs/ref/rst/directives.txt#id33), [name](https://docutils.sourceforge.io/docs/ref/rst/directives.txt#name) |", "| Directive Content | Interpreted as body elements. |", "", "The \"compound\" directive is used to create a compound paragraph, which", "is a single logical paragraph containing multiple physical body", "elements such as simple paragraphs, literal blocks, tables, lists,", "etc., instead of directly containing text and inline elements. For", "example:", "", "```", ".. compound::", "", " The 'rm' command is very dangerous. If you are logged", " in as root and enter ::", "", " cd /", " rm -rf *", "", " you will erase the entire contents of your file system.", "```", "", "In the example above, a literal block is \"embedded\" within a sentence", "that begins in one physical paragraph and ends in another.", "", "The \"compound\" directive is not a generic block-level container", "like HTML's `