~ubuntu-branches/ubuntu/karmic/python-docutils/karmic

« back to all changes in this revision

Viewing changes to docs/config.txt

  • Committer: Bazaar Package Importer
  • Author(s): martin f. krafft
  • Date: 2006-07-10 11:45:05 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060710114505-otkhqcslevewxmz5
Tags: 0.4-3
Added build dependency on python-central (closes: #377580).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
==============================
2
 
 Docutils Configuration Files
3
 
==============================
4
 
 
5
 
:Author: David Goodger
6
 
:Contact: goodger@python.org
7
 
:Revision: $Revision: 1.12 $
8
 
:Date: $Date: 2004/04/28 21:49:53 $
9
 
:Copyright: This document has been placed in the public domain.
10
 
 
11
 
.. contents::
12
 
 
13
 
.. Cross-reference command-line options with configuration file
14
 
   settings?  Make alphabetical indexes of both.
15
 
 
16
 
Configuration files are used for persistent customization; they can be
17
 
set once and take effect every time you use a front-end tool.
18
 
Configuration file settings override the built-in defaults, and
19
 
command-line options override all.
20
 
 
21
 
By default, Docutils checks the following places for configuration
22
 
files, in the following order:
23
 
 
24
 
1. ``/etc/docutils.conf``: This is a system-wide configuration file,
25
 
   applicable to all Docutils processing on the system.
26
 
 
27
 
2. ``./docutils.conf``: This is a project-specific configuration file,
28
 
   located in the current directory.  The Docutils front end has to be
29
 
   executed from the directory containing this configuration file for
30
 
   it to take effect (note that this may have nothing to do with the
31
 
   location of the source files).  Settings in the project-specific
32
 
   configuration file will override corresponding settings in the
33
 
   system-wide file.
34
 
 
35
 
3. ``~/.docutils``: This is a user-specific configuration file,
36
 
   located in the user's home directory.  Settings in this file will
37
 
   override corresponding settings in both the system-wide and
38
 
   project-specific configuration files.
39
 
 
40
 
If more than one configuration file is found, all will be read but
41
 
later entries will override earlier ones.  For example, a "stylesheet"
42
 
entry in a user-specific configuration file will override a
43
 
"stylesheet" entry in the system-wide file.
44
 
 
45
 
The default implicit config file paths can be overridden by the
46
 
``DOCUTILSCONFIG`` environment variable.  ``DOCUTILSCONFIG`` should
47
 
contain a colon-separated (semicolon-separated on Windows) sequence of
48
 
config file paths to search for; leave it empty to disable implicit
49
 
config files altogether.  Tilde-expansion is performed on paths.
50
 
Paths are interpreted relative to the current working directory.
51
 
Empty path items are ignored.
52
 
 
53
 
In addition, a configuration file may be explicitly specified with the
54
 
"--config" command-line option.  This configuration file is read after
55
 
the three implicit ones listed above (or the ones defined by the
56
 
``DOCUTILSCONFIG`` environment variable), and its entries will have
57
 
priority.
58
 
 
59
 
 
60
 
-------------------------
61
 
Configuration File Syntax
62
 
-------------------------
63
 
 
64
 
Configuration files use the standard ConfigParser.py_ Python_ module.
65
 
From its documentation:
66
 
 
67
 
    The configuration file consists of sections, lead by a "[section]"
68
 
    header and followed by "name: value" entries, with continuations
69
 
    in the style of `RFC 822`_; "name=value" is also accepted.  Note
70
 
    that leading whitespace is removed from values.  ...  Lines
71
 
    beginning with "#" or ";" are ignored and may be used to provide
72
 
    comments.
73
 
 
74
 
.. Note:: No format string interpolation is done.
75
 
 
76
 
Configuration file entry names correspond to internal runtime
77
 
settings.  Underscores ("_") and hyphens ("-") can be used
78
 
interchangably in entry names; hyphens are automatically converted to
79
 
underscores.
80
 
 
81
 
For on/off switch settings (booleans), the following values are
82
 
recognized:
83
 
 
84
 
* On: "true", "yes", "on", "1"
85
 
* Off: "false", "no", "off", "0", "" (no value)
86
 
 
87
 
 
88
 
-------------------------------------
89
 
Configuration File Sections & Entries
90
 
-------------------------------------
91
 
 
92
 
Below are the Docutils runtime settings, listed by config file
93
 
section.  Any setting may be specified in any section, but only
94
 
settings from active sections will be used.  Sections correspond to
95
 
Docutils components (module name or alias; section names are always in
96
 
lowercase letters).  Each `Docutils application`_ uses a specific set
97
 
of components; corresponding configuration file sections are applied
98
 
when the application is used.  Configuration sections are applied in
99
 
general-to-specific order, as follows:
100
 
 
101
 
1. `[general]`_
102
 
 
103
 
2. `[parsers]`_, parser dependencies, and the section specific to the
104
 
   Parser used ("[... parser]").  Currently, only `[restructuredtext
105
 
   parser]`_ is applicable.
106
 
 
107
 
3. `[readers]`_, reader dependencies, and the section specific to the
108
 
   Reader used ("[... reader]").  For example, `[pep reader]`_ depends
109
 
   on `[standalone reader]`_.
110
 
 
111
 
4. `[writers]`_, writer dependencies, and the section specific to the
112
 
   Writer used ("[... writer]").  For example, `[pep_html writer]`_
113
 
   depends on `[html4css1 writer]`_.
114
 
 
115
 
5. `[applications]`_, application dependencies, and the section
116
 
    specific to the Application (front-end tool) in use
117
 
    ("[... application]").
118
 
 
119
 
Since any setting may be specified in any section, this ordering
120
 
allows component- or application-specific overrides of earlier
121
 
settings.  For example, there may be Reader-specific overrides of
122
 
general settings; Writer-specific overrides of Parser settings;
123
 
Application-specific overrides of Writer settings; and so on.
124
 
 
125
 
If multiple configuration files are applicable, the process is
126
 
completed (all sections are applied in the order given) for each one
127
 
before going on to the next.  For example, a "[pep_html writer]
128
 
stylesheet" setting in an earlier configuration file would be
129
 
overridden by an "[html4css1 writer] stylesheet" setting in a later
130
 
file.
131
 
 
132
 
Some knowledge of Python_ is assumed for some attributes.
133
 
 
134
 
.. _ConfigParser.py:
135
 
   http://www.python.org/doc/current/lib/module-ConfigParser.html
136
 
.. _Python: http://www.python.org/
137
 
.. _RFC 822: http://www.rfc-editor.org/rfc/rfc822.txt
138
 
.. _Docutils application: tools.html
139
 
 
140
 
 
141
 
[general]
142
 
=========
143
 
 
144
 
Settings in the "[general]" section are always applied.
145
 
 
146
 
_`datestamp`
147
 
    Include a time/datestamp in the document footer.  Contains a
148
 
    format string for Python's ``time.strftime``.  See the `time
149
 
    module documentation`__.
150
 
 
151
 
    Default: None.  Options: ``--date, -d, --time, -t,
152
 
    --no-datestamp``.
153
 
 
154
 
    Configuration file entry examples::
155
 
 
156
 
        # Equivalent to --date command-line option, results in
157
 
        # ISO 8601 extended format datestamp, e.g. "2001-12-21":
158
 
        datestamp: %Y-%m-%d
159
 
 
160
 
        # Equivalent to --time command-line option, results in
161
 
        # date/timestamp like "2001-12-21 18:43 UTC":
162
 
        datestamp: %Y-%m-%d %H:%M UTC
163
 
 
164
 
        # Disables datestamp; equivalent to --no-datestamp:
165
 
        datestamp:
166
 
 
167
 
    __ http://www.python.org/doc/current/lib/module-time.html
168
 
 
169
 
_`debug`
170
 
    Report debug-level system messages.
171
 
 
172
 
    Default: don't (None).  Options: ``--debug, --no-debug``.
173
 
 
174
 
_`dump_internals`
175
 
    At the end of processing, write all internal attributes of the
176
 
    document (``document.__dict__``) to stderr.
177
 
 
178
 
    Default: don't (None).  Options: ``--dump-internals`` (hidden, for
179
 
    development use only).
180
 
 
181
 
_`dump_pseudo_xml`
182
 
    At the end of processing, write the pseudo-XML representation of
183
 
    the document to stderr.
184
 
 
185
 
    Default: don't (None).  Options: ``--dump-pseudo-xml`` (hidden,
186
 
    for development use only).
187
 
 
188
 
_`dump_settings`
189
 
    At the end of processing, write all Docutils settings to stderr.
190
 
 
191
 
    Default: don't (None).  Options: ``--dump-settings`` (hidden, for
192
 
    development use only).
193
 
 
194
 
_`dump_transforms`
195
 
    At the end of processing, write a list of all transforms applied
196
 
    to the document to stderr.
197
 
 
198
 
    Default: don't (None).  Options: ``--dump-transforms`` (hidden,
199
 
    for development use only).
200
 
 
201
 
_`error_encoding`
202
 
    The text encoding for error output.
203
 
 
204
 
    Default: "ascii".  Options: ``--error-encoding, -e``.
205
 
 
206
 
_`error_encoding_error_handler`
207
 
    The encoding error handler for unencodable characters in error
208
 
    output.  Acceptable values are the same as for the "error"
209
 
    parameter of Python's ``encode`` string method.
210
 
 
211
 
    Default: "backslashreplace" for Python 2.3 and later; "replace"
212
 
    otherwise.  Options: ``--error-encoding-error-handler,
213
 
    --error-encoding, -e``.
214
 
 
215
 
_`exit_level`
216
 
    A system message level threshold; non-halting system messages at
217
 
    or above this level will produce a non-zero exit status at normal
218
 
    exit.  Exit status is the maximum system message level plus 10 (11
219
 
    for INFO, etc.).
220
 
 
221
 
    Default: disabled (5).  Options: ``--exit``.
222
 
 
223
 
_`expose_internals`
224
 
    List of internal attribues to expose as external attributes (with
225
 
    "internal:" namespace prefix).  To specify multiple attributes in
226
 
    configuration files, use colons to separate names; on the command
227
 
    line, the option may be used more than once.
228
 
 
229
 
    Default: don't (None).  Options: ``--expose-internal-attribute``
230
 
    (hidden, for development use only).
231
 
 
232
 
_`footnote_backlinks`
233
 
    Enable or disable backlinks from footnotes and citations to their
234
 
    references.
235
 
 
236
 
    Default: enabled (1).  Options: ``--footnote-backlinks,
237
 
    --no-footnote-backlinks``.
238
 
 
239
 
_`generator`
240
 
    Include a "Generated by Docutils" credit and link in the document
241
 
    footer.
242
 
 
243
 
    Default: off (None).  Options: ``--generator, -g,
244
 
    --no-generator``.
245
 
 
246
 
_`halt_level`
247
 
    The threshold at or above which system messages are converted to
248
 
    exceptions, halting execution immediately.
249
 
 
250
 
    Default: severe (4).  Options: ``--halt, --strict``.
251
 
 
252
 
_`input_encoding`
253
 
    The text encoding for input.
254
 
 
255
 
    Default: auto-detect (None).  Options: ``--input-encoding, -i``.
256
 
 
257
 
_`language_code`
258
 
    `ISO 639`_ 2-letter language code (3-letter codes used only if no
259
 
    2-letter code exists).
260
 
 
261
 
    Default: English ("en").  Options: ``--language, -l``.
262
 
 
263
 
_`output_encoding`
264
 
    The text encoding for output.
265
 
 
266
 
    Default: "UTF-8".  Options: ``--output-encoding, -o``.
267
 
 
268
 
_`output_encoding_error_handler`
269
 
    The encoding error handler for unencodable characters in output.
270
 
    Acceptable values are the same as for the "error" parameter of
271
 
    Python's ``encode`` string method.
272
 
 
273
 
    Default: "strict".  Options: ``--output-encoding-error-handler,
274
 
    --output-encoding, -o``.
275
 
 
276
 
_`report_level`
277
 
    Verbosity threshold at or above which system messages are
278
 
    reported.
279
 
 
280
 
    Default: warning (2).  Options: ``--report, -r, --verbose, -v,
281
 
    --quiet, -q``.
282
 
 
283
 
_`sectnum_xform`
284
 
    Enable or disable the section numbering transform
285
 
    (docutils.transforms.parts.SectNum).
286
 
 
287
 
    Default: enabled (1).  Options: ``--no-section-numbering``.
288
 
 
289
 
_`source_link`
290
 
    Include a "View document source" link in the document footer.  URL
291
 
    will be relative to the destination.
292
 
 
293
 
    Default: don't (None).  Options: ``--source-link, -s,
294
 
    --no-source-link``.
295
 
 
296
 
_`source_url`
297
 
    An explicit URL for a "View document source" link, used verbatim.
298
 
 
299
 
    Default: compute if source_link (None).  Options: ``--source-url,
300
 
    --no-source-link``.
301
 
 
302
 
_`toc_backlinks`
303
 
    Enable backlinks from section titles to table of contents entries
304
 
    ("entry"), to the top of the TOC ("top"), or disable ("none").
305
 
 
306
 
    Default: "entry".  Options: ``--toc-entry-backlinks,
307
 
    --toc-top-backlinks, --no-toc-backlinks``.
308
 
 
309
 
_`traceback`
310
 
    Enable Python tracebacks when an error occurs.
311
 
 
312
 
    Default: disabled (None).  Options: ``--traceback,
313
 
    --no-traceback``.
314
 
 
315
 
_`warning_stream`
316
 
    Path to a file for the output of system messages (warnings)
317
 
    [#pwd]_.
318
 
 
319
 
    Default: stderr (None).  Options: ``--warnings``.
320
 
 
321
 
 
322
 
[parsers]
323
 
---------
324
 
 
325
 
Docutils currently supports only one parser, for reStructuredText.
326
 
 
327
 
 
328
 
[restructuredtext parser]
329
 
`````````````````````````
330
 
 
331
 
_`pep_references`
332
 
    Recognize and link to PEP references (like "PEP 258").
333
 
 
334
 
    Default: disabled (None); enabled (1) in PEP Reader.  Options:
335
 
    ``--pep-references``.
336
 
 
337
 
_`rfc_references`
338
 
    Recognize and link to RFC references (like "RFC 822").
339
 
 
340
 
    Default: disabled (None); enabled (1) in PEP Reader.  Options:
341
 
    ``--rfc-references``.
342
 
 
343
 
_`tab_width`
344
 
    Number of spaces for hard tab expansion.
345
 
 
346
 
    Default: 8.  Options: ``--tab-width``.
347
 
 
348
 
_`trim-footnote-reference-space`
349
 
    Remove spaces before footnote references.
350
 
 
351
 
    Default: don't (None).  Options:
352
 
    ``--trim-footnote-reference-space``.
353
 
 
354
 
 
355
 
[readers]
356
 
---------
357
 
 
358
 
 
359
 
[standalone reader]
360
 
```````````````````
361
 
 
362
 
_`docinfo_xform`
363
 
    Enable or disable the bibliographic field list transform
364
 
    (docutils.transforms.frontmatter.DocInfo).
365
 
 
366
 
    Default: enabled (1).  Options: ``--no-doc-info``.
367
 
 
368
 
_`doctitle_xform`
369
 
    Enable or disable the promotion of a lone top-level section title
370
 
    to document title (and subsequent section title to document
371
 
    subtitle promotion; docutils.transforms.frontmatter.DocTitle).
372
 
 
373
 
    Default: enabled (1).  Options: ``--no-doc-title``.
374
 
 
375
 
 
376
 
[pep reader]
377
 
````````````
378
 
 
379
 
The `pep_references`_ and `rfc_references`_ options
380
 
(`[restructuredtext parser]`_) are set on by default.
381
 
 
382
 
 
383
 
[python reader]
384
 
```````````````
385
 
 
386
 
Under construction.
387
 
 
388
 
 
389
 
[writers]
390
 
---------
391
 
 
392
 
[docutils_xml writer]
393
 
`````````````````````
394
 
 
395
 
_`doctype_declaration`
396
 
    Generate XML with a DOCTYPE declaration.
397
 
 
398
 
    Default: do (1).  Options: ``--no-doctype``.
399
 
 
400
 
_`indents`
401
 
    Generate XML with indents and newlines.
402
 
 
403
 
    Default: don't (None).  Options: ``--indents``.
404
 
 
405
 
_`newlines`
406
 
    Generate XML with newlines before and after tags.
407
 
 
408
 
    Default: don't (None).  Options: ``--newlines``.
409
 
 
410
 
.. _xml_declaration [docutils_xml writer]:
411
 
 
412
 
xml_declaration
413
 
    Generate XML with an XML declaration.  Also defined for the
414
 
    `HTML Writer`__.
415
 
 
416
 
    .. Caution:: The XML declaration carries text encoding
417
 
       information, without which standard tools may be unable to read
418
 
       the generated XML.
419
 
 
420
 
    Default: do (1).  Options: ``--no-xml-declaration``.
421
 
 
422
 
    __ `xml_declaration [html4css1 writer]`_
423
 
 
424
 
 
425
 
[html4css1 writer]
426
 
``````````````````
427
 
 
428
 
.. _attribution [html4css1 writer]:
429
 
 
430
 
attribution
431
 
    Format for block quote attributions: one of "dash" (em-dash
432
 
    prefix), "parentheses"/"parens", or "none".  Also defined for the
433
 
    `LaTeX Writer`__.
434
 
 
435
 
    Default: "dash".  Options: ``--attribution``.
436
 
 
437
 
    __ `attribution [latex2e writer]`_
438
 
 
439
 
_`compact_lists`
440
 
    Remove extra vertical whitespace between items of bullet lists and
441
 
    enumerated lists, when list items are "simple" (i.e., all items
442
 
    each contain one paragraph and/or one "simple" sublist only).
443
 
 
444
 
    Default: enabled (1).  Options: ``--compact-lists,
445
 
    --no-compact-lists``.
446
 
 
447
 
_`embed_stylesheet`
448
 
    Embed the stylesheet in the output HTML file.  The stylesheet file
449
 
    must be accessible during processing.  The stylesheet is embedded
450
 
    inside a comment, so it must not contain the text "``--``" (two
451
 
    hyphens).
452
 
 
453
 
    Default: link, don't embed (None).  Options: ``--embed-stylesheet,
454
 
    --link-stylesheet``.
455
 
 
456
 
.. _footnote_references [html4css1 writer]:
457
 
 
458
 
footnote_references
459
 
    Format for footnote references, one of "superscript" or
460
 
    "brackets".  Also defined for the `LaTeX Writer`__.
461
 
 
462
 
    Default: "superscript"; "brackets" in PEP/HTML Writer.  Options:
463
 
    ``--footnote-references``.
464
 
 
465
 
    __ `footnote_references [latex2e writer]`_
466
 
 
467
 
_`initial_header_level`
468
 
    The initial level for header elements.  This does not affect the
469
 
    document title & subtitle; see doctitle_xform_.
470
 
 
471
 
    Default: 1 (for "<h1>").  Option: ``--initial-header-level``.
472
 
 
473
 
.. _stylesheet [html4css1 writer]:
474
 
 
475
 
stylesheet
476
 
    CSS stylesheet URL, used verbatim.  Overridden by
477
 
    "stylesheet_path" URL option (``--stylesheet-path``).  Also
478
 
    defined for the `LaTeX Writer`__.
479
 
 
480
 
    Default: "default.css".  Options: ``--stylesheet``.
481
 
 
482
 
    __ `stylesheet [latex2e writer]`_
483
 
 
484
 
.. _stylesheet_path [html4css1 writer]:
485
 
 
486
 
stylesheet_path
487
 
    Path to CSS stylesheet [#pwd]_.  Overrides "stylesheet" URL option
488
 
    (``--stylesheet``).  Path is adjusted relative to the output HTML
489
 
    file.  Also defined for the `LaTeX Writer`__.
490
 
 
491
 
    Default: None.  Options: ``--stylesheet-path``.
492
 
 
493
 
    __ `stylesheet_path [latex2e writer]`_
494
 
 
495
 
.. _xml_declaration [html4css1 writer]:
496
 
 
497
 
xml_declaration
498
 
    Generate XML with an XML declaration.  Also defined for the
499
 
    `Docutils XML Writer`__.
500
 
 
501
 
    .. Caution:: The XML declaration carries text encoding
502
 
       information, without which standard tools may be unable to read
503
 
       the generated XML.
504
 
 
505
 
    Default: do (1).  Options: ``--no-xml-declaration``.
506
 
 
507
 
    __ `xml_declaration [docutils_xml writer]`_
508
 
 
509
 
 
510
 
[pep_html writer]
511
 
.................
512
 
 
513
 
The PEP/HTML Writer derives from the standard HTML Writer, and shares
514
 
all settings defined in the `[html4css1 writer]`_ section.  The
515
 
"[html4css1 writer]" section is processed before "[pep_html writer]".
516
 
 
517
 
_`no_random`
518
 
    Workaround for platforms which core-dump on "``import random``".
519
 
 
520
 
    Default: random enabled (None).  Options: ``--no-random``
521
 
    (hidden).
522
 
 
523
 
_`pep_home`
524
 
    Home URL prefix for PEPs.
525
 
 
526
 
    Default: current directory (".").  Options: ``--pep-home``.
527
 
 
528
 
_`template`
529
 
    Path to PEP template file [#pwd]_.
530
 
 
531
 
    Default: "pep-html-template" (in current directory).  Options:
532
 
    ``--template``.
533
 
 
534
 
_`python_home`
535
 
    Python's home URL.
536
 
 
537
 
    Default: parent directory ("..").  Options: ``--python-home``.
538
 
 
539
 
 
540
 
[latex2e writer]
541
 
````````````````
542
 
 
543
 
_`use_latex_toc`
544
 
    To get pagenumbers in the table of contents the table of contents
545
 
    must be generated by latex. Usually latex must be run twice to get
546
 
    numbers correct.
547
 
 
548
 
    *Note:* LaTeX will number the sections, which might be a bug in
549
 
    this case.
550
 
 
551
 
    Default: off.  Option: ``--use-latex-toc``.
552
 
 
553
 
.. XXX Missing: use_latex_docinfo
554
 
 
555
 
_`use_latex_footnotes`
556
 
    Use LaTeX-footnotes not a figure simulation. This might give no
557
 
    Hyperrefs on /to footnotes, but should be able to handle an
558
 
    unlimited number of footnotes.
559
 
 
560
 
    Default: off.  Option: ``--use-latex-footnotes``.
561
 
 
562
 
_`hyperlink_color`
563
 
    Color of any hyperlinks embedded in text. Use "0" to disable
564
 
    coloring of links.
565
 
 
566
 
    Default: "blue", use "0" to disable.  Option:
567
 
    ``--hyperlink-color``.
568
 
 
569
 
_`documentclass`
570
 
    Specify latex documentclass, *but* beaware that books have chapters
571
 
    articles not.
572
 
 
573
 
    Default: "article".  Option: ``--documentclass``.
574
 
 
575
 
_`documentoptions`
576
 
    Specify document options.  Multiple options can be given, separated by
577
 
    commas.
578
 
 
579
 
    Default is "10pt".  Option: ``--documentoptions``.
580
 
 
581
 
.. _stylesheet [latex2e writer]:
582
 
 
583
 
stylesheet
584
 
    Specify a stylesheet file. The file will be ``input`` by latex in
585
 
    the document header. If this is set to "" disables generation of
586
 
    input latex command.  Also defined for the `HTML Writer`__.
587
 
 
588
 
    Default: no stylesheet ("").  Option: ``--stylesheet``.
589
 
 
590
 
    __ `stylesheet [html4css1 writer]`_
591
 
 
592
 
.. _stylesheet_path [latex2e writer]:
593
 
 
594
 
stylesheet_path
595
 
    Path to stylesheet [#pwd]_.  Overrides "stylesheet" setting
596
 
    (``--stylesheet``).  XXX LaTeX semantics?  Also defined for the
597
 
    `HTML Writer`__.
598
 
 
599
 
    Default: None.  Option: ``--stylesheet-path``.
600
 
 
601
 
    __ `stylesheet_path [html4css1 writer]`_
602
 
 
603
 
.. XXX Missing: embed_stylesheet
604
 
 
605
 
.. _footnote_references [latex2e writer]:
606
 
 
607
 
footnote_references
608
 
    Format for footnote references: one of "superscript" or
609
 
    "brackets".  Also defined for the `HTML Writer`__.
610
 
 
611
 
    Default is "brackets".  Option: ``--footnote-references``.
612
 
 
613
 
    __ `footnote_references [html4css1 writer]`_
614
 
 
615
 
.. _attribution [latex2e writer]:
616
 
 
617
 
attribution
618
 
    Format for block quote attributions, the same as for the
619
 
    html-writer: one of "dash" (em-dash prefix),
620
 
    "parentheses"/"parens" or "none".  Also defined for the `HTML
621
 
    Writer`__.
622
 
 
623
 
    Default: "dash".  Option: ``--attribution``.
624
 
 
625
 
    __ `attribution [html4css1 writer]`_
626
 
 
627
 
_`compound_enumerators`
628
 
    Enable or disable compound enumerators for nested enumerated lists
629
 
    (e.g. "1.2.a.ii").
630
 
 
631
 
    Default: disabled (None).  Options: ``--compound-enumerators``,
632
 
    ``--no-compound-enumerators``.
633
 
 
634
 
_`section_prefix_for_enumerators`
635
 
    Enable or disable section ("." subsection ...) prefixes for
636
 
    compound enumerators.  This has no effect unless
637
 
    `compound_enumerators`_ are enabled.
638
 
    
639
 
    Default: disabled (None).  Options:
640
 
    ``--section-prefix-for-enumerators``,
641
 
    ``--no-section-prefix-for-enumerators``.
642
 
 
643
 
_`section_enumerator_separator`
644
 
    The separator between section number prefix and enumerator for
645
 
    compound enumerated lists (see `compound_enumerators`_).
646
 
 
647
 
    Generally it isn't recommended to use both sub-sections and nested
648
 
    enumerated lists with compound enumerators.  This setting avoids
649
 
    ambiguity in the situation where a section "1" has a list item
650
 
    enumerated "1.1", and subsection "1.1" has list item "1".  With a
651
 
    separator of ".", these both would translate into a final compound
652
 
    enumerator of "1.1.1".  With a separator of "-", we get the
653
 
    unambiguous "1-1.1" and "1.1-1".
654
 
 
655
 
    Default: "-".  Option: ``--section-enumerator-separator``.
656
 
 
657
 
 
658
 
[pseudoxml writer]
659
 
``````````````````
660
 
 
661
 
No settings are defined for this Writer.
662
 
 
663
 
 
664
 
[applications]
665
 
--------------
666
 
 
667
 
[buildhtml application]
668
 
```````````````````````
669
 
 
670
 
_`prune`
671
 
    List of directories not to process.  To specify multiple
672
 
    directories in configuration files, use colon-separated paths; on
673
 
    the command line, the option may be used more than once.
674
 
 
675
 
    Default: none ([]).  Options: ``--prune``.
676
 
 
677
 
_`recurse`
678
 
    Recursively scan subdirectories, or ignore subdirectories.
679
 
 
680
 
    Default: recurse (1).  Options: ``--recurse, --local``.
681
 
 
682
 
_`silent`
683
 
    Work silently (no progress messages).  Independent of
684
 
    "report_level".
685
 
 
686
 
    Default: show progress (None).  Options: ``--silent``.
687
 
 
688
 
 
689
 
[docfactory application]
690
 
````````````````````````
691
 
 
692
 
(To be completed.)
693
 
 
694
 
 
695
 
Other Settings
696
 
==============
697
 
 
698
 
These settings are only effective as command-line options, positional
699
 
arguments, or for internal use; setting them in configuration files
700
 
has no effect.
701
 
 
702
 
_`config`
703
 
    Path to a configuration file to read (if it exists) [#pwd]_.
704
 
    Settings may override defaults and earlier settings.  The config
705
 
    file is processed immediately.  Multiple ``--config`` options may
706
 
    be specified; each will be processed in turn.
707
 
 
708
 
    Filesystem path settings contained within the config file will be
709
 
    interpreted relative to the config file's location (*not* relative
710
 
    to the current working directory).
711
 
 
712
 
    Default: None.  Options: ``--config``.
713
 
 
714
 
_`_directories`
715
 
    (``buildhtml.py`` front end.)  List of paths to source
716
 
    directories, set from positional arguments.
717
 
 
718
 
    Default: current working directory (None).  No command-line
719
 
    options.
720
 
 
721
 
_`_disable_config`
722
 
    Prevent standard configuration files from being read.  For
723
 
    internal use only.
724
 
 
725
 
    Default: config files enabled (None).  No command-line options.
726
 
 
727
 
_`_destination`
728
 
    Path to output destination, set from positional arguments.
729
 
 
730
 
    Default: stdout (None).  No command-line options.
731
 
 
732
 
_`_source`
733
 
    Path to input source, set from positional arguments.
734
 
 
735
 
    Default: stdin (None).  No command-line options.
736
 
 
737
 
 
738
 
.. _ISO 639: http://lcweb.loc.gov/standards/iso639-2/englangn.html
739
 
 
740
 
.. [#pwd] Path relative to the working directory of the process at
741
 
   launch.
742
 
 
743
 
 
744
 
------------------------------
745
 
Old-Format Configuration Files
746
 
------------------------------
747
 
 
748
 
Formerly, Docutils configuration files contained a single "[options]"
749
 
section only.  This was found to be inflexible, and in August 2003
750
 
Docutils adopted the current component-based configuration file
751
 
sections as described above.  Docutils will still recognize the old
752
 
"[options]" section, but complains with a deprecation warning.
753
 
 
754
 
To convert existing config files, the easiest way is to change the
755
 
section title: change "[options]" to "[general]".  Most settings
756
 
haven't changed.  The only ones to watch out for are these:
757
 
 
758
 
=====================  =====================================
759
 
Old-Format Setting     New Section & Setting
760
 
=====================  =====================================
761
 
pep_stylesheet         [pep_html writer] stylesheet
762
 
pep_stylesheet_path    [pep_html writer] stylesheet_path
763
 
pep_template           [pep_html writer] template
764
 
=====================  =====================================