rst2html5(1)
π NAME π
hi bestie, this is the manual page for rst2html5(1) β the little icon who turns reST documents into HTML 5. she's lowkey iconic and you're about to be obsessed. πΈ
β¨ SYNOPSIS β¨
rst2html5 [options] [<source> [<destination>]]
π DESCRIPTION π
okay so rst2html5 generates HTML5 documents from standalone reStructuredText sources β the polyglot HTML5 situation, documented right here: https://docutils.sourceforge.io/docs/user/html.html#html5-polyglot. π
she reads from <source> (default is stdin) and writes to <destination> (default is stdout). no cap.
and if you want the whole detailed settings reference, it's giving https://docutils.sourceforge.io/docs/user/config.html. go read it, i'll wait. π«Ά
π¦ OPTIONS π¦
π General Docutils Options π
--output-path=<destination>,--output=<destination>β names where the output goes. this one obsoletes the<destination>positional argument, so it's the glow-up version. default:None(stdout).--title=<title>β set the document title as metadata.--generator,-gβ add a "Generated by Docutils" credit plus a link. credit where credit's due π--no-generatorβ no generator credit. we're being humble today.--date,-dβ drop the date at the end of the document (UTC).--time,-tβ include the time and the date (UTC).--no-datestampβ no datestamp of any kind. zero. nada.--root-prefix=<path>β the base directory for absolute paths when reading from the local filesystem. default"".--source-link,-sβ add a "View document source" link.--source-url=<URL>β use<URL>for a source link. this one implies--source-link, it comes as a package deal β¨--no-source-linkβ no "View document source" link.--toc-entry-backlinksβ link from section headers to TOC entries. (default)--toc-top-backlinksβ link from section headers to the top of the TOC.--no-toc-backlinksβ disable backlinks to the table of contents.--footnote-backlinksβ link from footnotes/citations to references. (default)--no-footnote-backlinksβ disable backlinks from footnotes and citations.--section-numberingβ enable section numbering by Docutils. (default)--no-section-numberingβ disable section numbering by Docutils.--strip-commentsβ remove comment elements from the document tree. bye π--leave-commentsβ leave comment elements in the document tree. (default)--strip-elements-with-class=<class>β remove all elements withclasses="<class>"from the document tree.
β οΈ warning: potentially dangerous; use with caution. (Multiple-use option.)
--strip-class=<class>β remove allclasses="<class>"attributes from elements in the document tree.
β οΈ warning: potentially dangerous; use with caution. (Multiple-use option.)
--report=<level>,-r <level>β report system messages at or higher than<level>, where the levels are:"info"or"1","warning"/"2"(default),"error"/"3","severe"/"4","none"/"5".--verbose,-vβ report ALL system messages. (Same as"--report=1".)--quiet,-qβ report no system messages. (Same as"--report=5".) shhh π€«--halt=<level>β halt execution at system messages at or above<level>. levels work like--report. default:4(severe).--strictβ halt at the slightest problem. same as"--halt=info". she does not play.--exit-status=<level>β enable a non-zero exit status for non-halting system messages at or above<level>. default:5(disabled).--debugβ enable debug-level system messages and diagnostics.--no-debugβ disable debug output. (default)--warnings=<file>β send the output of system messages to<file>.--tracebackβ enable Python tracebacks when Docutils is halted.--no-tracebackβ disable Python tracebacks. (default)--input-encoding=<name[:handler]>β specify the encoding, and optionally the error handler, of input text. default:utf-8.--output-encoding=<name[:handler]>β specify the text encoding, and optionally the error handler, for output. default:utf-8.--error-encoding=<name[:handler]>,-e <name[:handler]>β specify text encoding, and optionally the error handler, for error output. default: system encoding.--language=<tag>,-l <tag>β specify the language (as a BCP 47 language tag). default:en.--record-dependencies=<file>β write output file dependencies to<file>.--config=<file>β read configuration settings from<file>, if it exists.--version,-Vβ show this program's version number and exit.--help,-hβ show this help message and exit.
π§ Generic Parser Options π§
--no-file-insertionβ disable directives that insert the contents of an external file; they get replaced with a"warning"system message.--file-insertion-enabledβ enable directives that insert the contents of an external file. (default)--no-rawβ disable the"raw"directive; replaced with a"warning"system message.--raw-enabledβ enable the"raw"directive. (default)--line-length-limit=<length>β maximal number of characters in an input line. default10 000.--legacy-idsβ keep identifiers backwards compatible. default.--matching-idsβ explicit targets use identifiers matching the reference name.--validateβ validate the document tree after parsing.--no-validationβ do not validate the document tree. (default)
π reStructuredText Parser Options π
--pep-referencesβ recognize and link to standalone PEP references (like"PEP 258").--pep-base-url=<URL>β base URL for PEP references (default"https://peps.python.org/").--pep-file-url-template=<URL>β template for the PEP file part of the URL. (default"pep-%04d")--rfc-referencesβ recognize and link to standalone RFC references (like"RFC 822").--rfc-base-url=<URL>β base URL for RFC references (default"https://tools.ietf.org/html/").--tab-width=<width>β set the number of spaces for tab expansion (default8).--trim-footnote-reference-spaceβ remove spaces before footnote references.--leave-footnote-reference-spaceβ leave spaces before footnote references.--syntax-highlight=<format>β token name set for parsing code with Pygments: one of"long","short", or"none"(no parsing). default is"long".--smart-quotes=<yes/no/alt>β change straight quotation marks to typographic form: one of"yes","no","alt[ernative]"(default"no"). the curly quotes glow-up β¨--smartquotes-locales=<language:quotes[,language:quotes,...]>β the characters to use as"smart quotes"for<language>.--word-level-inline-markupβ inline markup recognized at word boundaries only (adjacent to punctuation or whitespace). force character-level inline markup recognition with""(backslash + space). default.--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. π§ͺ
π Standalone Reader Options π
--no-doc-titleβ disable the promotion of a lone top-level section title to document title (and the subsequent section title to document subtitle promotion; enabled by default).--no-doc-infoβ disable the bibliographic field list transform (enabled by default).--section-subtitlesβ activate the promotion of lone subsection titles to section subtitles (disabled by default).--no-section-subtitlesβ deactivate the promotion of lone subsection titles.
π HTML Writer Options π
--template=<file>β template file. (UTF-8 encoded, default:"/usr/share/docutils/writers/html5_polyglot/template.txt")--stylesheet=<URL[,URL,...]>β comma separated list of stylesheet URLs. overrides previous--stylesheetand--stylesheet-pathsettings. she said overrides. π--stylesheet-path=<file[,file,...]>β 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:"minimal.css,plain.css")--stylesheet-dirs=<dir[,dir,...]>β comma-separated list of directories where stylesheets are found. used by--stylesheet-pathwhen expanding relative path arguments. (default:".,/usr/share/docutils/writers/html5_polyglot")--embed-stylesheetβ embed the stylesheet(s) in the output HTML file. the stylesheet files must be accessible during processing. (default)--link-stylesheetβ link to the stylesheet(s) in the output HTML file.--initial-header-level=<level>β specify the initial header level. does not affect document title & subtitle (see--no-doc-title). (default:2for"<h2>")--footnote-references=<format>β format for footnote references: one of"superscript"or"brackets". (default:"brackets")--attribution=<format>β format for block quote attributions: one of"dash"(em-dash prefix),"parentheses"/"parens", or"none". (default:"dash")--compact-listsβ remove extra vertical whitespace between items of"simple"bullet lists and enumerated lists. (default)--no-compact-listsβ disable compact simple bullet and enumerated lists.--compact-field-listsβ remove extra vertical whitespace between items of simple field lists. (default)--no-compact-field-listsβ disable compact simple field lists.--table-style=<style>β class value(s) assigned to all tables. defined styles:borderless,booktabs,align-left,align-center,align-right,colwidths-auto,colwidths-grid.--math-output=<format[option(s)]>β math output format (one of"MathML","HTML","MathJax", or"LaTeX") and option(s). (default:"MathML")--xml-declarationβ prepend an XML declaration.--no-xml-declarationβ omit the XML declaration (default).--cloak-email-addressesβ obfuscate email addresses to confuse harvesters while still keeping email links usable with standards-compliant browsers. sneaky but make it cute π
π¦ HTML5 Writer Options π¦
--image-loading=<strategy>β suggest at which point images should be loaded:"embed","link"(default), or"lazy".--section-self-linkβ append a self-link to section headings.--no-section-self-linkβ do not append a self-link to section headings. (default)
that's the whole page, bestie, no notes π and if you scrolled all the way down here just to see the footer, it's just rst2html5(1) looking back at you β same name, same page, serving cunt and documentation in equal measure. slay, periodt, go convert something gorgeous. πβ¨π«Ά
π¦ where this page comes from
- ubuntu stonking: docutils-common 0.23+dfsg-2 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms