| MYSTNB-DOCUTILS-XML(1) | User Commands | MYSTNB-DOCUTILS-XML(1) |
mystnb-docutils-xml - mystnb-docutils-xml
Usage =====
Generates Docutils-native XML from standalone MyST Notebook sources. Reads from <source> (default is stdin) and writes to <destination> (default is stdout). See https://docutils.sourceforge.io/docs/user/config.html for a detailed settings reference. External outputs are written to `--nb-outputfolder`.
Options ======= General Docutils Options ------------------------ --output=<destination> Output destination name. Obsoletes the <destination>
--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
--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
--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>
--strip-class=<class> Remove all classes="<class>" attributes from elements
--report=<level>, -r <level>
--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>.
--strict Halt at the slightest problem. Same as "--halt=info". --exit-status=<level> Enable a non-zero exit status for non-halting system
--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]>, -i <name[:handler]>
--input-encoding-error-handler=INPUT_ENCODING_ERROR_HANDLER
--output-encoding=<name[:handler]>, -o <name[:handler]>
--output-encoding-error-handler=OUTPUT_ENCODING_ERROR_HANDLER
--error-encoding=<name[:handler]>, -e <name[:handler]>
--error-encoding-error-handler=ERROR_ENCODING_ERROR_HANDLER
--language=<name>, -l <name>
--record-dependencies=<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>
--nb-metadata-key=<str>
--nb-cell-metadata-key=<str>
--nb-eval-name-regex=<str>
--nb-execution-mode=<'off'|'force'|'auto'|'cache'|'inline'>
--nb-execution-cache-path=<str>
--nb-execution-timeout=<int>
--nb-execution-in-temp=<boolean>
--nb-execution-allow-errors=<boolean>
--nb-execution-raise-on-error=<boolean>
--nb-execution-show-tb=<boolean>
--nb-merge-streams=<boolean>
--nb-render-plugin=<str>
--nb-remove-code-source=<boolean>
--nb-remove-code-outputs=<boolean>
--nb-code-prompt-show=<str>
--nb-code-prompt-hide=<str>
--nb-number-source-lines=<boolean>
--nb-builder-name=<str>
--nb-output-stderr=<'show'|'remove'|'remove-warn'|'warn'|'error'|'severe'>
--nb-render-text-lexer=<str>
--nb-render-error-lexer=<str>
--nb-render-markdown-format=<'commonmark'|'gfm'|'myst'>
--nb-output-folder=<str>
--nb-append-css=<boolean>
--nb-metadata-to-fm=<boolean>
MyST options ------------ --myst-commonmark-only=<boolean>
--myst-gfm-only=<boolean>
--myst-enable-extensions=<comma-delimited>
--myst-disable-syntax=<comma-delimited>
--myst-all-links-external=<boolean>
--myst-links-external-new-tab=<boolean>
--myst-url-schemes=<comma-delimited>|<yaml-dict>
--myst-fence-as-directive=<comma-delimited>
--myst-number-code-blocks=<comma-delimited>
--myst-title-to-header=<boolean>
--myst-heading-anchors=<int>
--myst-heading-slug-func=<str>
--myst-html-meta=<yaml-dict>
--myst-footnote-sort=<boolean>
--myst-footnote-transition=<boolean>
--myst-words-per-minute=<int>
--myst-substitutions=<yaml-dict>
--myst-linkify-fuzzy-links=<boolean>
--myst-dmath-allow-labels=<boolean>
--myst-dmath-allow-space=<boolean>
--myst-dmath-allow-digits=<boolean>
--myst-dmath-double-inline=<boolean>
--myst-enable-checkboxes=<boolean>
--myst-suppress-warnings=<comma-delimited>
--myst-highlight-code-blocks=<boolean>
--myst-inventories=<yaml-dict>
Generic Parser Options ---------------------- --no-file-insertion Disable directives that insert the contents of an
--file-insertion-enabled
--no-raw Disable the "raw" directive; replaced with a "warning"
--raw-enabled Enable the "raw" directive. (default) --line-length-limit=<length>
reStructuredText Parser Options ------------------------------- --pep-references Recognize and link to standalone PEP references (like
--pep-base-url=<URL> Base URL for PEP references (default
--pep-file-url-template=<URL>
--rfc-references Recognize and link to standalone RFC references (like
--rfc-base-url=<URL> Base URL for RFC references (default
--tab-width=<width> Set number of spaces for tab expansion (default 8). --trim-footnote-reference-space
--leave-footnote-reference-space
--syntax-highlight=<format>
--smart-quotes=<yes/no/alt>
--smartquotes-locales=<language:quotes[,language:quotes,...]>
--word-level-inline-markup
--character-level-inline-markup
Standalone Reader Options ------------------------- --no-doc-title Disable the promotion of a lone top-level section
--no-doc-info Disable the bibliographic field list transform
--section-subtitles Activate the promotion of lone subsection titles to
--no-section-subtitles Deactivate the promotion of lone subsection titles.
"Docutils XML" Writer Options ----------------------------- --newlines Generate XML with newlines before and after tags. --indents Generate XML with indents and newlines. --no-xml-declaration Omit the XML declaration. Use with caution. --no-doctype Omit the DOCTYPE declaration.
| November 2024 | debian |