blob: 777633248b6933cd47bc8213d2c3b233dfaa1728 [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001# -*- coding: utf-8 -*-
2#
3# Python documentation build configuration file
4#
Georg Brandl7155a092008-01-16 20:27:56 +00005# This file is execfile()d with the current directory set to its containing dir.
6#
Georg Brandl8ec7f652007-08-15 14:28:01 +00007# The contents of this file are pickled, so don't put values in the namespace
8# that aren't pickleable (module imports are okay, they're removed automatically).
Georg Brandleee1fc52007-12-16 19:36:51 +00009
10# General configuration
11# ---------------------
Georg Brandl8ec7f652007-08-15 14:28:01 +000012
Georg Brandl7155a092008-01-16 20:27:56 +000013# General substitutions.
14project = 'Python'
15copyright = '1990-2007, Python Software Foundation'
16
Georg Brandl8ec7f652007-08-15 14:28:01 +000017# The default replacements for |version| and |release|.
Georg Brandl7155a092008-01-16 20:27:56 +000018# If '<auto>', Sphinx looks for the Include/patchlevel.h file in the current Python
Georg Brandl8ec7f652007-08-15 14:28:01 +000019# source tree and replaces the values accordingly.
20#
21# The short X.Y version.
22# version = '2.6'
Georg Brandl7155a092008-01-16 20:27:56 +000023version = '<auto>'
Georg Brandl8ec7f652007-08-15 14:28:01 +000024# The full version, including alpha/beta/rc tags.
25# release = '2.6a0'
Georg Brandl7155a092008-01-16 20:27:56 +000026release = '<auto>'
Georg Brandl8ec7f652007-08-15 14:28:01 +000027
28# There are two options for replacing |today|: either, you set today to some
29# non-false value, then it is used:
30today = ''
31# Else, today_fmt is used as the format for a strftime call.
32today_fmt = '%B %d, %Y'
33
Georg Brandl8ec7f652007-08-15 14:28:01 +000034# List of files that shouldn't be included in the build.
35unused_files = [
36 'whatsnew/2.0.rst',
37 'whatsnew/2.1.rst',
38 'whatsnew/2.2.rst',
39 'whatsnew/2.3.rst',
40 'whatsnew/2.4.rst',
41 'whatsnew/2.5.rst',
42 'maclib/scrap.rst',
43 'library/xmllib.rst',
44 'library/xml.etree.rst',
45]
46
Georg Brandl7155a092008-01-16 20:27:56 +000047# Relative filename of the reference count data file.
48refcount_file = 'data/refcounts.dat'
49
Georg Brandl8ec7f652007-08-15 14:28:01 +000050# If true, '()' will be appended to :func: etc. cross-reference text.
51add_function_parentheses = True
52
53# If true, the current module name will be prepended to all description
54# unit titles (such as .. function::).
55add_module_names = True
Georg Brandleee1fc52007-12-16 19:36:51 +000056
57
58# Options for HTML output
59# -----------------------
60
Georg Brandleee1fc52007-12-16 19:36:51 +000061# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
62# using the given strftime format.
63html_last_updated_fmt = '%b %d, %Y'
64
65# If true, SmartyPants will be used to convert quotes and dashes to
66# typographically correct entities.
67html_use_smartypants = True
68
Georg Brandl7155a092008-01-16 20:27:56 +000069# Content template for the index page, filename relative to this file.
70html_index = 'tools/sphinxext/indexcontent.html'
71
72# Custom sidebar templates, filenames relative to this file.
73html_sidebars = {
74 'index': 'tools/sphinxext/indexsidebar.html',
75}
76
77# Additional templates that should be rendered to pages.
78html_additional_pages = {
79 'download': 'tools/sphinxext/download.html',
80}
81
82# Output file base name for HTML help builder.
83htmlhelp_basename = 'pydoc'
84
Georg Brandleee1fc52007-12-16 19:36:51 +000085
86# Options for LaTeX output
87# ------------------------
88
Georg Brandl7155a092008-01-16 20:27:56 +000089# The paper size ('letter' or 'a4').
90latex_paper_size = 'a4'
Georg Brandleee1fc52007-12-16 19:36:51 +000091
Georg Brandl7155a092008-01-16 20:27:56 +000092# The font size ('10pt', '11pt' or '12pt').
93latex_font_size = '10pt'
94
95# Grouping the document tree into LaTeX files. List of tuples
96# (source start file, target name, title, author, document class [howto/manual]).
97_stdauthor = r'Guido van Rossum\\Fred L. Drake, Jr., editor'
98latex_documents = [
99 ('c-api/index.rst', 'c-api.tex',
100 'The Python/C API', _stdauthor, 'manual'),
101 ('distutils/index.rst', 'distutils.tex',
102 'Distributing Python Modules', _stdauthor, 'manual'),
103 ('documenting/index.rst', 'documenting.tex',
104 'Documenting Python', 'Georg Brandl', 'manual'),
105 ('extending/index.rst', 'extending.tex',
106 'Extending and Embedding Python', _stdauthor, 'manual'),
107 ('install/index.rst', 'install.tex',
108 'Installing Python Modules', _stdauthor, 'manual'),
109 ('library/index.rst', 'library.tex',
110 'The Python Library Reference', _stdauthor, 'manual'),
111 ('reference/index.rst', 'reference.tex',
112 'The Python Language Reference', _stdauthor, 'manual'),
113 ('tutorial/index.rst', 'tutorial.tex',
114 'Python Tutorial', _stdauthor, 'manual'),
115 ('using/index.rst', 'using.tex',
116 'Using Python', _stdauthor, 'manual'),
117 ('whatsnew/' + version + '.rst', 'whatsnew.tex',
118 'What\'s New in Python', 'A. M. Kuchling', 'howto'),
119]
120# Collect all HOWTOs individually
121import os
122latex_documents.extend(('howto/' + fn, 'howto-' + fn[:-4] + '.tex',
123 'HOWTO', _stdauthor, 'howto')
124 for fn in os.listdir('howto')
125 if fn.endswith('.rst') and fn != 'index.rst')
126
127# Additional stuff for the LaTeX preamble.
128latex_preamble = r'''
129\authoraddress{
130 \strong{Python Software Foundation}\\
131 Email: \email{docs@python.org}
132}
133'''
134
135# Documents to append as an appendix to all manuals.
136latex_appendices = ['glossary.rst', 'about.rst', 'license.rst', 'copyright.rst']