Skip to content

Commit 40c5384

Browse files
committed
Preparing 1.5.1 steps 7/16
7. python setup.py build_doc * sync conf.py with Sphinx 1.3
1 parent 5dd0720 commit 40c5384

File tree

1 file changed

+99
-45
lines changed

1 file changed

+99
-45
lines changed

doc/conf.py

Lines changed: 99 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@
99
# Roundup documentation build configuration file, created by
1010
# sphinx-quickstart on Tue Jan 20 17:33:20 2009.
1111
#
12-
# This file is execfile()d with the current directory set to its containing dir.
12+
# This file is execfile()d with the current directory set to its
13+
# containing dir.
1314
#
14-
# The contents of this file are pickled, so don't put values in the namespace
15-
# that aren't pickleable (module imports are okay, they're removed automatically).
15+
# Note that not all possible configuration values are present in this
16+
# autogenerated file.
1617
#
1718
# All configuration values have a default; values that are commented out
1819
# serve to show the default.
1920

20-
import sys, os
21+
import sys
22+
import os
2123

2224

2325
# Read Roundup version by importing it from parent directory,
@@ -35,22 +37,27 @@
3537
sys.path = SYSSAVE
3638

3739

38-
# If your extensions are in another directory, add it here. If the directory
39-
# is relative to the documentation root, use os.path.abspath to make it
40-
# absolute, like shown here.
41-
#sys.path.append(os.path.abspath('.'))
40+
# If extensions (or modules to document with autodoc) are in another directory,
41+
# add these directories to sys.path here. If the directory is relative to the
42+
# documentation root, use os.path.abspath to make it absolute, like shown here.
43+
#sys.path.insert(0, os.path.abspath('.'))
4244

43-
# General configuration
44-
# ---------------------
45+
# -- General configuration ------------------------------------------------
4546

46-
# Add any Sphinx extension module names here, as strings. They can be extensions
47-
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
47+
# If your documentation needs a minimal Sphinx version, state it here.
48+
#needs_sphinx = '1.0'
49+
50+
# Add any Sphinx extension module names here, as strings. They can be
51+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
52+
# ones.
4853
#extensions = ['toctree']
4954

5055
# Add any paths that contain templates here, relative to this directory.
5156
templates_path = ['_templates']
5257

53-
# The suffix of source filenames.
58+
# The suffix(es) of source filenames.
59+
# You can specify multiple suffix as a list of string:
60+
# source_suffix = ['.rst', '.md']
5461
source_suffix = '.txt'
5562

5663
# The encoding of source files.
@@ -74,22 +81,23 @@
7481

7582
# The language for content autogenerated by Sphinx. Refer to documentation
7683
# for a list of supported languages.
77-
#language = None
84+
#
85+
# This is also used if you do content translation via gettext catalogs.
86+
# Usually you set "language" from the command line for these cases.
87+
language = None
7888

7989
# There are two options for replacing |today|: either, you set today to some
8090
# non-false value, then it is used:
8191
#today = ''
8292
# Else, today_fmt is used as the format for a strftime call.
8393
#today_fmt = '%B %d, %Y'
8494

85-
# List of documents that shouldn't be included in the build.
86-
#unused_docs = []
95+
# List of patterns, relative to source directory, that match files and
96+
# directories to ignore when looking for source files.
97+
exclude_patterns = ['_build']
8798

88-
# List of directories, relative to source directory, that shouldn't be searched
89-
# for source files.
90-
exclude_trees = ['.build']
91-
92-
# The reST default role (used for this markup: `text`) to use for all documents.
99+
# The reST default role (used for this markup: `text`) to use for all
100+
# documents.
93101
#default_role = None
94102

95103
# If true, '()' will be appended to :func: etc. cross-reference text.
@@ -106,19 +114,32 @@
106114
# The name of the Pygments (syntax highlighting) style to use.
107115
pygments_style = 'sphinx'
108116

117+
# A list of ignored prefixes for module index sorting.
118+
#modindex_common_prefix = []
119+
120+
# If true, keep warnings as "system message" paragraphs in the built documents.
121+
#keep_warnings = False
109122

110-
# Options for HTML output
111-
# -----------------------
123+
# -- Options for HTML output ----------------------------------------------
112124

125+
#-- pre Sphinx 1.3
113126
# The style sheet to use for HTML and HTML Help pages. A file of that name
114127
# must exist either in Sphinx' static/ path, or in one of the custom paths
115128
# given in html_static_path.
116129
html_style = 'default.css'
117130

118-
# Add any extra paths that contain custom files (such as robots.txt or
119-
# .htaccess) here, relative to this directory. These files are copied
120-
# directly to the root of the documentation.
121-
html_extra_path = ['html_extra']
131+
#-- Sphinx 1.3
132+
# The theme to use for HTML and HTML Help pages. See the documentation for
133+
# a list of builtin themes.
134+
#html_theme = 'alabaster'
135+
136+
# Theme options are theme-specific and customize the look and feel of a theme
137+
# further. For a list of options available for each theme, see the
138+
# documentation.
139+
#html_theme_options = {}
140+
141+
# Add any paths that contain custom themes here, relative to this directory.
142+
#html_theme_path = []
122143

123144
# The name for this set of Sphinx documents. If None, it defaults to
124145
# "<project> v<release> documentation".
@@ -141,6 +162,11 @@
141162
# so a file named "default.css" will overwrite the builtin "default.css".
142163
html_static_path = ['_static']
143164

165+
# Add any extra paths that contain custom files (such as robots.txt or
166+
# .htaccess) here, relative to this directory. These files are copied
167+
# directly to the root of the documentation.
168+
html_extra_path = ['html_extra']
169+
144170
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
145171
# using the given strftime format.
146172
html_last_updated_fmt = '%b %d, %Y'
@@ -152,47 +178,72 @@
152178
# Custom sidebar templates, maps document names to template names.
153179
#html_sidebars = {}
154180

155-
html_collapse_toctree = True
156-
157181
# Additional templates that should be rendered to pages, maps page names to
158182
# template names.
159183
#html_additional_pages = {}
160184

161185
# If false, no module index is generated.
162-
#html_use_modindex = True
186+
#html_domain_indices = True
163187

164188
# If false, no index is generated.
165189
#html_use_index = True
166190

167191
# If true, the index is split into individual pages for each letter.
168192
#html_split_index = False
169193

170-
# If true, the reST sources are included in the HTML build as _sources/<name>.
171-
#html_copy_source = True
194+
# If true, links to the reST sources are added to the pages.
195+
#html_show_sourcelink = True
196+
197+
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
198+
#html_show_sphinx = True
199+
200+
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
201+
#html_show_copyright = True
172202

173203
# If true, an OpenSearch description file will be output, and all pages will
174204
# contain a <link> tag referring to it. The value of this option must be the
175205
# base URL from which the finished HTML is served.
176206
#html_use_opensearch = ''
177207

178-
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
179-
#html_file_suffix = ''
208+
# This is the file name suffix for HTML files (e.g. ".xhtml").
209+
#html_file_suffix = None
180210

181-
# Output file base name for HTML help builder.
182-
htmlhelp_basename = 'Roundupdoc'
211+
# Language to be used for generating the HTML full-text search index.
212+
# Sphinx supports the following languages:
213+
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
214+
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
215+
#html_search_language = 'en'
216+
217+
# A dictionary with options for the search language support, empty by default.
218+
# Now only 'ja' uses this config value
219+
#html_search_options = {'type': 'default'}
183220

221+
# The name of a javascript file (relative to the configuration directory) that
222+
# implements a search results scorer. If empty, the default will be used.
223+
#html_search_scorer = 'scorer.js'
184224

185-
# Options for LaTeX output
186-
# ------------------------
225+
# Output file base name for HTML help builder.
226+
htmlhelp_basename = 'roundupdoc'
187227

188-
# The paper size ('letter' or 'a4').
189-
#latex_paper_size = 'letter'
228+
# -- Options for LaTeX output ---------------------------------------------
229+
230+
latex_elements = {
231+
# The paper size ('letterpaper' or 'a4paper').
232+
#'papersize': 'letterpaper',
190233

191234
# The font size ('10pt', '11pt' or '12pt').
192-
#latex_font_size = '10pt'
235+
#'pointsize': '10pt',
236+
237+
# Additional stuff for the LaTeX preamble.
238+
#'preamble': '',
239+
240+
# Latex figure (float) alignment
241+
#'figure_align': 'htbp',
242+
}
193243

194244
# Grouping the document tree into LaTeX files. List of tuples
195-
# (source start file, target name, title, author, document class [howto/manual]).
245+
# (source start file, target name, title,
246+
# author, documentclass [howto, manual, or own class]).
196247
latex_documents = [
197248
('docs/index', 'Roundup.tex', u'Roundup Documentation',
198249
u'Richard Jones', 'manual'),
@@ -206,11 +257,14 @@
206257
# not chapters.
207258
#latex_use_parts = False
208259

209-
# Additional stuff for the LaTeX preamble.
210-
#latex_preamble = ''
260+
# If true, show page references after internal links.
261+
#latex_show_pagerefs = False
262+
263+
# If true, show URL addresses after external links.
264+
#latex_show_urls = False
211265

212266
# Documents to append as an appendix to all manuals.
213267
#latex_appendices = []
214268

215269
# If false, no module index is generated.
216-
#latex_use_modindex = True
270+
#latex_domain_indices = True

0 commit comments

Comments
 (0)