/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/ru/conf.py

  • Committer: Ian Clatworthy
  • Date: 2009-09-08 16:48:38 UTC
  • mto: (4634.37.2 prepare-2.0)
  • mto: This revision was merged to the branch mainline in revision 4689.
  • Revision ID: ian.clatworthy@canonical.com-20090908164838-9on0bsn5wiawmz1i
reuse the central configuration

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# sphinx-quickstart on Tue Jul 21 17:04:52 2009.
5
5
#
6
6
# This file is execfile()d with the current directory set to its containing dir.
7
 
#
8
 
# Note that not all possible configuration values are present in this
9
 
# autogenerated file.
10
 
#
11
 
# All configuration values have a default; values that are commented out
12
 
# serve to show the default.
13
7
 
14
8
import sys, os
15
9
 
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('.'))
20
 
 
21
 
 
22
 
# -- Bazaar-specific configuration ---------------------------------------------
23
 
 
24
 
# NOTE: Editing this section is generally all that is required ...
25
 
 
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
 
14
 
 
15
# Most of the configuration for Bazaar docs is defined here ...
 
16
from bzrlib.doc_generate.sphinx_conf import *
 
17
 
 
18
 
 
19
## Configuration specific to this site ##
29
20
 
30
21
# The locale code for this documentation set
31
22
bzr_locale = 'ru'
32
23
 
33
 
# Authors of the documents
34
 
bzr_team = u'Bazaar Developers'
35
 
 
36
 
# Translations
 
24
# Translations & supporting helper function
37
25
bzr_titles = {
38
 
        u'Table of Contents (%s)': u'Содержание (%s)',
39
 
        u'Bazaar User Guide': None,
40
 
        u'Bazaar User Reference': None,
41
 
        u'Bazaar Release Notes': None,
42
 
        u'Bazaar Upgrade Guide': None,
43
 
        u'Bazaar in five minutes': u'Базар за пять минут',
44
 
        u'Bazaar Tutorial': u'Большой учебник',
45
 
        u'Using Bazaar With Launchpad': u'Использование Bazaar с Launchpad',
46
 
        u'Centralized Workflow Tutorial': u'Работа в централизованном стиле',
47
26
    }
48
 
 
49
 
 
50
 
# Helper function for looking up translations
51
27
def bzr_title(s):
52
28
    return bzr_titles.get(s) or s
53
29
 
54
 
 
55
 
# -- General configuration -----------------------------------------------------
56
 
 
57
 
# Add any Sphinx extension module names here, as strings. They can be extensions
58
 
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
59
 
extensions = ['sphinx.ext.ifconfig']
60
 
 
61
 
# Add any paths that contain templates here, relative to this directory.
62
 
templates_path = ['_templates']
63
 
 
64
 
# The suffix of source filenames.
65
 
source_suffix = '.txt'
66
 
 
67
 
# The encoding of source files.
68
 
#source_encoding = 'utf-8'
69
 
 
70
 
# The master toctree document.
71
 
master_doc = 'index'
72
 
 
73
 
# General information about the project.
74
 
project = u'Bazaar'
75
 
copyright = u'2009, Canonical Ltd'
76
 
 
77
 
# The version info for the project you're documenting, acts as replacement for
78
 
# |version| and |release|, also used in various other places throughout the
79
 
# built documents.
80
 
#
81
 
# The short X.Y version.
82
 
version = '.'.join(str(p) for p in bzr_version[:3])
83
 
# The full version, including alpha/beta/rc tags.
84
 
release = version + ''.join(str(p) for p in bzr_version[3:])
85
 
 
86
30
# The language for content autogenerated by Sphinx. Refer to documentation
87
31
# for a list of supported languages.
88
32
language = bzr_locale
89
33
 
90
 
# There are two options for replacing |today|: either, you set today to some
91
 
# non-false value, then it is used:
92
 
#today = ''
93
 
# Else, today_fmt is used as the format for a strftime call.
94
 
#today_fmt = '%B %d, %Y'
95
 
 
96
 
# List of documents that shouldn't be included in the build.
97
 
#unused_docs = []
98
 
 
99
 
# List of directories, relative to source directory, that shouldn't be searched
100
 
# for source files.
101
 
exclude_trees = ['_build']
102
 
 
103
 
# The reST default role (used for this markup: `text`) to use for all documents.
104
 
#default_role = None
105
 
 
106
 
# If true, '()' will be appended to :func: etc. cross-reference text.
107
 
#add_function_parentheses = True
108
 
 
109
 
# If true, the current module name will be prepended to all description
110
 
# unit titles (such as .. function::).
111
 
#add_module_names = True
112
 
 
113
 
# If true, sectionauthor and moduleauthor directives will be shown in the
114
 
# output. They are ignored by default.
115
 
#show_authors = False
116
 
 
117
 
# The name of the Pygments (syntax highlighting) style to use.
118
 
pygments_style = 'sphinx'
119
 
 
120
 
# A list of ignored prefixes for module index sorting.
121
 
#modindex_common_prefix = []
122
 
 
123
 
 
124
 
# -- Options for HTML output ---------------------------------------------------
125
 
 
126
 
# The theme to use for HTML and HTML Help pages.  Major themes that come with
127
 
# Sphinx are currently 'default' and 'sphinxdoc'.
128
 
html_theme = 'default'
129
 
 
130
 
# Theme options are theme-specific and customize the look and feel of a theme
131
 
# further.  For a list of options available for each theme, see the
132
 
# documentation.
133
 
html_theme_options = {
134
 
    'rightsidebar': True,
135
 
 
136
 
    # Non-document areas: header (relbar), footer, sidebar, etc.
137
 
    # Some useful colours here:
138
 
    # * blue: darkblue, mediumblue, darkslateblue, cornflowerblue, royalblue,
139
 
    #   midnightblue
140
 
    # * gray: dimgray, slategray, lightslategray
141
 
    'sidebarbgcolor':   "cornflowerblue",
142
 
    'sidebarlinkcolor': "midnightblue",
143
 
    'relbarbgcolor':    "darkblue",
144
 
    'footerbgcolor':    "lightslategray",
145
 
 
146
 
    # Text, heading and code colouring
147
 
    'codebgcolor':      "lightyellow",
148
 
    'codetextcolor':    "firebrick",
149
 
    'linkcolor':        "mediumblue",
150
 
    }
151
 
 
152
 
# Add any paths that contain custom themes here, relative to this directory.
153
 
#html_theme_path = []
154
 
 
155
 
# The name for this set of Sphinx documents.  If None, it defaults to
156
 
# "<project> v<release> documentation".
157
 
#html_title = None
158
 
 
159
34
# A shorter title for the navigation bar.  Default is the same as html_title.
160
35
html_short_title = bzr_title(u"Table of Contents (%s)") % (release,)
161
36
 
162
 
# The name of an image file (relative to this directory) to place at the top
163
 
# of the sidebar.
164
 
#html_logo = None
165
 
 
166
 
# The name of an image file (within the static path) to use as favicon of the
167
 
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
168
 
# pixels large.
169
 
html_favicon = "bzr.ico"
170
 
 
171
 
# Add any paths that contain custom static files (such as style sheets) here,
172
 
# relative to this directory. They are copied after the builtin static files,
173
 
# so a file named "default.css" will overwrite the builtin "default.css".
174
 
html_static_path = ['_static']
175
 
 
176
 
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
177
 
# using the given strftime format.
178
 
#html_last_updated_fmt = '%b %d, %Y'
179
 
 
180
 
# If true, SmartyPants will be used to convert quotes and dashes to
181
 
# typographically correct entities.
182
 
#html_use_smartypants = True
183
 
 
184
 
# Custom sidebar templates, maps document names to template names.
185
 
#html_sidebars = {}
186
 
 
187
37
# Additional templates that should be rendered to pages, maps page names to
188
38
# template names.
189
39
#html_additional_pages = {'index': 'index.html'}
190
40
 
191
 
# If false, no module index is generated.
192
 
html_use_modindex = False
193
 
 
194
 
# If false, no index is generated.
195
 
html_use_index = False
196
 
 
197
 
# If true, the index is split into individual pages for each letter.
198
 
#html_split_index = False
199
 
 
200
 
# If true, links to the reST sources are added to the pages.
201
 
html_show_sourcelink = True
202
 
 
203
 
# If true, an OpenSearch description file will be output, and all pages will
204
 
# contain a <link> tag referring to it.  The value of this option must be the
205
 
# base URL from which the finished HTML is served.
206
 
#html_use_opensearch = ''
207
 
 
208
 
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
209
 
#html_file_suffix = ''
210
 
 
211
41
# Output file base name for HTML help builder.
212
42
htmlhelp_basename = 'bzr-%s-user-docs' % (bzr_locale,)
213
43
 
214
 
 
215
 
# -- Options for LaTeX output --------------------------------------------------
216
 
 
217
 
# The paper size ('letter' or 'a4').
218
 
#latex_paper_size = 'letter'
219
 
 
220
 
# The font size ('10pt', '11pt' or '12pt').
221
 
#latex_font_size = '10pt'
222
 
 
223
44
# Grouping the document tree into LaTeX files. List of tuples
224
45
# (source start file, target name, title, author, documentclass [howto/manual]).
225
46
latex_documents = [
244
65
  #  'bzr-%s-tutorial-centralized.tex' % (bzr_locale,),
245
66
  #  bzr_title(u'Centralized Workflow Tutorial'), bzr_team, 'howto'),
246
67
]
247
 
 
248
 
# The name of an image file (relative to this directory) to place at the top of
249
 
# the title page.
250
 
latex_logo = '../Bazaar-Logo-For-Manuals.png'
251
 
 
252
 
# For "manual" documents, if this is true, then toplevel headings are parts,
253
 
# not chapters.
254
 
#latex_use_parts = False
255
 
 
256
 
# Additional stuff for the LaTeX preamble.
257
 
#latex_preamble = ''
258
 
 
259
 
# Documents to append as an appendix to all manuals.
260
 
#latex_appendices = []
261
 
 
262
 
# If false, no module index is generated.
263
 
#latex_use_modindex = True