.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "RSTPEP2HTML" 1 "" "" "text processing" .SH NAME rstpep2html \- convert reST Python Enhancement Proposals to HTML .SH SYNOPSIS .sp rstpep2html [options] [ []] .SH DESCRIPTION .sp Generates (X)HTML from reStructuredText\-format PEP files. Reads from (default is stdin) and writes to (default is stdout). See \fI\%https://docutils.sourceforge.io/docs/user/config.html\fP for a detailed settings reference. .SH OPTIONS .SS General Docutils Options .INDENT 0.0 .TP .BI \-\-title\fB= TITLE Specify the document title as metadata. .TP .B \-\-generator\fP,\fB \-g Include a \(dqGenerated by Docutils\(dq credit and link. .TP .B \-\-no\-generator Do not include a generator credit. .TP .B \-\-date\fP,\fB \-d Include the date at the end of the document (UTC). .TP .B \-\-time\fP,\fB \-t Include the time & date (UTC). .TP .B \-\-no\-datestamp Do not include a datestamp of any kind. .TP .B \-\-source\-link\fP,\fB \-s Include a \(dqView document source\(dq link. .TP .BI \-\-source\-url\fB= Use for a source link; implies \-\-source\-link. .TP .B \-\-no\-source\-link Do not include a \(dqView document source\(dq link. .TP .B \-\-toc\-entry\-backlinks Link from section headers to TOC entries. (default) .TP .B \-\-toc\-top\-backlinks Link from section headers to the top of the TOC. .TP .B \-\-no\-toc\-backlinks Disable backlinks to the table of contents. .TP .B \-\-footnote\-backlinks Link from footnotes/citations to references. (default) .TP .B \-\-no\-footnote\-backlinks Disable backlinks from footnotes and citations. .TP .B \-\-section\-numbering Enable section numbering by Docutils. (default) .TP .B \-\-no\-section\-numbering Disable section numbering by Docutils. .TP .B \-\-strip\-comments Remove comment elements from the document tree. .TP .B \-\-leave\-comments Leave comment elements in the document tree. (default) .TP .BI \-\-strip\-elements\-with\-class\fB= Remove all elements with classes=\(dq\(dq from the document tree. Warning: potentially dangerous; use with caution. (Multiple\-use option.) .TP .BI \-\-strip\-class\fB= Remove all classes=\(dq\(dq attributes from elements in the document tree. Warning: potentially dangerous; use with caution. (Multiple\-use option.) .TP .BI \-\-report\fB= \fR,\fB \ \-r \ Report system messages at or higher than : \(dqinfo\(dq or \(dq1\(dq, \(dqwarning\(dq/\(dq2\(dq (default), \(dqerror\(dq/\(dq3\(dq, \(dqsevere\(dq/\(dq4\(dq, \(dqnone\(dq/\(dq5\(dq .TP .B \-\-verbose\fP,\fB \-v Report all system messages. (Same as \(dq\-\-report=1\(dq.) .TP .B \-\-quiet\fP,\fB \-q Report no system messages. (Same as \(dq\-\-report=5\(dq.) .TP .BI \-\-halt\fB= Halt execution at system messages at or above . Levels as in \-\-report. Default: 4 (severe). .TP .B \-\-strict Halt at the slightest problem. Same as \(dq\-\-halt=info\(dq. .TP .BI \-\-exit\-status\fB= Enable a non\-zero exit status for non\-halting system messages at or above . Default: 5 (disabled). .TP .B \-\-debug Enable debug\-level system messages and diagnostics. .TP .B \-\-no\-debug Disable debug output. (default) .TP .BI \-\-warnings\fB= Send the output of system messages to . .TP .B \-\-traceback Enable Python tracebacks when Docutils is halted. .TP .B \-\-no\-traceback Disable Python tracebacks. (default) .TP .BI \-\-input\-encoding\fB= \fR,\fB \ \-i \ Specify the encoding and optionally the error handler of input text. Default: :strict. .TP .BI \-\-input\-encoding\-error\-handler\fB= INPUT_ENCODING_ERROR_HANDLER Specify the error handler for undecodable characters. Choices: \(dqstrict\(dq (default), \(dqignore\(dq, and \(dqreplace\(dq. .TP .BI \-\-output\-encoding\fB= \fR,\fB \ \-o \ Specify the text encoding and optionally the error handler for output. Default: utf\-8:strict. .TP .BI \-\-output\-encoding\-error\-handler\fB= OUTPUT_ENCODING_ERROR_HANDLER Specify error handler for unencodable output characters; \(dqstrict\(dq (default), \(dqignore\(dq, \(dqreplace\(dq, \(dqxmlcharrefreplace\(dq, \(dqbackslashreplace\(dq. .TP .BI \-\-error\-encoding\fB= \fR,\fB \ \-e \ Specify text encoding and optionally error handler for error output. Default text encoding: system encoding. Default error handler: backslashreplace. .TP .BI \-\-error\-encoding\-error\-handler\fB= ERROR_ENCODING_ERROR_HANDLER Specify the error handler for unencodable characters in error output. Default: backslashreplace. .TP .BI \-\-language\fB= \fR,\fB \ \-l \ Specify the language (as BCP 47 language tag). Default: en. .TP .BI \-\-record\-dependencies\fB= Write output file dependencies to . .TP .BI \-\-config\fB= Read configuration settings from , if it exists. .TP .B \-\-version\fP,\fB \-V Show this program\(aqs version number and exit. .TP .B \-\-help\fP,\fB \-h Show this help message and exit. .UNINDENT .SS Generic Parser Options .INDENT 0.0 .TP .B \-\-no\-file\-insertion Disable directives that insert the contents of an external file; replaced with a \(dqwarning\(dq system message. .TP .B \-\-file\-insertion\-enabled Enable directives that insert the contents of an external file. (default) .TP .B \-\-no\-raw Disable the \(dqraw\(dq directive; replaced with a \(dqwarning\(dq system message. .TP .B \-\-raw\-enabled Enable the \(dqraw\(dq directive. (default) .TP .BI \-\-line\-length\-limit\fB= Maximal number of characters in an input line. Default 10 000. .UNINDENT .SS reStructuredText Parser Options .INDENT 0.0 .TP .B \-\-pep\-references Recognize and link to standalone PEP references (like \(dqPEP 258\(dq). .TP .BI \-\-pep\-base\-url\fB= Base URL for PEP references (default \(dq\fI\%https://peps.python.org/\fP\(dq). .TP .BI \-\-pep\-file\-url\-template\fB= Template for PEP file part of URL. (default \(dqpep\-%04d\(dq) .TP .B \-\-rfc\-references Recognize and link to standalone RFC references (like \(dqRFC 822\(dq). .TP .BI \-\-rfc\-base\-url\fB= Base URL for RFC references (default \(dq\fI\%https://tools.ietf.org/html/\fP\(dq). .TP .BI \-\-tab\-width\fB= Set number of spaces for tab expansion (default 8). .TP .B \-\-trim\-footnote\-reference\-space Remove spaces before footnote references. .TP .B \-\-leave\-footnote\-reference\-space Leave spaces before footnote references. .TP .BI \-\-syntax\-highlight\fB= Token name set for parsing code with Pygments: one of \(dqlong\(dq, \(dqshort\(dq, or \(dqnone\(dq (no parsing). Default is \(dqlong\(dq. .TP .BI \-\-smart\-quotes\fB= Change straight quotation marks to typographic form: one of \(dqyes\(dq, \(dqno\(dq, \(dqalt[ernative]\(dq (default \(dqno\(dq). .TP .BI \-\-smartquotes\-locales\fB= Characters to use as \(dqsmart quotes\(dq for . .TP .B \-\-word\-level\-inline\-markup Inline markup recognized at word boundaries only (adjacent to punctuation or whitespace). Force character\-level inline markup recognition with \(dq\(dq (backslash + space). Default. .TP .B \-\-character\-level\-inline\-markup Inline markup recognized anywhere, regardless of surrounding characters. Backslash\-escapes must be used to avoid unwanted markup recognition. Useful for East Asian languages. Experimental. .UNINDENT .SS PEP Reader Option Defaults .sp The \-\-pep\-references and \-\-rfc\-references options (for the reStructuredText parser) are on by default. .SS HTML Writer Options .INDENT 0.0 .TP .BI \-\-template\fB= Template file. (UTF\-8 encoded, default: \(dq/usr/share/docutils/writers/html4css1/template.txt\(dq) .TP .BI \-\-stylesheet\fB= Comma separated list of stylesheet URLs. Overrides previous \-\-stylesheet and \-\-stylesheet\-path settings. .TP .BI \-\-stylesheet\-path\fB= Comma separated list of stylesheet paths. Relative paths are expanded if a matching file is found in the \-\-stylesheet\-dirs. With \-\-link\-stylesheet, the path is rewritten relative to the output HTML file. (default: \(dqhtml4css1.css\(dq) .TP .BI \-\-stylesheet\-dirs\fB= Comma\-separated list of directories where stylesheets are found. Used by \-\-stylesheet\-path when expanding relative path arguments. (default: \(dq.,/usr/share/docut ils/writers/html4css1,/usr/share/docutils/writers/html 5_polyglot\(dq) .TP .B \-\-embed\-stylesheet Embed the stylesheet(s) in the output HTML file. The stylesheet files must be accessible during processing. (default) .TP .B \-\-link\-stylesheet Link to the stylesheet(s) in the output HTML file. .TP .BI \-\-initial\-header\-level\fB= Specify the initial header level. Does not affect document title & subtitle (see \-\-no\-doc\-title). (default: 1 for \(dq

\(dq) .TP .BI \-\-footnote\-references\fB= Format for footnote references: one of \(dqsuperscript\(dq or \(dqbrackets\(dq. (default: \(dqbrackets\(dq) .TP .BI \-\-attribution\fB= Format for block quote attributions: one of \(dqdash\(dq (em\-dash prefix), \(dqparentheses\(dq/\(dqparens\(dq, or \(dqnone\(dq. (default: \(dqdash\(dq) .TP .B \-\-compact\-lists Remove extra vertical whitespace between items of \(dqsimple\(dq bullet lists and enumerated lists. (default) .TP .B \-\-no\-compact\-lists Disable compact simple bullet and enumerated lists. .TP .B \-\-compact\-field\-lists Remove extra vertical whitespace between items of simple field lists. (default) .TP .B \-\-no\-compact\-field\-lists Disable compact simple field lists. .TP .BI \-\-table\-style\fB= TABLE_STYLE Added to standard table classes. Defined styles: borderless, booktabs, align\-left, align\-center, align\- right, colwidths\-auto, colwidths\-grid. .TP .BI \-\-math\-output\fB= MATH_OUTPUT Math output format (one of \(dqMathML\(dq, \(dqHTML\(dq, \(dqMathJax\(dq, or \(dqLaTeX\(dq) and option(s). (default: \(dqHTML math.css\(dq) .TP .B \-\-xml\-declaration Prepend an XML declaration (default). .TP .B \-\-no\-xml\-declaration Omit the XML declaration. .TP .B \-\-cloak\-email\-addresses Obfuscate email addresses to confuse harvesters while still keeping email links usable with standards\- compliant browsers. .UNINDENT .SS HTML4 Writer Options .INDENT 0.0 .TP .BI \-\-field\-name\-limit\fB= Specify the maximum width (in characters) for one\- column field names. Longer field names will span an entire row of the table used to render the field list. Default is 14 characters. Use 0 for \(dqno limit\(dq. .TP .BI \-\-option\-limit\fB= Specify the maximum width (in characters) for options in option lists. Longer options will span an entire row of the table used to render the option list. Default is 14 characters. Use 0 for \(dqno limit\(dq. .UNINDENT .SS PEP/HTML Writer Options .sp For the PEP/HTML writer, the default value for the \-\-stylesheet\-path option is \(dq/usr/share/docutils/writers/pep_html/pep.css\(dq, and the default value for \-\-template is \(dq/usr/share/docutils/writers/pep_html/template.txt\(dq. See HTML Writer Options above. .INDENT 0.0 .TP .BI \-\-python\-home\fB= Python\(aqs home URL. Default is \(dq\fI\%https://www.python.org\fP\(dq. .TP .BI \-\-pep\-home\fB= Home URL prefix for PEPs. Default is \(dq.\(dq (current directory). .UNINDENT .\" Generated by docutils manpage writer. .