rst2s5(1)
π rst2s5(1) β text processing π
hey bestie π«Ά you just opened the manual for rst2s5. it's giving "slide deck from plain text" and honestly? iconic. β¨
π Name
rst2s5 β convert reST documents to S5 slides. no cap. π
π¬ Synopsis
rst2s5 [options] [<source> [<destination>]]
π Description
okay so real talk: this generates S5 HTML slideshow documents from standalone reStructuredText sources <<https://docutils.sourceforge.io/docs/user/slide-shows.html>>. It reads from <source> (default is stdin) and writes to <destination> (default is stdout). If you want the full settings reference, see <https://docutils.sourceforge.io/docs/user/config.html>. it's literally a whole slideshow pipeline and I'm obsessed. π¦β¨
π οΈ Options π οΈ
π General Docutils Options π
--output-path=<destination>,--output=<destination>β This is the output destination name, bestie. It obsoletes the<destination>positional argument. Default:None(stdout). so if you're like "where do I put the slides?" this is your girl. π--title=<title>β Specify the document title as metadata. it's the little name tag for your doc. π--generator,-gβ Include a"Generated by Docutils"credit and link. give credit where it's due, periodt.--no-generatorβ Do not include a generator credit. no credit, no link, no drama.--date,-dβ Include the date at the end of the document (UTC). timestamp incoming. β°--time,-tβ Include the time & date (UTC). even more timestamp energy.--no-datestampβ Do not include a datestamp of any kind. zero timestamps. none. nada.--root-prefix=<path>β Base directory for absolute paths when reading from the local filesystem. Default"". lowkey the anchor for your absolute paths. β--source-link,-sβ Include a"View document source"link. for the nosy besties who wanna peek. π--source-url=<URL>β Use<URL>for a source link; implies--source-link. it's like--source-linkbut with a custom URL. slay.--no-source-linkβ Do not include a"View document source"link. no peeking allowed. π--toc-entry-backlinksβ Link from section headers to TOC entries. (default) backlinks from your headers to the table of contents? yes bestie. π--toc-top-backlinksβ Link from section headers to the top of the TOC. same vibe, but to the top. β¬οΈ--no-toc-backlinksβ Disable backlinks to the table of contents. no TOC backlinks, no problem.--footnote-backlinksβ Link from footnotes/citations to references. (default) footnote glow-up. β¨--no-footnote-backlinksβ Disable backlinks from footnotes and citations. footnotes stay unlinked. periodt.--section-numberingβ Enable section numbering by Docutils. (default) numbers on your sections, because order is self-care. π’--no-section-numberingβ Disable section numbering by Docutils. no numbers, just vibes.--strip-commentsβ Remove comment elements from the document tree. bye-bye comments. π--leave-commentsβ Leave comment elements in the document tree. (default) comments stay, bestie.--strip-elements-with-class=<class>β Remove all elements withclasses="<class>"from the document tree. Warning: potentially dangerous; use with caution. (Multiple-use option.) this one is highkey powerful, so don't just yolo it. β οΈ--strip-class=<class>β Remove allclasses="<class>"attributes from elements in the document tree. Warning: potentially dangerous; use with caution. (Multiple-use option.) again: powerful, use with caution. β οΈ--report=<level>,-r <level>β Report system messages at or higher than<level>:"info"or"1","warning"/"2"(default),"error"/"3","severe"/"4","none"/"5". it's the volume knob for system messages. π--verbose,-vβ Report all system messages. (Same as"--report=1".) all the messages, all the time.--quiet,-qβ Report no system messages. (Same as"--report=5".) shhh. π€«--halt=<level>β Halt execution at system messages at or above<level>. Levels as in--report. Default:4(severe). it stops the second things get too severe. π--strictβ Halt at the slightest problem. Same as"--halt=info". no chill mode, activated. π--exit-status=<level>β Enable a non-zero exit status for non-halting system messages at or above<level>. Default:5(disabled). so the shell knows something went down. π¨--debugβ Enable debug-level system messages and diagnostics. debug girlies, rise. π--no-debugβ Disable debug output. (default) no debug, just peace.--warnings=<file>β Send the output of system messages to<file>. redirect those warnings, bestie. π--tracebackβ Enable Python tracebacks when Docutils is halted. when it breaks, show the whole receipt. π§Ύ--no-tracebackβ Disable Python tracebacks. (default) no receipts, just vibes.--input-encoding=<name[:handler]>β Specify the encoding and optionally the error handler of input text. Default:utf-8. input encoding, handled. π--output-encoding=<name[:handler]>β Specify the text encoding and optionally the error handler for output. Default:utf-8. output encoding, also handled.--error-encoding=<name[:handler]>,-e <name[:handler]>β Specify text encoding and optionally the error handler for error output. Default: system encoding. errors get their own encoding. iconic.--language=<tag>,-l <tag>β Specify the language (as BCP 47 language tag). Default:en. set the language, bestie. π--record-dependencies=<file>β Write output file dependencies to<file>. keep track of what depends on what. π--config=<file>β Read configuration settings from<file>, if it exists. config file? read it if it's there. π--version,-Vβ Show this program's version number and exit. version check, then bounce. π--help,-hβ Show this help message and exit. the classic. help me help you. π«Ά
π§ Generic Parser Options π§
--no-file-insertionβ Disable directives that insert the contents of an external file; replaced with a"warning"system message. no sneaky file inserts. β οΈ--file-insertion-enabledβ Enable directives that insert the contents of an external file. (default) file inserts are on, bestie. π₯--no-rawβ Disable the"raw"directive; replaced with a"warning"system message. raw directive? not today. β οΈ--raw-enabledβ Enable the"raw"directive. (default) raw is on. periodt.--line-length-limit=<length>β Maximal number of characters in an input line. Default10 000. long lines? not on my watch. π--legacy-idsβ Keep identifiers backwards compatible. Default. legacy IDs for the win.--matching-idsβ Explicit targets use identifiers matching the reference name. IDs that match the reference name. slay.--validateβ Validate the document tree after parsing. check the tree after parsing. β--no-validationβ Do not validate the document tree. (default) no validation, just vibes.
π reStructuredText Parser Options π
--pep-referencesβ Recognize and link to standalone PEP references (like"PEP 258"). PEP links, activated. π--pep-base-url=<URL>β Base URL for PEP references (default"<https://peps.python.org/>"). the base URL for PEP links.--pep-file-url-template=<URL>β Template for PEP file part of URL. (default"pep-%04d"). the template for the PEP file part.--rfc-referencesβ Recognize and link to standalone RFC references (like"RFC 822"). RFC links, let's go. π--rfc-base-url=<URL>β Base URL for RFC references (default"<https://tools.ietf.org/html/>"). base URL for RFC links.--tab-width=<width>β Set number of spaces for tab expansion (default8). tabs become spaces, exactly how many you say. π--trim-footnote-reference-spaceβ Remove spaces before footnote references. trim those spaces. βοΈ--leave-footnote-reference-spaceβ Leave spaces before footnote references. leave those spaces alone.--syntax-highlight=<format>β Token name set for parsing code with Pygments: one of"long","short", or"none"(no parsing). Default is"long". syntax highlighting, but make it fashion. π¨--smart-quotes=<yes/no/alt>β Change straight quotation marks to typographic form: one of"yes","no","alt[ernative]"(default"no"). curly quotes? only if you say so. π--smartquotes-locales=<language:quotes[,language:quotes,...]>β Characters to use as"smart quotes"for<language>. per-language smart quotes. π--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. word-level inline markup is the default vibe.--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. character-level markup, anywhere, but experimental so be careful. π§ͺ
π Standalone Reader Options π
--no-doc-titleβ Disable the promotion of a lone top-level section title to document title (and subsequent section title to document subtitle promotion; enabled by default). don't promote that lone title. π--no-doc-infoβ Disable the bibliographic field list transform (enabled by default). no bibliographic field list transform. periodt.--section-subtitlesβ Activate the promotion of lone subsection titles to section subtitles (disabled by default). subsection titles become section subtitles. β¨--no-section-subtitlesβ Deactivate the promotion of lone subsection titles. no promotion, no subtitles.
π HTML Writer Options π
--template=<file>β Template file. (UTF-8 encoded, default:"/usr/share/docutils/writers/html4css1/template.txt"). your template, your rules. π--stylesheet=<URL[,URL,...]>β Comma separated list of stylesheet URLs. Overrides previous--stylesheetand--stylesheet-pathsettings. stylesheets by URL, and it overrides the previous settings. π--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:"html4css1.css"). stylesheets by path, with expansion and rewriting. π--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/html4css1,/usr/share/docutils/writers/html5_polyglot"). the directories where stylesheets live. π--embed-stylesheetβ Embed the stylesheet(s) in the output HTML file. The stylesheet files must be accessible during processing. (default). embed the styles, but the files gotta be reachable. π--link-stylesheetβ Link to the stylesheet(s) in the output HTML file. link instead of embed. π--initial-header-level=<level>β Specify the initial header level. Does not affect document title & subtitle (see--no-doc-title). (default:1for"<h1>"). set the starting header level. 1οΈβ£--footnote-references=<format>β Format for footnote references: one of"superscript"or"brackets". (default:"brackets"). footnote refs, styled. π--attribution=<format>β Format for block quote attributions: one of"dash"(em-dash prefix),"parentheses"/"parens", or"none". (default:"dash"). how you want your block quote attributions to look. π--compact-listsβ Remove extra vertical whitespace between items of"simple"bullet lists and enumerated lists. (default). compact lists, less space. π--no-compact-listsβ Disable compact simple bullet and enumerated lists. no compact lists, more space.--compact-field-listsβ Remove extra vertical whitespace between items of simple field lists. (default). compact field lists. β¨--no-compact-field-listsβ Disable compact simple field lists. no compact 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. give your tables a class, bestie. π--math-output=<format[option(s)]>β Math output format (one of"MathML","HTML","MathJax", or"LaTeX") and option(s). (default:"HTML math.css"). math output, formatted. β--xml-declarationβ Prepend an XML declaration (default). XML declaration, up top. π--no-xml-declarationβ Omit the XML declaration. no XML declaration. π--cloak-email-addressesβ Obfuscate email addresses to confuse harvesters while still keeping email links usable with standards-compliant browsers. hide those emails from the harvesters, but keep them clickable. π΅οΈ
π₯οΈ HTML4 Writer Options π₯οΈ
--field-name-limit=<level>β 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 is14characters. Use0for"no limit". field names get a width limit;0means no limit. π--option-limit=<level>β sets the max width, in characters, for options inside option lists π . Any option that's longer than this will just take over a whole row of the table that renders the list (it's giving main character energy, honestly). Default is14characters. Pass0and you get no limit at all β¨.
π¦ S5 Slideshow Specific Options π¦
okay so this is the part where we talk S5, and for the S5/HTML writer there's one thing you need to know up front, bestie:
For the S5/HTML writer, the --no-toc-backlinks option (defined in General Docutils Options above) is the default, and should not be changed. π«Ά Don't touch it. It's perfect. Leave it alone.
--theme=<name>β pick an installed S5 theme by name πΈ. This one overrides--theme-url. The default theme name isdefault. The theme files get copied into aui/<theme>directory, sitting in the same directory as the destination file (that's your output HTML). β οΈ Heads up though: existing theme files will not be overwritten (unless--overwrite-theme-filesis used β more on that below).--theme-url=<URL>β point at an S5 theme by URL π. The destination file (output HTML) will just link to this theme; nothing gets copied at all, no cap. This one overrides--theme.--overwrite-theme-filesβ lets existing theme files in theui/<theme>directory get overwritten β¨. The default is to not overwrite theme files, so this is you actively choosing chaos (respectfully).--keep-theme-filesβ keeps whatever theme files are already sitting in theui/<theme>directory, and does not overwrite any of them π. This is the default, bestie. Chill behaviour.--view-mode=<mode>β sets the initial view mode. Your choices are"slideshow"[default] or"outline"π. Pick your vibe.--hidden-controlsβ normally hides the presentation controls while you're in slideshow mode π. This is the default.--visible-controlsβ always shows the presentation controls in slideshow mode β¨. The default is to hide the controls, so this is you saying "actually, I want to see them."--current-slideβ turns on the current slide indicator, which looks like"1 / 15"π₯. The default is to keep it disabled.--no-current-slideβ turns the current slide indicator off π . This is the default.
and that's the whole page, bestie π you made it to the very end, which is lowkey iconic of you. the footer down there just says rst2s5(1) β that's the manual page name, and it's all it signs off with (no version number, no date, just the page title keeping it mysterious π¦). go forth and make slides β¨ππ
π¦ 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