4
4
# sphinx-quickstart on Tue Jul 21 17:04:52 2009.
6
6
# This file is execfile()d with the current directory set to its containing dir.
8
# Note that not all possible configuration values are present in this
11
# All configuration values have a default; values that are commented out
12
# serve to show the default.
16
10
# If extensions (or modules to document with autodoc) are in another directory,
17
11
# add these directories to sys.path here. If the directory is relative to the
18
12
# documentation root, use os.path.abspath to make it absolute, like shown here.
19
#sys.path.append(os.path.abspath('.'))
22
# -- Bazaar-specific configuration ---------------------------------------------
24
# NOTE: Editing this section is generally all that is required ...
26
# We *could* get this from bzrlib but there's no certainly that the bzr on
27
# the Python path is indeed the one we're building the documentation for ...
28
bzr_version = (2, 0, 0, 'rc', 2)
13
sys.path = [os.path.abspath('../..')] + sys.path
15
# Most of the configuration for Bazaar docs is defined here ...
16
from bzrlib.doc_generate.sphinx_conf import *
19
## Configuration specific to this site ##
30
21
# The locale code for this documentation set
33
# Authors of the documents
34
bzr_team = u'Bazaar Developers'
24
# Translations & supporting helper function
38
26
u'Table of Contents (%s)': None,
39
27
u'Bazaar User Guide': None,
45
33
u'Using Bazaar With Launchpad': None,
46
34
u'Centralized Workflow Tutorial': None,
49
# Helper function for looking up translations
51
37
return bzr_titles.get(s) or s
54
# -- General configuration -----------------------------------------------------
56
# Add any Sphinx extension module names here, as strings. They can be extensions
57
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
58
extensions = ['sphinx.ext.ifconfig']
60
# Add any paths that contain templates here, relative to this directory.
61
templates_path = ['_templates']
63
# The suffix of source filenames.
64
source_suffix = '.txt'
66
# The encoding of source files.
67
#source_encoding = 'utf-8'
69
# The master toctree document.
72
# General information about the project.
74
copyright = u'2009, Canonical Ltd'
76
# The version info for the project you're documenting, acts as replacement for
77
# |version| and |release|, also used in various other places throughout the
80
# The short X.Y version.
81
version = '.'.join(str(p) for p in bzr_version[:3])
82
# The full version, including alpha/beta/rc tags.
83
release = version + ''.join(str(p) for p in bzr_version[3:])
85
# The language for content autogenerated by Sphinx. Refer to documentation
86
# for a list of supported languages.
89
# There are two options for replacing |today|: either, you set today to some
90
# non-false value, then it is used:
92
# Else, today_fmt is used as the format for a strftime call.
93
#today_fmt = '%B %d, %Y'
95
# List of documents that shouldn't be included in the build.
98
# List of directories, relative to source directory, that shouldn't be searched
100
exclude_trees = ['_build']
102
# The reST default role (used for this markup: `text`) to use for all documents.
105
# If true, '()' will be appended to :func: etc. cross-reference text.
106
#add_function_parentheses = True
108
# If true, the current module name will be prepended to all description
109
# unit titles (such as .. function::).
110
#add_module_names = True
112
# If true, sectionauthor and moduleauthor directives will be shown in the
113
# output. They are ignored by default.
114
#show_authors = False
116
# The name of the Pygments (syntax highlighting) style to use.
117
pygments_style = 'sphinx'
119
# A list of ignored prefixes for module index sorting.
120
#modindex_common_prefix = []
123
# -- Options for HTML output ---------------------------------------------------
125
# The theme to use for HTML and HTML Help pages. Major themes that come with
126
# Sphinx are currently 'default' and 'sphinxdoc'.
127
html_theme = 'default'
129
# Theme options are theme-specific and customize the look and feel of a theme
130
# further. For a list of options available for each theme, see the
132
html_theme_options = {
133
'rightsidebar': True,
135
# Non-document areas: header (relbar), footer, sidebar, etc.
136
# Some useful colours here:
137
# * blue: darkblue, mediumblue, darkslateblue, cornflowerblue, royalblue,
139
# * gray: dimgray, slategray, lightslategray
140
'sidebarbgcolor': "cornflowerblue",
141
'sidebarlinkcolor': "midnightblue",
142
'relbarbgcolor': "darkblue",
143
'footerbgcolor': "lightslategray",
145
# Text, heading and code colouring
146
'codebgcolor': "lightyellow",
147
'codetextcolor': "firebrick",
148
'linkcolor': "mediumblue",
151
# Add any paths that contain custom themes here, relative to this directory.
152
#html_theme_path = []
154
# The name for this set of Sphinx documents. If None, it defaults to
155
# "<project> v<release> documentation".
158
39
# A shorter title for the navigation bar. Default is the same as html_title.
159
40
html_short_title = bzr_title(u"Table of Contents (%s)") % (release,)
161
# The name of an image file (relative to this directory) to place at the top
165
# The name of an image file (within the static path) to use as favicon of the
166
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
168
html_favicon = "bzr.ico"
170
# Add any paths that contain custom static files (such as style sheets) here,
171
# relative to this directory. They are copied after the builtin static files,
172
# so a file named "default.css" will overwrite the builtin "default.css".
173
html_static_path = ['_static']
175
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
176
# using the given strftime format.
177
#html_last_updated_fmt = '%b %d, %Y'
179
# If true, SmartyPants will be used to convert quotes and dashes to
180
# typographically correct entities.
181
#html_use_smartypants = True
183
# Custom sidebar templates, maps document names to template names.
186
42
# Additional templates that should be rendered to pages, maps page names to
188
44
html_additional_pages = {'index': 'index.html'}
190
# If false, no module index is generated.
191
html_use_modindex = False
193
# If false, no index is generated.
194
html_use_index = False
196
# If true, the index is split into individual pages for each letter.
197
#html_split_index = False
199
# If true, links to the reST sources are added to the pages.
200
html_show_sourcelink = True
202
# If true, an OpenSearch description file will be output, and all pages will
203
# contain a <link> tag referring to it. The value of this option must be the
204
# base URL from which the finished HTML is served.
205
#html_use_opensearch = ''
207
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
208
#html_file_suffix = ''
210
46
# Output file base name for HTML help builder.
211
47
htmlhelp_basename = 'bzr-%s-user-docs' % (bzr_locale,)
214
# -- Options for LaTeX output --------------------------------------------------
216
# The paper size ('letter' or 'a4').
217
#latex_paper_size = 'letter'
219
# The font size ('10pt', '11pt' or '12pt').
220
#latex_font_size = '10pt'
222
49
# Grouping the document tree into LaTeX files. List of tuples
223
50
# (source start file, target name, title, author, documentclass [howto/manual]).
224
51
latex_documents = [