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-link but 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 with classes="<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 all classes="<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. Default 10 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 (default 8). 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 --stylesheet and --stylesheet-path settings. 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-path when 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: 1 for "<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 is 14 characters. Use 0 for "no limit". field names get a width limit; 0 means 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 is 14 characters. Pass 0 and 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 is default. The theme files get copied into a ui/<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-files is 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 the ui/<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 the ui/<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