We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Pick the changes done in releasing docs in stable/2.6.0


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `docs/conf.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 #
3 # This file is execfile()d with the current directory set to its containing
4 # dir.
5 #
6 # Note that not all possible configuration values are present in this
7 # autogenerated file.
8 #
9 # All configuration values have a default; values that are commented out
10 # serve to show the default.
11 
12 import sys
13 import os
14 
15 # If extensions (or modules to document with autodoc) are in another directory,
16 # add these directories to sys.path here. If the directory is relative to the
17 # documentation root, use os.path.abspath to make it absolute, like shown here.
18 #sys.path.insert(0, os.path.abspath('.'))
19 
20 sys.path.insert(0, os.path.abspath('_ext'))
21 sys.path.insert(0, os.path.abspath('.'))
22 
23 # -- General configuration ----------------------------------------------------
24 
25 # If your documentation needs a minimal Sphinx version, state it here.
26 #needs_sphinx = '1.0'
27 
28 # Add any Sphinx extension module names here, as strings. They can be
29 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
30 # ones.
31 extensions = ['jsonlexer', 'pootle_docs',
32               'sphinx.ext.extlinks', 'sphinx.ext.intersphinx']
33 
34 # Add any paths that contain templates here, relative to this directory.
35 templates_path = ['_templates']
36 
37 # The suffix of source filenames.
38 source_suffix = '.rst'
39 
40 # The encoding of source files.
41 #source_encoding = 'utf-8-sig'
42 
43 # The master toctree document.
44 master_doc = 'index'
45 
46 # General information about the project.
47 project = u'Pootle'
48 copyright = u'2004-2014, Translate'
49 
50 # The version info for the project you're documenting, acts as replacement for
51 # |version| and |release|, also used in various other places throughout the
52 # built documents.
53 #
54 # The short X.Y version.
55 version = '2.5.1'
56 # The full version, including alpha/beta/rc tags.
57 release = '2.5.1-alpha1'
58 
59 # The language for content autogenerated by Sphinx. Refer to documentation
60 # for a list of supported languages.
61 #language = None
62 
63 # There are two options for replacing |today|: either, you set today to some
64 # non-false value, then it is used:
65 #today = ''
66 # Else, today_fmt is used as the format for a strftime call.
67 #today_fmt = '%B %d, %Y'
68 
69 # List of patterns, relative to source directory, that match files and
70 # directories to ignore when looking for source files.
71 exclude_patterns = ['_build', '_themes/README.rst', 'specs']
72 
73 # The reST default role (used for this markup: `text`) to use for all
74 # documents.
75 #default_role = None
76 
77 # If true, '()' will be appended to :func: etc. cross-reference text.
78 #add_function_parentheses = True
79 
80 # If true, the current module name will be prepended to all description
81 # unit titles (such as .. function::).
82 #add_module_names = True
83 
84 # If true, sectionauthor and moduleauthor directives will be shown in the
85 # output. They are ignored by default.
86 #show_authors = False
87 
88 # The name of the Pygments (syntax highlighting) style to use.
89 pygments_style = 'sphinx'
90 
91 # A list of ignored prefixes for module index sorting.
92 #modindex_common_prefix = []
93 
94 # Build a refence icon.rst.inc files that we can include for inline
95 # icons.
96 import os
97 
98 icons_dir = "../pootle/static/images/sprite"
99 icons_inc_file_name = "icons.rst.inc"
100 build_icons_inc = False
101 
102 if not os.path.isfile(os.path.join(os.curdir, icons_inc_file_name)):
103     build_icons_inc = True
104 else:
105     icon_inc_mtime = os.stat(os.path.join(os.curdir,
106                                           icons_inc_file_name)).st_mtime
107     for icon_image in os.listdir(icons_dir):
108         if os.stat(os.path.join(icons_dir,
109                                 icon_image)).st_mtime > icon_inc_mtime:
110             build_icons_inc = True
111 
112 if build_icons_inc:
113     icons_txt_file = open(icons_inc_file_name, "w")
114     for icon_image in os.listdir(icons_dir):
115         icon_name = icon_image[:icon_image.rfind(".")]
116         print >>icons_txt_file, ".. |icon:" + icon_name + "| " + \
117                                 "image:: /" + icons_dir + "/" + icon_image
118         print >>icons_txt_file, "                      :alt: " + \
119                                 icon_name.replace("-", " ").replace("_", " ") + \
120                                 " icon"
121         print >>icons_txt_file
122     icons_txt_file.close()
123 
124 # Files to include at the end of every .rst file
125 rst_epilog = """
126 .. include:: /%s
127 """ % icons_inc_file_name
128 
129 
130 # -- Options for HTML output --------------------------------------------------
131 
132 # The theme to use for HTML and HTML Help pages.  See the documentation for
133 # a list of builtin themes.
134 html_theme = 'sphinx-bootstrap'
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     'nosidebar': True,
141     'link_color': '#489b7',
142     'link_color_hover': '#489b7',
143 }
144 
145 # Add any paths that contain custom themes here, relative to this directory.
146 html_theme_path = ['_themes']
147 
148 # The name for this set of Sphinx documents.  If None, it defaults to
149 # "<project> v<release> documentation".
150 #html_title = None
151 
152 # A shorter title for the navigation bar.  Default is the same as html_title.
153 #html_short_title = None
154 
155 # The name of an image file (relative to this directory) to place at the top
156 # of the sidebar.
157 html_logo = '_static/pootle_logo.png'
158 
159 # The name of an image file (within the static path) to use as favicon of the
160 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
161 # pixels large.
162 html_favicon = '../pootle/static/favicon.ico'
163 
164 # Add any paths that contain custom static files (such as style sheets) here,
165 # relative to this directory. They are copied after the builtin static files,
166 # so a file named "default.css" will overwrite the builtin "default.css".
167 html_static_path = ['_static']
168 
169 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
170 # using the given strftime format.
171 #html_last_updated_fmt = '%b %d, %Y'
172 
173 # If true, SmartyPants will be used to convert quotes and dashes to
174 # typographically correct entities.
175 #html_use_smartypants = True
176 
177 # Custom sidebar templates, maps document names to template names.
178 #html_sidebars = {}
179 
180 # Additional templates that should be rendered to pages, maps page names to
181 # template names.
182 #html_additional_pages = {}
183 
184 # If false, no module index is generated.
185 html_domain_indices = False
186 
187 # If false, no index is generated.
188 #html_use_index = True
189 
190 # If true, the index is split into individual pages for each letter.
191 #html_split_index = False
192 
193 # If true, links to the reST sources are added to the pages.
194 html_show_sourcelink = False
195 
196 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
197 #html_show_sphinx = True
198 
199 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
200 #html_show_copyright = True
201 
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 = ''
206 
207 # This is the file name suffix for HTML files (e.g. ".xhtml").
208 #html_file_suffix = None
209 
210 # Output file base name for HTML help builder.
211 htmlhelp_basename = 'Pootledoc'
212 
213 
214 # -- Options for LaTeX output -------------------------------------------------
215 
216 latex_elements = {
217 # The paper size ('letterpaper' or 'a4paper').
218 #'papersize': 'letterpaper',
219 
220 # The font size ('10pt', '11pt' or '12pt').
221 #'pointsize': '10pt',
222 
223 # Additional stuff for the LaTeX preamble.
224 #'preamble': '',
225 }
226 
227 # Grouping the document tree into LaTeX files. List of tuples
228 # (source start file, target name, title, author, documentclass [howto/manual])
229 latex_documents = [
230   ('index', 'Pootle.tex', u'Pootle Documentation',
231    u'Translate.org.za', 'manual'),
232 ]
233 
234 # The name of an image file (relative to this directory) to place at the top of
235 # the title page.
236 #latex_logo = None
237 
238 # For "manual" documents, if this is true, then toplevel headings are parts,
239 # not chapters.
240 #latex_use_parts = False
241 
242 # If true, show page references after internal links.
243 #latex_show_pagerefs = False
244 
245 # If true, show URL addresses after external links.
246 #latex_show_urls = False
247 
248 # Documents to append as an appendix to all manuals.
249 #latex_appendices = []
250 
251 # If false, no module index is generated.
252 #latex_domain_indices = True
253 
254 
255 # -- Options for manual page output -------------------------------------------
256 
257 # One entry per manual page. List of tuples
258 # (source start file, name, description, authors, manual section).
259 man_pages = [
260     ('index', 'pootle', u'Pootle Documentation',
261      [u'Translate.org.za'], 1)
262 ]
263 
264 # If true, show URL addresses after external links.
265 #man_show_urls = False
266 
267 
268 # -- Options for Texinfo output -----------------------------------------------
269 
270 # Grouping the document tree into Texinfo files. List of tuples
271 # (source start file, target name, title, author,
272 #  dir menu entry, description, category)
273 texinfo_documents = [
274   ('index', 'Pootle', u'Pootle Documentation',
275    u'Translate.org.za', 'Pootle', 'Online translation tool.',
276    'Miscellaneous'),
277 ]
278 
279 # Documents to append as an appendix to all manuals.
280 #texinfo_appendices = []
281 
282 # If false, no module index is generated.
283 #texinfo_domain_indices = True
284 
285 # How to display URL addresses: 'footnote', 'no', or 'inline'.
286 #texinfo_show_urls = 'footnote'
287 
288 
289 # -- Options for Intersphinx -------------------------------------------------
290 
291 intersphinx_mapping = {
292     'python': ('https://docs.python.org/2.7', None),
293     'django': ('https://docs.djangoproject.com/en/dev',
294         'https://docs.djangoproject.com/en/dev/_objects'),
295     'toolkit': ('http://docs.translatehouse.org/projects/translate-toolkit/en/latest/', None),
296     'south':  ('https://south.readthedocs.org/en/latest/', None),
297     'tastypie':  ('https://django-tastypie.readthedocs.org/en/latest/', None),
298 }
299 
300 
301 # -- Options for External links -------------------------------------------------
302 
303 extlinks = {
304     # :role: (URL, prefix)
305     'bug': ('http://bugs.locamotion.org/show_bug.cgi?id=%s', 'bug '),
306     'man': ('http://linux.die.net/man/1/%s', ''),
307     'wiki': ('http://translate.sourceforge.net/wiki/%s', ''),
308     'wp': ('https://en.wikipedia.org/wiki/%s', ''),
309 }
310 
311 # -- Options for Gettext -------------------------------------------------
312 
313 locale_dirs = ["_translations/"]
314 gettext_compact = False
315
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -45,16 +45,16 @@
 
 # General information about the project.
 project = u'Pootle'
-copyright = u'2004-2014, Translate'
+copyright = u'2004-2015, Translate'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
 # The short X.Y version.
-version = '2.5.1'
+version = '2.7.0'
 # The full version, including alpha/beta/rc tags.
-release = '2.5.1-alpha1'
+release = '2.7.0-alpha1'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -45,16 +45,16 @@\n \n # General information about the project.\n project = u'Pootle'\n-copyright = u'2004-2014, Translate'\n+copyright = u'2004-2015, Translate'\n \n # The version info for the project you're documenting, acts as replacement for\n # |version| and |release|, also used in various other places throughout the\n # built documents.\n #\n # The short X.Y version.\n-version = '2.5.1'\n+version = '2.7.0'\n # The full version, including alpha/beta/rc tags.\n-release = '2.5.1-alpha1'\n+release = '2.7.0-alpha1'\n \n # The language for content autogenerated by Sphinx. Refer to documentation\n # for a list of supported languages.\n", "issue": "Pick the changes done in releasing docs in stable/2.6.0\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# This file is execfile()d with the current directory set to its containing\n# dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\n\nimport sys\nimport os\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n#sys.path.insert(0, os.path.abspath('.'))\n\nsys.path.insert(0, os.path.abspath('_ext'))\nsys.path.insert(0, os.path.abspath('.'))\n\n# -- General configuration ----------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#needs_sphinx = '1.0'\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = ['jsonlexer', 'pootle_docs',\n              'sphinx.ext.extlinks', 'sphinx.ext.intersphinx']\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = ['_templates']\n\n# The suffix of source filenames.\nsource_suffix = '.rst'\n\n# The encoding of source files.\n#source_encoding = 'utf-8-sig'\n\n# The master toctree document.\nmaster_doc = 'index'\n\n# General information about the project.\nproject = u'Pootle'\ncopyright = u'2004-2014, Translate'\n\n# The version info for the project you're documenting, acts as replacement for\n# |version| and |release|, also used in various other places throughout the\n# built documents.\n#\n# The short X.Y version.\nversion = '2.5.1'\n# The full version, including alpha/beta/rc tags.\nrelease = '2.5.1-alpha1'\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#language = None\n\n# There are two options for replacing |today|: either, you set today to some\n# non-false value, then it is used:\n#today = ''\n# Else, today_fmt is used as the format for a strftime call.\n#today_fmt = '%B %d, %Y'\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\nexclude_patterns = ['_build', '_themes/README.rst', 'specs']\n\n# The reST default role (used for this markup: `text`) to use for all\n# documents.\n#default_role = None\n\n# If true, '()' will be appended to :func: etc. cross-reference text.\n#add_function_parentheses = True\n\n# If true, the current module name will be prepended to all description\n# unit titles (such as .. function::).\n#add_module_names = True\n\n# If true, sectionauthor and moduleauthor directives will be shown in the\n# output. They are ignored by default.\n#show_authors = False\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\n# A list of ignored prefixes for module index sorting.\n#modindex_common_prefix = []\n\n# Build a refence icon.rst.inc files that we can include for inline\n# icons.\nimport os\n\nicons_dir = \"../pootle/static/images/sprite\"\nicons_inc_file_name = \"icons.rst.inc\"\nbuild_icons_inc = False\n\nif not os.path.isfile(os.path.join(os.curdir, icons_inc_file_name)):\n    build_icons_inc = True\nelse:\n    icon_inc_mtime = os.stat(os.path.join(os.curdir,\n                                          icons_inc_file_name)).st_mtime\n    for icon_image in os.listdir(icons_dir):\n        if os.stat(os.path.join(icons_dir,\n                                icon_image)).st_mtime > icon_inc_mtime:\n            build_icons_inc = True\n\nif build_icons_inc:\n    icons_txt_file = open(icons_inc_file_name, \"w\")\n    for icon_image in os.listdir(icons_dir):\n        icon_name = icon_image[:icon_image.rfind(\".\")]\n        print >>icons_txt_file, \".. |icon:\" + icon_name + \"| \" + \\\n                                \"image:: /\" + icons_dir + \"/\" + icon_image\n        print >>icons_txt_file, \"                      :alt: \" + \\\n                                icon_name.replace(\"-\", \" \").replace(\"_\", \" \") + \\\n                                \" icon\"\n        print >>icons_txt_file\n    icons_txt_file.close()\n\n# Files to include at the end of every .rst file\nrst_epilog = \"\"\"\n.. include:: /%s\n\"\"\" % icons_inc_file_name\n\n\n# -- Options for HTML output --------------------------------------------------\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\nhtml_theme = 'sphinx-bootstrap'\n\n# Theme options are theme-specific and customize the look and feel of a theme\n# further.  For a list of options available for each theme, see the\n# documentation.\nhtml_theme_options = {\n    'nosidebar': True,\n    'link_color': '#489b7',\n    'link_color_hover': '#489b7',\n}\n\n# Add any paths that contain custom themes here, relative to this directory.\nhtml_theme_path = ['_themes']\n\n# The name for this set of Sphinx documents.  If None, it defaults to\n# \"<project> v<release> documentation\".\n#html_title = None\n\n# A shorter title for the navigation bar.  Default is the same as html_title.\n#html_short_title = None\n\n# The name of an image file (relative to this directory) to place at the top\n# of the sidebar.\nhtml_logo = '_static/pootle_logo.png'\n\n# The name of an image file (within the static path) to use as favicon of the\n# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32\n# pixels large.\nhtml_favicon = '../pootle/static/favicon.ico'\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = ['_static']\n\n# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,\n# using the given strftime format.\n#html_last_updated_fmt = '%b %d, %Y'\n\n# If true, SmartyPants will be used to convert quotes and dashes to\n# typographically correct entities.\n#html_use_smartypants = True\n\n# Custom sidebar templates, maps document names to template names.\n#html_sidebars = {}\n\n# Additional templates that should be rendered to pages, maps page names to\n# template names.\n#html_additional_pages = {}\n\n# If false, no module index is generated.\nhtml_domain_indices = False\n\n# If false, no index is generated.\n#html_use_index = True\n\n# If true, the index is split into individual pages for each letter.\n#html_split_index = False\n\n# If true, links to the reST sources are added to the pages.\nhtml_show_sourcelink = False\n\n# If true, \"Created using Sphinx\" is shown in the HTML footer. Default is True.\n#html_show_sphinx = True\n\n# If true, \"(C) Copyright ...\" is shown in the HTML footer. Default is True.\n#html_show_copyright = True\n\n# If true, an OpenSearch description file will be output, and all pages will\n# contain a <link> tag referring to it.  The value of this option must be the\n# base URL from which the finished HTML is served.\n#html_use_opensearch = ''\n\n# This is the file name suffix for HTML files (e.g. \".xhtml\").\n#html_file_suffix = None\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'Pootledoc'\n\n\n# -- Options for LaTeX output -------------------------------------------------\n\nlatex_elements = {\n# The paper size ('letterpaper' or 'a4paper').\n#'papersize': 'letterpaper',\n\n# The font size ('10pt', '11pt' or '12pt').\n#'pointsize': '10pt',\n\n# Additional stuff for the LaTeX preamble.\n#'preamble': '',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title, author, documentclass [howto/manual])\nlatex_documents = [\n  ('index', 'Pootle.tex', u'Pootle Documentation',\n   u'Translate.org.za', 'manual'),\n]\n\n# The name of an image file (relative to this directory) to place at the top of\n# the title page.\n#latex_logo = None\n\n# For \"manual\" documents, if this is true, then toplevel headings are parts,\n# not chapters.\n#latex_use_parts = False\n\n# If true, show page references after internal links.\n#latex_show_pagerefs = False\n\n# If true, show URL addresses after external links.\n#latex_show_urls = False\n\n# Documents to append as an appendix to all manuals.\n#latex_appendices = []\n\n# If false, no module index is generated.\n#latex_domain_indices = True\n\n\n# -- Options for manual page output -------------------------------------------\n\n# One entry per manual page. List of tuples\n# (source start file, name, description, authors, manual section).\nman_pages = [\n    ('index', 'pootle', u'Pootle Documentation',\n     [u'Translate.org.za'], 1)\n]\n\n# If true, show URL addresses after external links.\n#man_show_urls = False\n\n\n# -- Options for Texinfo output -----------------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n#  dir menu entry, description, category)\ntexinfo_documents = [\n  ('index', 'Pootle', u'Pootle Documentation',\n   u'Translate.org.za', 'Pootle', 'Online translation tool.',\n   'Miscellaneous'),\n]\n\n# Documents to append as an appendix to all manuals.\n#texinfo_appendices = []\n\n# If false, no module index is generated.\n#texinfo_domain_indices = True\n\n# How to display URL addresses: 'footnote', 'no', or 'inline'.\n#texinfo_show_urls = 'footnote'\n\n\n# -- Options for Intersphinx -------------------------------------------------\n\nintersphinx_mapping = {\n    'python': ('https://docs.python.org/2.7', None),\n    'django': ('https://docs.djangoproject.com/en/dev',\n        'https://docs.djangoproject.com/en/dev/_objects'),\n    'toolkit': ('http://docs.translatehouse.org/projects/translate-toolkit/en/latest/', None),\n    'south':  ('https://south.readthedocs.org/en/latest/', None),\n    'tastypie':  ('https://django-tastypie.readthedocs.org/en/latest/', None),\n}\n\n\n# -- Options for External links -------------------------------------------------\n\nextlinks = {\n    # :role: (URL, prefix)\n    'bug': ('http://bugs.locamotion.org/show_bug.cgi?id=%s', 'bug '),\n    'man': ('http://linux.die.net/man/1/%s', ''),\n    'wiki': ('http://translate.sourceforge.net/wiki/%s', ''),\n    'wp': ('https://en.wikipedia.org/wiki/%s', ''),\n}\n\n# -- Options for Gettext -------------------------------------------------\n\nlocale_dirs = [\"_translations/\"]\ngettext_compact = False\n", "path": "docs/conf.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# This file is execfile()d with the current directory set to its containing\n# dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\n\nimport sys\nimport os\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n#sys.path.insert(0, os.path.abspath('.'))\n\nsys.path.insert(0, os.path.abspath('_ext'))\nsys.path.insert(0, os.path.abspath('.'))\n\n# -- General configuration ----------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#needs_sphinx = '1.0'\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = ['jsonlexer', 'pootle_docs',\n              'sphinx.ext.extlinks', 'sphinx.ext.intersphinx']\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = ['_templates']\n\n# The suffix of source filenames.\nsource_suffix = '.rst'\n\n# The encoding of source files.\n#source_encoding = 'utf-8-sig'\n\n# The master toctree document.\nmaster_doc = 'index'\n\n# General information about the project.\nproject = u'Pootle'\ncopyright = u'2004-2015, Translate'\n\n# The version info for the project you're documenting, acts as replacement for\n# |version| and |release|, also used in various other places throughout the\n# built documents.\n#\n# The short X.Y version.\nversion = '2.7.0'\n# The full version, including alpha/beta/rc tags.\nrelease = '2.7.0-alpha1'\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#language = None\n\n# There are two options for replacing |today|: either, you set today to some\n# non-false value, then it is used:\n#today = ''\n# Else, today_fmt is used as the format for a strftime call.\n#today_fmt = '%B %d, %Y'\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\nexclude_patterns = ['_build', '_themes/README.rst', 'specs']\n\n# The reST default role (used for this markup: `text`) to use for all\n# documents.\n#default_role = None\n\n# If true, '()' will be appended to :func: etc. cross-reference text.\n#add_function_parentheses = True\n\n# If true, the current module name will be prepended to all description\n# unit titles (such as .. function::).\n#add_module_names = True\n\n# If true, sectionauthor and moduleauthor directives will be shown in the\n# output. They are ignored by default.\n#show_authors = False\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\n# A list of ignored prefixes for module index sorting.\n#modindex_common_prefix = []\n\n# Build a refence icon.rst.inc files that we can include for inline\n# icons.\nimport os\n\nicons_dir = \"../pootle/static/images/sprite\"\nicons_inc_file_name = \"icons.rst.inc\"\nbuild_icons_inc = False\n\nif not os.path.isfile(os.path.join(os.curdir, icons_inc_file_name)):\n    build_icons_inc = True\nelse:\n    icon_inc_mtime = os.stat(os.path.join(os.curdir,\n                                          icons_inc_file_name)).st_mtime\n    for icon_image in os.listdir(icons_dir):\n        if os.stat(os.path.join(icons_dir,\n                                icon_image)).st_mtime > icon_inc_mtime:\n            build_icons_inc = True\n\nif build_icons_inc:\n    icons_txt_file = open(icons_inc_file_name, \"w\")\n    for icon_image in os.listdir(icons_dir):\n        icon_name = icon_image[:icon_image.rfind(\".\")]\n        print >>icons_txt_file, \".. |icon:\" + icon_name + \"| \" + \\\n                                \"image:: /\" + icons_dir + \"/\" + icon_image\n        print >>icons_txt_file, \"                      :alt: \" + \\\n                                icon_name.replace(\"-\", \" \").replace(\"_\", \" \") + \\\n                                \" icon\"\n        print >>icons_txt_file\n    icons_txt_file.close()\n\n# Files to include at the end of every .rst file\nrst_epilog = \"\"\"\n.. include:: /%s\n\"\"\" % icons_inc_file_name\n\n\n# -- Options for HTML output --------------------------------------------------\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\nhtml_theme = 'sphinx-bootstrap'\n\n# Theme options are theme-specific and customize the look and feel of a theme\n# further.  For a list of options available for each theme, see the\n# documentation.\nhtml_theme_options = {\n    'nosidebar': True,\n    'link_color': '#489b7',\n    'link_color_hover': '#489b7',\n}\n\n# Add any paths that contain custom themes here, relative to this directory.\nhtml_theme_path = ['_themes']\n\n# The name for this set of Sphinx documents.  If None, it defaults to\n# \"<project> v<release> documentation\".\n#html_title = None\n\n# A shorter title for the navigation bar.  Default is the same as html_title.\n#html_short_title = None\n\n# The name of an image file (relative to this directory) to place at the top\n# of the sidebar.\nhtml_logo = '_static/pootle_logo.png'\n\n# The name of an image file (within the static path) to use as favicon of the\n# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32\n# pixels large.\nhtml_favicon = '../pootle/static/favicon.ico'\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = ['_static']\n\n# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,\n# using the given strftime format.\n#html_last_updated_fmt = '%b %d, %Y'\n\n# If true, SmartyPants will be used to convert quotes and dashes to\n# typographically correct entities.\n#html_use_smartypants = True\n\n# Custom sidebar templates, maps document names to template names.\n#html_sidebars = {}\n\n# Additional templates that should be rendered to pages, maps page names to\n# template names.\n#html_additional_pages = {}\n\n# If false, no module index is generated.\nhtml_domain_indices = False\n\n# If false, no index is generated.\n#html_use_index = True\n\n# If true, the index is split into individual pages for each letter.\n#html_split_index = False\n\n# If true, links to the reST sources are added to the pages.\nhtml_show_sourcelink = False\n\n# If true, \"Created using Sphinx\" is shown in the HTML footer. Default is True.\n#html_show_sphinx = True\n\n# If true, \"(C) Copyright ...\" is shown in the HTML footer. Default is True.\n#html_show_copyright = True\n\n# If true, an OpenSearch description file will be output, and all pages will\n# contain a <link> tag referring to it.  The value of this option must be the\n# base URL from which the finished HTML is served.\n#html_use_opensearch = ''\n\n# This is the file name suffix for HTML files (e.g. \".xhtml\").\n#html_file_suffix = None\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'Pootledoc'\n\n\n# -- Options for LaTeX output -------------------------------------------------\n\nlatex_elements = {\n# The paper size ('letterpaper' or 'a4paper').\n#'papersize': 'letterpaper',\n\n# The font size ('10pt', '11pt' or '12pt').\n#'pointsize': '10pt',\n\n# Additional stuff for the LaTeX preamble.\n#'preamble': '',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title, author, documentclass [howto/manual])\nlatex_documents = [\n  ('index', 'Pootle.tex', u'Pootle Documentation',\n   u'Translate.org.za', 'manual'),\n]\n\n# The name of an image file (relative to this directory) to place at the top of\n# the title page.\n#latex_logo = None\n\n# For \"manual\" documents, if this is true, then toplevel headings are parts,\n# not chapters.\n#latex_use_parts = False\n\n# If true, show page references after internal links.\n#latex_show_pagerefs = False\n\n# If true, show URL addresses after external links.\n#latex_show_urls = False\n\n# Documents to append as an appendix to all manuals.\n#latex_appendices = []\n\n# If false, no module index is generated.\n#latex_domain_indices = True\n\n\n# -- Options for manual page output -------------------------------------------\n\n# One entry per manual page. List of tuples\n# (source start file, name, description, authors, manual section).\nman_pages = [\n    ('index', 'pootle', u'Pootle Documentation',\n     [u'Translate.org.za'], 1)\n]\n\n# If true, show URL addresses after external links.\n#man_show_urls = False\n\n\n# -- Options for Texinfo output -----------------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n#  dir menu entry, description, category)\ntexinfo_documents = [\n  ('index', 'Pootle', u'Pootle Documentation',\n   u'Translate.org.za', 'Pootle', 'Online translation tool.',\n   'Miscellaneous'),\n]\n\n# Documents to append as an appendix to all manuals.\n#texinfo_appendices = []\n\n# If false, no module index is generated.\n#texinfo_domain_indices = True\n\n# How to display URL addresses: 'footnote', 'no', or 'inline'.\n#texinfo_show_urls = 'footnote'\n\n\n# -- Options for Intersphinx -------------------------------------------------\n\nintersphinx_mapping = {\n    'python': ('https://docs.python.org/2.7', None),\n    'django': ('https://docs.djangoproject.com/en/dev',\n        'https://docs.djangoproject.com/en/dev/_objects'),\n    'toolkit': ('http://docs.translatehouse.org/projects/translate-toolkit/en/latest/', None),\n    'south':  ('https://south.readthedocs.org/en/latest/', None),\n    'tastypie':  ('https://django-tastypie.readthedocs.org/en/latest/', None),\n}\n\n\n# -- Options for External links -------------------------------------------------\n\nextlinks = {\n    # :role: (URL, prefix)\n    'bug': ('http://bugs.locamotion.org/show_bug.cgi?id=%s', 'bug '),\n    'man': ('http://linux.die.net/man/1/%s', ''),\n    'wiki': ('http://translate.sourceforge.net/wiki/%s', ''),\n    'wp': ('https://en.wikipedia.org/wiki/%s', ''),\n}\n\n# -- Options for Gettext -------------------------------------------------\n\nlocale_dirs = [\"_translations/\"]\ngettext_compact = False\n", "path": "docs/conf.py"}]}