blob: 43da14e1925270c49c09f0c3a08ef2a2b3aff461 [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001.. highlightlang:: rest
2
3The Sphinx build system
4=======================
5
6.. XXX: intro...
7
8.. _doc-build-config:
9
10The build configuration file
11----------------------------
12
13The documentation root, that is the ``Doc`` subdirectory of the source
14distribution, contains a file named ``conf.py``. This file is called the "build
15configuration file", and it contains several variables that are read and used
16during a build run.
17
18These variables are:
19
20version : string
21 A string that is used as a replacement for the ``|version|`` reST
22 substitution. It should be the Python version the documentation refers to.
23 This consists only of the major and minor version parts, e.g. ``2.5``, even
24 for version 2.5.1.
25
26release : string
27 A string that is used as a replacement for the ``|release|`` reST
28 substitution. It should be the full version string including
29 alpha/beta/release candidate tags, e.g. ``2.5.2b3``.
30
31Both ``release`` and ``version`` can be ``'auto'``, which means that they are
32determined at runtime from the ``Include/patchlevel.h`` file, if a complete
33Python source distribution can be found, or else from the interpreter running
34Sphinx.
35
36today_fmt : string
37 A ``strftime`` format that is used to format a replacement for the
38 ``|today|`` reST substitution.
39
40today : string
41 A string that can contain a date that should be written to the documentation
42 output literally. If this is nonzero, it is used instead of
43 ``strftime(today_fmt)``.
44
45unused_files : list of strings
46 A list of reST filenames that are to be disregarded during building. This
47 could be docs for temporarily disabled modules or documentation that's not
48 yet ready for public consumption.
49
Georg Brandlb19be572007-12-29 10:57:00 +000050add_function_parentheses : bool
51 If true, ``()`` will be appended to the content of ``:func:``, ``:meth:`` and
52 ``:cfunc:`` cross-references.
53
54add_module_names : bool
55 If true, the current module name will be prepended to all description unit
56 titles (such as ``.. function::``).
57
58Builder-specific variables
59^^^^^^^^^^^^^^^^^^^^^^^^^^
60
61html_download_base_url : string
62 The base URL for download links on the download page.
63
64html_last_updated_fmt : string
Georg Brandl8ec7f652007-08-15 14:28:01 +000065 If this is not an empty string, it will be given to ``time.strftime()`` and
66 written to each generated output file after "last updated on:".
67
Georg Brandlb19be572007-12-29 10:57:00 +000068html_use_smartypants : bool
Georg Brandl8ec7f652007-08-15 14:28:01 +000069 If true, use SmartyPants to convert quotes and dashes to the typographically
70 correct entities.
71
Georg Brandlb19be572007-12-29 10:57:00 +000072latex_paper_size : "letter" or "a4"
73 The paper size option for the LaTeX document class.
74
75latex_font_size : "10pt", "11pt" or "12pt"
76 The font size option for the LaTeX document class.