Debian Codegraph @

test/data/help/docutils.rst

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 Usage
2 =====
3 docutils [options] [<source> [<destination>]]
4
5 Convert documents into useful formats. Reads from <source> (default is stdin)
6 and writes to <destination> (default is stdout). See
7 https://docutils.sourceforge.io/docs/user/config.html for a detailed settings
8 reference.
9
10 Options
11 =======
12 General Docutils Options
13 ------------------------
14 --output-path=<destination>, --output=<destination>
15 Output destination name. Obsoletes the <destination>
16 positional argument. Default: None (stdout).
17 --title=<title> Specify the document title as metadata.
18 --generator, -g Include a "Generated by Docutils" credit and link.
19 --no-generator Do not include a generator credit.
20 --date, -d Include the date at the end of the document (UTC).
21 --time, -t Include the time & date (UTC).
22 --no-datestamp Do not include a datestamp of any kind.
23 --root-prefix=<path> Base directory for absolute paths when reading from
24 the local filesystem. Default "".
25 --source-link, -s Include a "View document source" link.
26 --source-url=<URL> Use <URL> for a source link; implies --source-link.
27 --no-source-link Do not include a "View document source" link.
28 --toc-entry-backlinks Link from section headers to TOC entries. (default)
29 --toc-top-backlinks Link from section headers to the top of the TOC.
30 --no-toc-backlinks Disable backlinks to the table of contents.
31 --footnote-backlinks Link from footnotes/citations to references. (default)
32 --no-footnote-backlinks
33 Disable backlinks from footnotes and citations.
34 --section-numbering Enable section numbering by Docutils. (default)
35 --no-section-numbering Disable section numbering by Docutils.
36 --strip-comments Remove comment elements from the document tree.
37 --leave-comments Leave comment elements in the document tree. (default)
38 --strip-elements-with-class=<class>
39 Remove all elements with classes="<class>" from the
40 document tree. Warning: potentially dangerous; use
41 with caution. (Multiple-use option.)
42 --strip-class=<class> Remove all classes="<class>" attributes from elements
43 in the document tree. Warning: potentially dangerous;
44 use with caution. (Multiple-use option.)
45 --report=<level>, -r <level>
46 Report system messages at or higher than <level>:
47 "info" or "1", "warning"/"2" (default), "error"/"3",
48 "severe"/"4", "none"/"5"
49 --verbose, -v Report all system messages. (Same as "--report=1".)
50 --quiet, -q Report no system messages. (Same as "--report=5".)
51 --halt=<level> Halt execution at system messages at or above <level>.
52 Levels as in --report. Default: 4 (severe).
53 --strict Halt at the slightest problem. Same as "--halt=info".
54 --exit-status=<level> Enable a non-zero exit status for non-halting system
55 messages at or above <level>. Default: 5 (disabled).
56 --debug Enable debug-level system messages and diagnostics.
57 --no-debug Disable debug output. (default)
58 --warnings=<file> Send the output of system messages to <file>.
59 --traceback Enable Python tracebacks when Docutils is halted.
60 --no-traceback Disable Python tracebacks. (default)
61 --input-encoding=<name[:handler]>
62 Specify the encoding and optionally the error handler
63 of input text. Default: utf-8.
64 --output-encoding=<name[:handler]>
65 Specify the text encoding and optionally the error
66 handler for output. Default: utf-8.
67 --error-encoding=<name[:handler]>, -e <name[:handler]>
68 Specify text encoding and optionally the error handler
69 for error output. Default: utf-8.
70 --language=<tag>, -l <tag>
71 Specify the language (as BCP 47 language tag).
72 Default: en.
73 --record-dependencies=<file>
74 Write output file dependencies to <file>.
75 --config=<file> Read configuration settings from <file>, if it exists.
76 --version, -V Show this program's version number and exit.
77 --help, -h Show this help message and exit.
78
79 Generic Parser Options
80 ----------------------
81 --no-file-insertion Disable directives that insert the contents of an
82 external file; replaced with a "warning" system
83 message.
84 --file-insertion-enabled
85 Enable directives that insert the contents of an
86 external file. (default)
87 --no-raw Disable the "raw" directive; replaced with a "warning"
88 system message.
89 --raw-enabled Enable the "raw" directive. (default)
90 --line-length-limit=<length>
91 Maximal number of characters in an input line. Default
92 10 000.
93 --legacy-ids Keep identifiers backwards compatible. Default.
94 --matching-ids Explicit targets use identifiers matching the
95 reference name.
96 --validate Validate the document tree after parsing.
97 --no-validation Do not validate the document tree. (default)
98
99 reStructuredText Parser Options
100 -------------------------------
101 --pep-references Recognize and link to standalone PEP references (like
102 "PEP 258").
103 --pep-base-url=<URL> Base URL for PEP references (default
104 "https://peps.python.org/").
105 --pep-file-url-template=<URL>
106 Template for PEP file part of URL. (default
107 "pep-%04d")
108 --rfc-references Recognize and link to standalone RFC references (like
109 "RFC 822").
110 --rfc-base-url=<URL> Base URL for RFC references (default
111 "https://tools.ietf.org/html/").
112 --tab-width=<width> Set number of spaces for tab expansion (default 8).
113 --trim-footnote-reference-space
114 Remove spaces before footnote references.
115 --leave-footnote-reference-space
116 Leave spaces before footnote references.
117 --syntax-highlight=<format>
118 Token name set for parsing code with Pygments: one of
119 "long", "short", or "none" (no parsing). Default is
120 "long".
121 --smart-quotes=<yes/no/alt>
122 Change straight quotation marks to typographic form:
123 one of "yes", "no", "alt[ernative]" (default "no").
124 --smartquotes-locales=<language:quotes[,language:quotes,...]>
125 Characters to use as "smart quotes" for <language>.
126 --word-level-inline-markup
127 Inline markup recognized at word boundaries only
128 (adjacent to punctuation or whitespace). Force
129 character-level inline markup recognition with "\ "
130 (backslash + space). Default.
131 --character-level-inline-markup
132 Inline markup recognized anywhere, regardless of
133 surrounding characters. Backslash-escapes must be used
134 to avoid unwanted markup recognition. Useful for East
135 Asian languages. Experimental.
136
137 Standalone Reader Options
138 -------------------------
139 --no-doc-title Disable the promotion of a lone top-level section
140 title to document title (and subsequent section title
141 to document subtitle promotion; enabled by default).
142 --no-doc-info Disable the bibliographic field list transform
143 (enabled by default).
144 --section-subtitles Activate the promotion of lone subsection titles to
145 section subtitles (disabled by default).
146 --no-section-subtitles Deactivate the promotion of lone subsection titles.
147
148 HTML Writer Options
149 -------------------
150 --template=<file> Template file. (UTF-8 encoded, default: [...])
151 --stylesheet=<URL[,URL,...]>
152 Comma separated list of stylesheet URLs. Overrides
153 previous --stylesheet and --stylesheet-path settings.
154 --stylesheet-path=<file[,file,...]>
155 Comma separated list of stylesheet paths. Relative
156 paths are expanded if a matching file is found in the
157 --stylesheet-dirs. With --link-stylesheet, the path is
158 rewritten relative to the output HTML file. (default:
159 "minimal.css,plain.css")
160 --stylesheet-dirs=<dir[,dir,...]>
161 Comma-separated list of directories where stylesheets
162 are found. Used by --stylesheet-path when expanding
163 relative path arguments. (default: [...])
164 --embed-stylesheet Embed the stylesheet(s) in the output HTML file. The
165 stylesheet files must be accessible during processing.
166 (default)
167 --link-stylesheet Link to the stylesheet(s) in the output HTML file.
168 --initial-header-level=<level>
169 Specify the initial header level. Does not affect
170 document title & subtitle (see --no-doc-title).
171 (default: 2 for "<h2>")
172 --footnote-references=<format>
173 Format for footnote references: one of "superscript"
174 or "brackets". (default: "brackets")
175 --attribution=<format> Format for block quote attributions: one of "dash"
176 (em-dash prefix), "parentheses"/"parens", or "none".
177 (default: "dash")
178 --compact-lists Remove extra vertical whitespace between items of
179 "simple" bullet lists and enumerated lists. (default)
180 --no-compact-lists Disable compact simple bullet and enumerated lists.
181 --compact-field-lists Remove extra vertical whitespace between items of
182 simple field lists. (default)
183 --no-compact-field-lists
184 Disable compact simple field lists.
185 --table-style=<style> Class value(s) assigned to all tables. Defined styles:
186 borderless, booktabs, align-left, align-center, align-
187 right, colwidths-auto, colwidths-grid.
188 --math-output=<format [option(s)]>
189 Math output format (one of "MathML", "HTML",
190 "MathJax", or "LaTeX") and option(s). (default:
191 "MathML")
192 --xml-declaration Prepend an XML declaration.
193 --no-xml-declaration Omit the XML declaration (default).
194 --cloak-email-addresses
195 Obfuscate email addresses to confuse harvesters while
196 still keeping email links usable with standards-
197 compliant browsers.
198
199 HTML5 Writer Options
200 --------------------
201 --image-loading=<strategy>
202 Suggest at which point images should be loaded:
203 "embed", "link" (default), or "lazy".
204 --section-self-link Append a self-link to section headings.
205 --no-section-self-link Do not append a self-link to section headings.
206 (default)
207
208 Docutils Application Options
209 ----------------------------
210 Reader, writer, and parser settings influence the available options.
211 Example: use `--help --writer=latex` to see LaTeX writer options.
212
213 --reader=<reader> Reader name (currently: "standalone").
214 --parser=<parser> Parser name (currently: "rst").
215 --writer=<writer> Writer name (currently: "html5").