MYSTNB-DOCUTILS-HTML5(1)

✨ NAME ✨

mystnb-docutils-html5 β€” mystnb-docutils-html5, the main-character command of this MYSTNB-DOCUTILS-HTML5(1) User Commands manual page. That’s the whole NAME vibe, bestie πŸ’…


🌸 DESCRIPTION 🌸

Okay so, this is the command that generates HTML5 documents from standalone MyST Notebook sources. It reads from <source> β€” default is stdin β€” and writes to <destination> β€” default is stdout. No cap, that’s the core glow-up ✨

See https://docutils.sourceforge.io/docs/user/config.html for a detailed settings reference. External outputs are written to --nb-output-folder 🫢

πŸŒ€ Usage

mystnb-docutils-html5 [options] [<source> [<destination>]]

🌈 Options

πŸ’– General Docutils Options

  • --output-path=<destination>, --output=<destination> β€” Output destination name. Obsoletes the <destination> positional argument. Default: None (stdout).
  • --title=<title> β€” Specify the document title as metadata.
  • --generator, -g β€” Include a "Generated by Docutils" credit and link.
  • --no-generator β€” Do not include a generator credit.
  • --date, -d β€” Include the date at the end of the document (UTC).
  • --time, -t β€” Include the time & date (UTC).
  • --no-datestamp β€” Do not include a datestamp of any kind.
  • --root-prefix=<path> β€” Base directory for absolute paths when reading from the local filesystem. Default: "".
  • --source-link, -s β€” Include a "View document source" link.
  • --source-url=<URL> β€” Use <URL> for a source link; implies --source-link.
  • --no-source-link β€” Do not include a "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.
  • --leave-comments β€” Leave comment elements in the document tree. (default)
  • --strip-elements-with-class=<class> β€” Remove all elements with classes="<class>" from the document tree. Warning: potentially dangerous; use with caution. (Multiple-use option.)
  • --strip-class=<class> β€” Remove all classes="<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>: "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".)
  • --halt=<level> β€” Halt execution at system messages at or above <level>. Levels as in --report. Default: 4 (severe).
  • --strict β€” Halt at the slightest problem. Same as "--halt=info".
  • --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 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.

πŸͺ„ MyST-NB options

  • --nb-read-as-md=<boolean> β€” Read as the MyST Markdown format (default: False).
  • --nb-metadata-key=<str> β€” Notebook level metadata key for config overrides (default: (default: 'mystnb')).
  • --nb-cell-metadata-key=<str> β€” Cell level metadata key for config overrides (default: (default: 'mystnb')).
  • --nb-eval-name-regex=<str> β€” Regex that matches permitted values of eval expressions (default: (default: '^[a-zAZ_][a-zA-Z0-9_]*$')).
  • --nb-execution-mode=<'off'|'force'|'auto'|'cache'|'inline'> β€” Execution mode for notebooks (default: 'auto').
  • --nb-execution-cache-path=<str> β€” Path to folder for caching notebooks (default: <outdir>) (default: (default: '')).
  • --nb-execution-timeout=<int> β€” Execution timeout (seconds) (default: 30).
  • --nb-execution-in-temp=<boolean> β€” Use temporary folder for the execution current working directory (default: False).
  • --nb-execution-allow-errors=<boolean> β€” Allow errors during execution (default: False).
  • --nb-execution-raise-on-error=<boolean> β€” Raise an exception on failed execution, rather than emitting a warning (default: False).
  • --nb-execution-show-tb=<boolean> β€” Print traceback to stderr on execution error (default: False).
  • --nb-merge-streams=<boolean> β€” Merge all stdout execution output streams; same with stderr (default: False).
  • --nb-render-plugin=<str> β€” The entry point for the execution output render class (in group myst_nb.output_renderer) (default: (default: 'default')).
  • --nb-remove-code-source=<boolean> β€” Remove code cell source (default: False).
  • --nb-remove-code-outputs=<boolean> β€” Remove code cell outputs (default: False).
  • --nb-scroll-outputs=<boolean> β€” Make long cell outputs scrollable (default: False).
  • --nb-code-prompt-show=<str> β€” Prompt to expand hidden code cell {content|source|outputs} (default: (default: 'Show code cell {type}')).
  • --nb-code-prompt-hide=<str> β€” Prompt to collapse hidden code cell {content|source|outputs} (default: (default: 'Hide code cell {type}')).
  • --nb-number-source-lines=<boolean> β€” Number code cell source lines (default: False).
  • --nb-builder-name=<str> β€” Builder name, to select render priority for mime types (default: (default: 'html')).
  • --nb-output-stderr=<'show'|'remove'|'remove-warn'|'warn'|'error'|'severe'> β€” Behaviour for stderr output (default: 'show').
  • --nb-render-text-lexer=<str> β€” Pygments lexer applied to stdout/stderr and text/plain outputs (default: (default: 'myst-ansi')).
  • --nb-render-error-lexer=<str> β€” Pygments lexer applied to error/traceback outputs (default: (default: 'ipythontb')).
  • --nb-render-markdown-format=<'commonmark'|'gfm'|'myst'> β€” The format to use for text/markdown rendering (default: 'commonmark').
  • --nb-output-folder=<str> β€” Folder for external outputs (like images), skipped if empty (default: (default: 'build')).
  • --nb-append-css=<boolean> β€” Add default MyST-NB CSS to HTML outputs (default: True).
  • --nb-metadata-to-fm=<boolean> β€” Convert unhandled metadata to frontmatter (default: False).

🧚 MyST options

  • --myst-commonmark-only=<boolean> β€” Use strict CommonMark parser (default: False).
  • --myst-gfm-only=<boolean> β€” Use strict Github Flavoured Markdown parser (default: False).
  • --myst-enable-extensions=<comma-delimited> β€” Enable syntax extensions.
  • --myst-disable-syntax=<comma-delimited> β€” Disable Commonmark syntax elements.
  • --myst-all-links-external=<boolean> β€” Parse all links as simple hyperlinks (default: False).
  • --myst-links-external-new-tab=<boolean> β€” Open all external links in a new tab (default: False).
  • --myst-url-schemes=<comma-delimited>|<yaml-dict> β€” URI schemes that are converted to external links (default: http,https,mailto,ftp).
  • --myst-fence-as-directive=<comma-delimited> β€” Interpret a code fence as a directive, for certain language names. This can be useful for fences like dot and mermaid, and interoperability with other Markdown renderers.
  • --myst-number-code-blocks=<comma-delimited> β€” Add line numbers to code blocks with these languages.
  • --myst-title-to-header=<boolean> β€” Convert a title field in the front-matter to a H1 header (default: False).
  • --myst-heading-anchors=<int> β€” Heading level depth to assign HTML anchors (default: 0).
  • --myst-heading-slug-func=<str> β€” Function for creating heading anchors, or a python import path e.g. my_package.my_module.my_function (default: (default: 'None')).
  • --myst-html-meta=<yaml-dict> β€” HTML meta tags.
  • --myst-footnote-sort=<boolean> β€” Move all footnotes to the end of the document, and sort by reference order (default: True).
  • --myst-footnote-transition=<boolean> β€” Place a transition before sorted footnotes (default: True).
  • --myst-words-per-minute=<int> β€” For reading speed calculations (default: 200).
  • --myst-substitutions=<yaml-dict> β€” Substitutions mapping.
  • --myst-linkify-fuzzy-links=<boolean> β€” Recognise URLs without schema prefixes (default: True).
  • --myst-dmath-allow-labels=<boolean> β€” Parse $$...$$ (label) (default: True).
  • --myst-dmath-allow-space=<boolean> β€” Allow initial/final spaces in $ ... $ (default: True).
  • --myst-dmath-allow-digits=<boolean> β€” Allow initial/final digits 1$ ...$2 (default: True).
  • --myst-dmath-double-inline=<boolean> β€” Parse inline $$ ... $$ (default: False).
  • --myst-enable-checkboxes=<boolean> β€” Enable checkboxes (default: False).
  • --myst-suppress-warnings=<comma-delimited> β€” A list of warning types to suppress warning messages.
  • --myst-highlight-code-blocks=<boolean> β€” Syntax highlight code blocks with pygments (default: True).
  • --myst-inventories=<yaml-dict> β€” Mapping of key to (url, inv file), for intra-project referencing.

🧩 Generic Parser Options

  • --no-file-insertion β€” Disable directives that insert the contents of an external file; replaced with a "warning" system message.
  • --file-insertion-enabled β€” turns on the directives that literally pull in the contents of an external file. yes bestie, file go in. this is the default btw πŸ’–
  • --no-raw β€” kills the "raw" directive, and instead of your raw content you get a "warning" system message. rude but fair 🫠
  • --raw-enabled β€” the "raw" directive is on. (default) raw dogging your markup, iconic
  • --line-length-limit=<length> β€” the max number of characters in one input line. default is 10 000. that's a LOT of line, she's long πŸ’…
  • --validate β€” validates the document tree after parsing. proofread era ✨
  • --no-validation β€” don't validate the document tree. (default) we die like women 😭

🌸 reStructuredText Parser Options 🌸

  • --pep-references β€” recognizes standalone PEP references (like "PEP 258") and links them up. PEP girlies rise 🫢
  • --pep-base-url=<URL> β€” the base URL for those PEP references. (default: "https://peps.python.org/")
  • --pep-file-url-template=<URL> β€” the template for the PEP file part of the URL. (default: "pep-%04d") yes the %04d is doing the heavy lifting, don't touch it πŸ’€
  • --rfc-references β€” recognizes standalone RFC references (like "RFC 822") and links them too. old-school internet slay πŸŽ€
  • --rfc-base-url=<URL> β€” base URL for RFC references. (default: "https://tools.ietf.org/html/")
  • --tab-width=<width> β€” how many spaces a tab expands to. (default 8)
  • --trim-footnote-reference-space β€” removes the spaces before footnote references. decluttered, clean, minimal 🧚
  • --leave-footnote-reference-space β€” leaves the spaces before footnote references alone. she's keeping them, respect it
  • --syntax-highlight=<format> β€” the token name set used when parsing code with Pygments. one of "long", "short", or "none" (no parsing). default is "long".
  • --smart-quotes=<yes/no/alt> β€” swaps your straight quotation marks for typographic ones. one of "yes", "no", "alt[ernative]". (default: "no") β€” so by default your quotes stay basic, but you CAN make them fancy ✨
  • --smartquotes-locales=<language:quotes[,language:quotes,...]> β€” which characters count as "smart quotes" for <language>. localized curly-quote representation, we love to see it 🌈
  • --word-level-inline-markup β€” inline markup is only recognized at word boundaries (so, next to punctuation or whitespace). you can force character-level recognition with "\ " (backslash + space). this is the default.
  • --character-level-inline-markup β€” inline markup gets recognized ANYWHERE, no matter what characters are chilling around it. you have to use backslash-escapes to stop unwanted markup from being recognized. useful for East Asian languages. labeled Experimental β€” so like, cute but proceed with awareness 🫢

πŸ¦‹ Standalone Reader Options πŸ¦‹

  • --no-doc-title β€” disables the promotion of a lone top-level section title to document title (and the subsequent promotion of a section title to document subtitle β€” that whole thing is enabled by default). no promotion for you πŸ“‰
  • --no-doc-info β€” disables the bibliographic field list transform (which is enabled by default).
  • --section-subtitles β€” activates the promotion of lone subsection titles to section subtitles (this one's disabled by default).
  • --no-section-subtitles β€” deactivates that lone-subsection-title promotion. back off, subtitle era over

πŸ’… HTML Writer Options πŸ’…

  • --template=<file> β€” the template file. UTF-8 encoded, default: "/usr/share/docutils/writers/html5_polyglot/template.txt". long path, big vibes
  • --stylesheet=<URL[,URL,...]> β€” a comma separated list of stylesheet URLs. this one overrides any previous --stylesheet and --stylesheet-path settings. she's the main character, periodt πŸ‘‘
  • --stylesheet-path=<file[,file,...]> β€” a comma separated list of stylesheet paths. relative paths get expanded if a matching file turns up in the --stylesheet-dirs. with --link-stylesheet, the path is rewritten relative to the output HTML file. (default: "minimal.css,plain.css") two icons in one
  • --stylesheet-dirs=<dir[,dir,...]> β€” comma-separated list of directories where stylesheets live. used by --stylesheet-path when it's expanding those relative path arguments. (default: ".,/usr/share/docutils/writers/html5_polyglot")
  • --embed-stylesheet β€” embeds the stylesheet(s) directly in the output HTML file. the stylesheet files must be accessible during processing. (default) it's giving self-contained πŸŽ€
  • --link-stylesheet β€” links to the stylesheet(s) in the output HTML file instead. external reference realness
  • --initial-header-level=<level> β€” sets the initial header level. note: it does not affect the document title & subtitle (see --no-doc-title). (default: 2 for "<h2>")
  • --footnote-references=<format> β€” the format for footnote references. one of "superscript" or "brackets". (default: "brackets")
  • --attribution=<format> β€” the format for block quote attributions. one of "dash" (em-dash prefix), "parentheses"/"parens", or "none". (default: "dash")
  • --compact-lists β€” removes the extra vertical whitespace between items of "simple" bullet lists and enumerated lists. (default) tight, tidy, efficient πŸ’–
  • --no-compact-lists β€” disables compact simple bullet and enumerated lists. let them breathe, ig
  • --compact-field-lists β€” removes the extra vertical whitespace between items of simple field lists. (default)
  • --no-compact-field-lists β€” disables compact simple field lists. spacing girlies keep your spacing
  • --table-style=<style> β€” the class value(s) assigned to all tables. the defined styles are: borderless, booktabs, align-left, align-center, alignright, colwidths-auto, colwidths-grid. copy-paste these exactly bestie, no ✨creative✨ renaming
  • --math-output=<format [option(s)]> β€” the math output format (one of "MathML", "HTML", "MathJax", or "LaTeX") plus any option(s). (default: "MathML") math but make it aesthetic πŸ”₯
  • --xml-declaration β€” prepends an XML declaration.
  • --no-xml-declaration β€” omits the XML declaration. (default)
  • --cloak-email-addresses β€” obfuscates email addresses to confuse harvesters, while still keeping email links usable in standardscompliant browsers. spam bots stay losing πŸ’€

⭐ HTML5 Writer Options ⭐

  • --image-loading=<strategy> β€” suggests at which point images should load: "embed", "link" (default), or "lazy". lazy loading is so her 🌸
  • --section-self-link β€” appends a self-link to section headings. every section linking to itself, self-love era 🫢
  • --no-section-self-link β€” does not append a self-link to section headings. (default) no self-links, humble queen

obvi reminder: everything in here is exactly as the page says it β€” no invented behaviour, no guessing at defaults. if it's not in the list, it's not a vibe 😀

okay that's the whole thing bestie, we ATE πŸ’…βœ¨ this page is from the debian source, January 2026 edition β€” you're welcome, go build something iconic πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from