We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[DOCS] Update links to bokehplots.com, gitter and mailing-list
Dev documentation still points to https://bokehplots.com/pages/contact.html.  bokehplots.com has out-dated information and is being deprecated.  On the gitter @bryevdv said he want's those links to point to bokeh.org instead.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `sphinx/source/conf.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3 from os.path import abspath, dirname, join
4 
5 #
6 # Bokeh documentation build configuration file, created by
7 # sphinx-quickstart on Sat Oct 12 23:43:03 2013.
8 #
9 # This file is execfile()d with the current directory set to its containing dir.
10 #
11 # Note that not all possible configuration values are present in this
12 # autogenerated file.
13 #
14 # All configuration values have a default; values that are commented out
15 # serve to show the default.
16 
17 # If extensions (or modules to document with autodoc) are in another directory,
18 # add these directories to sys.path here. If the directory is relative to the
19 # documentation root, use os.path.abspath to make it absolute, like shown here.
20 #sys.path.insert(0, os.path.abspath('.'))
21 
22 # -- General configuration -----------------------------------------------------
23 
24 # If your documentation needs a minimal Sphinx version, state it here.
25 needs_sphinx = '1.8'
26 
27 # Add any Sphinx extension module names here, as strings. They can be extensions
28 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
29 extensions = [
30     'sphinx.ext.autodoc',
31     'sphinx.ext.autosummary',
32     'sphinx.ext.ifconfig',
33     'sphinx.ext.napoleon',
34     'sphinx.ext.intersphinx',
35     'sphinx.ext.viewcode',
36     'bokeh.sphinxext.bokeh_autodoc',
37     'bokeh.sphinxext.bokeh_color',
38     'bokeh.sphinxext.bokeh_enum',
39     'bokeh.sphinxext.bokeh_gallery',
40     'bokeh.sphinxext.bokeh_github',
41     'bokeh.sphinxext.bokeh_jinja',
42     'bokeh.sphinxext.bokeh_model',
43     'bokeh.sphinxext.bokeh_options',
44     'bokeh.sphinxext.bokeh_palette',
45     'bokeh.sphinxext.bokeh_palette_group',
46     'bokeh.sphinxext.bokeh_plot',
47     'bokeh.sphinxext.bokeh_prop',
48     'bokeh.sphinxext.bokeh_releases',
49     'bokeh.sphinxext.bokeh_sitemap',
50     'bokeh.sphinxext.bokehjs_content',
51     'bokeh.sphinxext.collapsible_code_block',
52 ]
53 
54 napoleon_include_init_with_doc = True
55 
56 # Add any paths that contain templates here, relative to this directory.
57 templates_path = ['_templates']
58 
59 # The suffix of source filenames.
60 source_suffix = '.rst'
61 
62 # The encoding of source files.
63 #source_encoding = 'utf-8-sig'
64 
65 # The master toctree document.
66 master_doc = 'index'
67 
68 # General information about the project.
69 project = 'Bokeh'
70 copyright = '© Copyright 2015-2018, Anaconda and Bokeh Contributors.'
71 
72 # Get the standard computed Bokeh version string to use for |version|
73 # and |release|
74 from bokeh import __version__
75 
76 # The short X.Y version.
77 version = __version__
78 # The full version, including alpha/beta/rc tags.
79 release = __version__
80 
81 # Check for version override (e.g. when re-deploying a previously released
82 # docs, or when pushing test docs that do not have a corresponding BokehJS
83 # available on CDN)
84 from bokeh.settings import settings
85 if settings.docs_version():
86     version = release = settings.docs_version()
87 
88 # get all the versions that will appear in the version dropdown
89 f = open(join(dirname(abspath(__file__)), "all_versions.txt"))
90 all_versions = [x.strip() for x in reversed(f.readlines())]
91 
92 # The language for content autogenerated by Sphinx. Refer to documentation
93 # for a list of supported languages.
94 #language = None
95 
96 # There are two options for replacing |today|: either, you set today to some
97 # non-false value, then it is used:
98 #today = ''
99 # Else, today_fmt is used as the format for a strftime call.
100 #today_fmt = '%B %d, %Y'
101 
102 # List of patterns, relative to source directory, that match files and
103 # directories to ignore when looking for source files.
104 #
105 # NOTE: in these docs all .py script are assumed to be bokeh plot scripts!
106 # with bokeh_plot_pyfile_include_dirs set desired folder to look for .py files
107 bokeh_plot_pyfile_include_dirs = ['docs']
108 
109 # Whether to allow builds to succeed if a Google API key is not defined and plots
110 # containing "GOOGLE_API_KEY" are processed
111 bokeh_missing_google_api_key_ok = False
112 
113 # The reST default role (used for this markup: `text`) to use for all documents.
114 #default_role = None
115 
116 # If true, '()' will be appended to :func: etc. cross-reference text.
117 #add_function_parentheses = True
118 
119 # If true, the current module name will be prepended to all description
120 # unit titles (such as .. function::).
121 add_module_names = False
122 
123 # If true, sectionauthor and moduleauthor directives will be shown in the
124 # output. They are ignored by default.
125 #show_authors = False
126 
127 # The name of the Pygments (syntax highlighting) style to use.
128 pygments_style = 'sphinx'
129 
130 # A list of ignored prefixes for module index sorting.
131 #modindex_common_prefix = []
132 
133 # Sort members by type
134 autodoc_member_order = 'groupwise'
135 
136 # patterns to exclude
137 exclude_patterns = ['docs/releases/*']
138 
139 # This would more properly be done with rst_epilog but something about
140 # the combination of this with the bokeh-gallery directive breaks the build
141 rst_prolog = """
142 .. |Color|              replace:: :py:class:`~bokeh.core.properties.Color`
143 .. |DataSpec|           replace:: :py:class:`~bokeh.core.properties.DataSpec`
144 .. |Document|           replace:: :py:class:`~bokeh.document.Document`
145 .. |HasProps|           replace:: :py:class:`~bokeh.core.has_props.HasProps`
146 .. |Model|              replace:: :py:class:`~bokeh.model.Model`
147 .. |Property|           replace:: :py:class:`~bokeh.core.property.bases.Property`
148 .. |PropertyDescriptor| replace:: :py:class:`~bokeh.core.property.descriptor.PropertyDescriptor`
149 .. |PropertyContainer|  replace:: :py:class:`~bokeh.core.property.wrappers.PropertyContainer`
150 .. |UnitsSpec|          replace:: :py:class:`~bokeh.core.properties.UnitsSpec`
151 
152 .. |field|              replace:: :py:func:`~bokeh.core.properties.field`
153 .. |value|              replace:: :py:func:`~bokeh.core.properties.value`
154 """
155 
156 # -- Options for HTML output ---------------------------------------------------
157 
158 # The theme to use for HTML and HTML Help pages.  See the documentation for
159 # a list of builtin themes.
160 html_theme = 'bokeh_theme'
161 html_theme_path = ['.']
162 
163 html_context = {
164     'SITEMAP_BASE_URL': 'https://bokeh.pydata.org/en/', # Trailing slash is needed
165     'DESCRIPTION': 'Bokeh visualization library, documentation site.',
166     'AUTHOR': 'Bokeh contributors',
167     'VERSION': version,
168     'NAV': (
169         ('Github', '//github.com/bokeh/bokeh'),
170     ),
171     'ABOUT': (
172         ('Vision and Work', 'vision'),
173         ('Team',            'team'),
174         ('Citation',        'citation'),
175         ('Contact',         'contact'),
176     ),
177     'SOCIAL': (
178         ('Contribute', 'contribute'),
179         ('Mailing list', '//groups.google.com/a/anaconda.com/forum/#!forum/bokeh'),
180         ('Github', '//github.com/bokeh/bokeh'),
181         ('Twitter', '//twitter.com/BokehPlots'),
182     ),
183     'NAV_DOCS': (
184         ('Installation', 'installation'),
185         ('User Guide', 'user_guide'),
186         ('Gallery', 'gallery'),
187         ('Tutorial', 'https://mybinder.org/v2/gh/bokeh/bokeh-notebooks/master?filepath=tutorial%2F00%20-%20Introduction%20and%20Setup.ipynb'),
188         ('Reference', 'reference'),
189         ('Releases', 'releases'),
190         ('Developer Guide', 'dev_guide'),
191     ),
192     'ALL_VERSIONS': all_versions,
193 }
194 
195 # If true, links to the reST sources are added to the pages.
196 html_show_sourcelink = True
197 
198 # Output file base name for HTML help builder.
199 htmlhelp_basename = 'Bokehdoc'
200 
201 # -- Options for LaTeX output --------------------------------------------------
202 
203 latex_elements = {
204     # The paper size ('letterpaper' or 'a4paper').
205     #'papersize': 'letterpaper',
206 
207     # The font size ('10pt', '11pt' or '12pt').
208     #'pointsize': '10pt',
209 
210     # Additional stuff for the LaTeX preamble.
211     #'preamble': '',
212 }
213 
214 # Grouping the document tree into LaTeX files. List of tuples
215 # (source start file, target name, title, author, documentclass [howto/manual]).
216 latex_documents = [
217     ('index', 'Bokeh.tex', u'Bokeh Documentation', u'Anaconda', 'manual'),
218 ]
219 
220 # The name of an image file (relative to this directory) to place at the top of
221 # the title page.
222 #latex_logo = None
223 
224 # For "manual" documents, if this is true, then toplevel headings are parts,
225 # not chapters.
226 #latex_use_parts = False
227 
228 # If true, show page references after internal links.
229 #latex_show_pagerefs = False
230 
231 # If true, show URL addresses after external links.
232 #latex_show_urls = False
233 
234 # Documents to append as an appendix to all manuals.
235 #latex_appendices = []
236 
237 # If false, no module index is generated.
238 #latex_domain_indices = True
239 
240 
241 # -- Options for manual page output --------------------------------------------
242 
243 # One entry per manual page. List of tuples
244 # (source start file, name, description, authors, manual section).
245 man_pages = [
246     ('index', 'bokeh', u'Bokeh Documentation',
247      [u'Anaconda'], 1)
248 ]
249 
250 # If true, show URL addresses after external links.
251 #man_show_urls = False
252 
253 
254 # -- Options for Texinfo output ------------------------------------------------
255 
256 # Grouping the document tree into Texinfo files. List of tuples
257 # (source start file, target name, title, author,
258 #  dir menu entry, description, category)
259 texinfo_documents = [
260     ('index', 'Bokeh', u'Bokeh Documentation', u'Anaconda', 'Bokeh', 'Interactive Web Plotting for Python', 'Graphics'),
261 ]
262 
263 # Documents to append as an appendix to all manuals.
264 #texinfo_appendices = []
265 
266 # If false, no module index is generated.
267 #texinfo_domain_indices = True
268 
269 # How to display URL addresses: 'footnote', 'no', or 'inline'.
270 #texinfo_show_urls = 'footnote'
271 
272 # intersphinx settings
273 intersphinx_mapping = {
274     'python': ('https://docs.python.org/3/', None),
275     'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None),
276     'numpy': ('https://docs.scipy.org/doc/numpy/', None)
277 }
278
```

Path: `scripts/deps.py`
Content:
```
1 import sys
2 import platform
3 import jinja2
4 import yaml
5 
6 
7 def load_setup_py_data():
8     import os
9     import setuptools
10     os.environ['CONDA_BUILD_STATE'] = 'RENDER'
11     data = {}
12 
13     def _setup(**kw): data.update(kw)
14     setuptools.setup = _setup
15     return data
16 
17 meta_src = jinja2.Template(open("conda.recipe/meta.yaml").read())
18 meta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data),
19                      Loader=yaml.FullLoader)
20 
21 section = {
22     "build"  : meta_src["requirements"]["build"],
23     "deploy" : meta_src["extra"]["deploy"],
24     "run"    : meta_src["requirements"]["run"],
25     "test"   : meta_src["test"]["requires"],
26 }
27 
28 spec = []
29 for name in sys.argv[1:]:
30     spec += section[name]
31 
32 # bare python unpins python version causing upgrade to latest
33 if 'python' in spec: spec.remove('python')
34 
35 # add double quotes to specs for windows, fixes #9065
36 if "windows" in platform.platform().lower():
37     spec = ['"{}"'.format(s) for s in spec]
38 
39 deps = ""
40 deps += " ".join(s for s in spec)
41 deps = deps.replace(' >=', '>=')  # conda syntax doesn't allow spaces b/w pkg name and version spec
42 deps = deps.replace(' <', '<')
43 deps = deps.replace(' [unix]', ' ')
44 
45 print(deps)
46
```
--- 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/scripts/deps.py b/scripts/deps.py
--- a/scripts/deps.py
+++ b/scripts/deps.py
@@ -15,8 +15,18 @@
     return data
 
 meta_src = jinja2.Template(open("conda.recipe/meta.yaml").read())
-meta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data),
-                     Loader=yaml.FullLoader)
+try:
+    meta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data),
+                         Loader=yaml.FullLoader)
+except AttributeError as e:
+    # Loader=yaml.FullLoader added in pyyaml 5.1 because of:
+    # https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
+    # isn't available on conda for python=3.5
+    # fall back to calling without loader if it isn't available
+    if 'FullLoader' in repr(e):
+        meta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data))
+    else:
+        raise
 
 section = {
     "build"  : meta_src["requirements"]["build"],
diff --git a/sphinx/source/conf.py b/sphinx/source/conf.py
--- a/sphinx/source/conf.py
+++ b/sphinx/source/conf.py
@@ -169,14 +169,14 @@
         ('Github', '//github.com/bokeh/bokeh'),
     ),
     'ABOUT': (
-        ('Vision and Work', 'vision'),
-        ('Team',            'team'),
-        ('Citation',        'citation'),
-        ('Contact',         'contact'),
+        ('Roadmap', 'https://bokeh.org/roadmap'),
+        ('Team',            'https://bokeh.org/team'),
+        ('Citation',        'https://bokeh.org/citation'),
+        ('Contact',         'https://bokeh.org'),
     ),
     'SOCIAL': (
         ('Contribute', 'contribute'),
-        ('Mailing list', '//groups.google.com/a/anaconda.com/forum/#!forum/bokeh'),
+        ('Discourse', 'https://discourse.bokeh.org'),
         ('Github', '//github.com/bokeh/bokeh'),
         ('Twitter', '//twitter.com/BokehPlots'),
     ),

{"golden_diff": "diff --git a/scripts/deps.py b/scripts/deps.py\n--- a/scripts/deps.py\n+++ b/scripts/deps.py\n@@ -15,8 +15,18 @@\n     return data\n \n meta_src = jinja2.Template(open(\"conda.recipe/meta.yaml\").read())\n-meta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data),\n-                     Loader=yaml.FullLoader)\n+try:\n+    meta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data),\n+                         Loader=yaml.FullLoader)\n+except AttributeError as e:\n+    # Loader=yaml.FullLoader added in pyyaml 5.1 because of:\n+    # https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation\n+    # isn't available on conda for python=3.5\n+    # fall back to calling without loader if it isn't available\n+    if 'FullLoader' in repr(e):\n+        meta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data))\n+    else:\n+        raise\n \n section = {\n     \"build\"  : meta_src[\"requirements\"][\"build\"],\ndiff --git a/sphinx/source/conf.py b/sphinx/source/conf.py\n--- a/sphinx/source/conf.py\n+++ b/sphinx/source/conf.py\n@@ -169,14 +169,14 @@\n         ('Github', '//github.com/bokeh/bokeh'),\n     ),\n     'ABOUT': (\n-        ('Vision and Work', 'vision'),\n-        ('Team',            'team'),\n-        ('Citation',        'citation'),\n-        ('Contact',         'contact'),\n+        ('Roadmap', 'https://bokeh.org/roadmap'),\n+        ('Team',            'https://bokeh.org/team'),\n+        ('Citation',        'https://bokeh.org/citation'),\n+        ('Contact',         'https://bokeh.org'),\n     ),\n     'SOCIAL': (\n         ('Contribute', 'contribute'),\n-        ('Mailing list', '//groups.google.com/a/anaconda.com/forum/#!forum/bokeh'),\n+        ('Discourse', 'https://discourse.bokeh.org'),\n         ('Github', '//github.com/bokeh/bokeh'),\n         ('Twitter', '//twitter.com/BokehPlots'),\n     ),\n", "issue": "[DOCS] Update links to bokehplots.com, gitter and mailing-list\nDev documentation still points to https://bokehplots.com/pages/contact.html.  bokehplots.com has out-dated information and is being deprecated.  On the gitter @bryevdv said he want's those links to point to bokeh.org instead.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nfrom os.path import abspath, dirname, join\n\n#\n# Bokeh documentation build configuration file, created by\n# sphinx-quickstart on Sat Oct 12 23:43:03 2013.\n#\n# This file is execfile()d with the current directory set to its containing 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\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\n# -- General configuration -----------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\nneeds_sphinx = '1.8'\n\n# Add any Sphinx extension module names here, as strings. They can be extensions\n# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.\nextensions = [\n    'sphinx.ext.autodoc',\n    'sphinx.ext.autosummary',\n    'sphinx.ext.ifconfig',\n    'sphinx.ext.napoleon',\n    'sphinx.ext.intersphinx',\n    'sphinx.ext.viewcode',\n    'bokeh.sphinxext.bokeh_autodoc',\n    'bokeh.sphinxext.bokeh_color',\n    'bokeh.sphinxext.bokeh_enum',\n    'bokeh.sphinxext.bokeh_gallery',\n    'bokeh.sphinxext.bokeh_github',\n    'bokeh.sphinxext.bokeh_jinja',\n    'bokeh.sphinxext.bokeh_model',\n    'bokeh.sphinxext.bokeh_options',\n    'bokeh.sphinxext.bokeh_palette',\n    'bokeh.sphinxext.bokeh_palette_group',\n    'bokeh.sphinxext.bokeh_plot',\n    'bokeh.sphinxext.bokeh_prop',\n    'bokeh.sphinxext.bokeh_releases',\n    'bokeh.sphinxext.bokeh_sitemap',\n    'bokeh.sphinxext.bokehjs_content',\n    'bokeh.sphinxext.collapsible_code_block',\n]\n\nnapoleon_include_init_with_doc = True\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 = 'Bokeh'\ncopyright = '\u00a9 Copyright 2015-2018, Anaconda and Bokeh Contributors.'\n\n# Get the standard computed Bokeh version string to use for |version|\n# and |release|\nfrom bokeh import __version__\n\n# The short X.Y version.\nversion = __version__\n# The full version, including alpha/beta/rc tags.\nrelease = __version__\n\n# Check for version override (e.g. when re-deploying a previously released\n# docs, or when pushing test docs that do not have a corresponding BokehJS\n# available on CDN)\nfrom bokeh.settings import settings\nif settings.docs_version():\n    version = release = settings.docs_version()\n\n# get all the versions that will appear in the version dropdown\nf = open(join(dirname(abspath(__file__)), \"all_versions.txt\"))\nall_versions = [x.strip() for x in reversed(f.readlines())]\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.\n#\n# NOTE: in these docs all .py script are assumed to be bokeh plot scripts!\n# with bokeh_plot_pyfile_include_dirs set desired folder to look for .py files\nbokeh_plot_pyfile_include_dirs = ['docs']\n\n# Whether to allow builds to succeed if a Google API key is not defined and plots\n# containing \"GOOGLE_API_KEY\" are processed\nbokeh_missing_google_api_key_ok = False\n\n# The reST default role (used for this markup: `text`) to use for all 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::).\nadd_module_names = False\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# Sort members by type\nautodoc_member_order = 'groupwise'\n\n# patterns to exclude\nexclude_patterns = ['docs/releases/*']\n\n# This would more properly be done with rst_epilog but something about\n# the combination of this with the bokeh-gallery directive breaks the build\nrst_prolog = \"\"\"\n.. |Color|              replace:: :py:class:`~bokeh.core.properties.Color`\n.. |DataSpec|           replace:: :py:class:`~bokeh.core.properties.DataSpec`\n.. |Document|           replace:: :py:class:`~bokeh.document.Document`\n.. |HasProps|           replace:: :py:class:`~bokeh.core.has_props.HasProps`\n.. |Model|              replace:: :py:class:`~bokeh.model.Model`\n.. |Property|           replace:: :py:class:`~bokeh.core.property.bases.Property`\n.. |PropertyDescriptor| replace:: :py:class:`~bokeh.core.property.descriptor.PropertyDescriptor`\n.. |PropertyContainer|  replace:: :py:class:`~bokeh.core.property.wrappers.PropertyContainer`\n.. |UnitsSpec|          replace:: :py:class:`~bokeh.core.properties.UnitsSpec`\n\n.. |field|              replace:: :py:func:`~bokeh.core.properties.field`\n.. |value|              replace:: :py:func:`~bokeh.core.properties.value`\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 = 'bokeh_theme'\nhtml_theme_path = ['.']\n\nhtml_context = {\n    'SITEMAP_BASE_URL': 'https://bokeh.pydata.org/en/', # Trailing slash is needed\n    'DESCRIPTION': 'Bokeh visualization library, documentation site.',\n    'AUTHOR': 'Bokeh contributors',\n    'VERSION': version,\n    'NAV': (\n        ('Github', '//github.com/bokeh/bokeh'),\n    ),\n    'ABOUT': (\n        ('Vision and Work', 'vision'),\n        ('Team',            'team'),\n        ('Citation',        'citation'),\n        ('Contact',         'contact'),\n    ),\n    'SOCIAL': (\n        ('Contribute', 'contribute'),\n        ('Mailing list', '//groups.google.com/a/anaconda.com/forum/#!forum/bokeh'),\n        ('Github', '//github.com/bokeh/bokeh'),\n        ('Twitter', '//twitter.com/BokehPlots'),\n    ),\n    'NAV_DOCS': (\n        ('Installation', 'installation'),\n        ('User Guide', 'user_guide'),\n        ('Gallery', 'gallery'),\n        ('Tutorial', 'https://mybinder.org/v2/gh/bokeh/bokeh-notebooks/master?filepath=tutorial%2F00%20-%20Introduction%20and%20Setup.ipynb'),\n        ('Reference', 'reference'),\n        ('Releases', 'releases'),\n        ('Developer Guide', 'dev_guide'),\n    ),\n    'ALL_VERSIONS': all_versions,\n}\n\n# If true, links to the reST sources are added to the pages.\nhtml_show_sourcelink = True\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'Bokehdoc'\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', 'Bokeh.tex', u'Bokeh Documentation', u'Anaconda', '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', 'bokeh', u'Bokeh Documentation',\n     [u'Anaconda'], 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', 'Bokeh', u'Bokeh Documentation', u'Anaconda', 'Bokeh', 'Interactive Web Plotting for Python', 'Graphics'),\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# intersphinx settings\nintersphinx_mapping = {\n    'python': ('https://docs.python.org/3/', None),\n    'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None),\n    'numpy': ('https://docs.scipy.org/doc/numpy/', None)\n}\n", "path": "sphinx/source/conf.py"}, {"content": "import sys\nimport platform\nimport jinja2\nimport yaml\n\n\ndef load_setup_py_data():\n    import os\n    import setuptools\n    os.environ['CONDA_BUILD_STATE'] = 'RENDER'\n    data = {}\n\n    def _setup(**kw): data.update(kw)\n    setuptools.setup = _setup\n    return data\n\nmeta_src = jinja2.Template(open(\"conda.recipe/meta.yaml\").read())\nmeta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data),\n                     Loader=yaml.FullLoader)\n\nsection = {\n    \"build\"  : meta_src[\"requirements\"][\"build\"],\n    \"deploy\" : meta_src[\"extra\"][\"deploy\"],\n    \"run\"    : meta_src[\"requirements\"][\"run\"],\n    \"test\"   : meta_src[\"test\"][\"requires\"],\n}\n\nspec = []\nfor name in sys.argv[1:]:\n    spec += section[name]\n\n# bare python unpins python version causing upgrade to latest\nif 'python' in spec: spec.remove('python')\n\n# add double quotes to specs for windows, fixes #9065\nif \"windows\" in platform.platform().lower():\n    spec = ['\"{}\"'.format(s) for s in spec]\n\ndeps = \"\"\ndeps += \" \".join(s for s in spec)\ndeps = deps.replace(' >=', '>=')  # conda syntax doesn't allow spaces b/w pkg name and version spec\ndeps = deps.replace(' <', '<')\ndeps = deps.replace(' [unix]', ' ')\n\nprint(deps)\n", "path": "scripts/deps.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nfrom os.path import abspath, dirname, join\n\n#\n# Bokeh documentation build configuration file, created by\n# sphinx-quickstart on Sat Oct 12 23:43:03 2013.\n#\n# This file is execfile()d with the current directory set to its containing 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\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\n# -- General configuration -----------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\nneeds_sphinx = '1.8'\n\n# Add any Sphinx extension module names here, as strings. They can be extensions\n# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.\nextensions = [\n    'sphinx.ext.autodoc',\n    'sphinx.ext.autosummary',\n    'sphinx.ext.ifconfig',\n    'sphinx.ext.napoleon',\n    'sphinx.ext.intersphinx',\n    'sphinx.ext.viewcode',\n    'bokeh.sphinxext.bokeh_autodoc',\n    'bokeh.sphinxext.bokeh_color',\n    'bokeh.sphinxext.bokeh_enum',\n    'bokeh.sphinxext.bokeh_gallery',\n    'bokeh.sphinxext.bokeh_github',\n    'bokeh.sphinxext.bokeh_jinja',\n    'bokeh.sphinxext.bokeh_model',\n    'bokeh.sphinxext.bokeh_options',\n    'bokeh.sphinxext.bokeh_palette',\n    'bokeh.sphinxext.bokeh_palette_group',\n    'bokeh.sphinxext.bokeh_plot',\n    'bokeh.sphinxext.bokeh_prop',\n    'bokeh.sphinxext.bokeh_releases',\n    'bokeh.sphinxext.bokeh_sitemap',\n    'bokeh.sphinxext.bokehjs_content',\n    'bokeh.sphinxext.collapsible_code_block',\n]\n\nnapoleon_include_init_with_doc = True\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 = 'Bokeh'\ncopyright = '\u00a9 Copyright 2015-2018, Anaconda and Bokeh Contributors.'\n\n# Get the standard computed Bokeh version string to use for |version|\n# and |release|\nfrom bokeh import __version__\n\n# The short X.Y version.\nversion = __version__\n# The full version, including alpha/beta/rc tags.\nrelease = __version__\n\n# Check for version override (e.g. when re-deploying a previously released\n# docs, or when pushing test docs that do not have a corresponding BokehJS\n# available on CDN)\nfrom bokeh.settings import settings\nif settings.docs_version():\n    version = release = settings.docs_version()\n\n# get all the versions that will appear in the version dropdown\nf = open(join(dirname(abspath(__file__)), \"all_versions.txt\"))\nall_versions = [x.strip() for x in reversed(f.readlines())]\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.\n#\n# NOTE: in these docs all .py script are assumed to be bokeh plot scripts!\n# with bokeh_plot_pyfile_include_dirs set desired folder to look for .py files\nbokeh_plot_pyfile_include_dirs = ['docs']\n\n# Whether to allow builds to succeed if a Google API key is not defined and plots\n# containing \"GOOGLE_API_KEY\" are processed\nbokeh_missing_google_api_key_ok = False\n\n# The reST default role (used for this markup: `text`) to use for all 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::).\nadd_module_names = False\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# Sort members by type\nautodoc_member_order = 'groupwise'\n\n# patterns to exclude\nexclude_patterns = ['docs/releases/*']\n\n# This would more properly be done with rst_epilog but something about\n# the combination of this with the bokeh-gallery directive breaks the build\nrst_prolog = \"\"\"\n.. |Color|              replace:: :py:class:`~bokeh.core.properties.Color`\n.. |DataSpec|           replace:: :py:class:`~bokeh.core.properties.DataSpec`\n.. |Document|           replace:: :py:class:`~bokeh.document.Document`\n.. |HasProps|           replace:: :py:class:`~bokeh.core.has_props.HasProps`\n.. |Model|              replace:: :py:class:`~bokeh.model.Model`\n.. |Property|           replace:: :py:class:`~bokeh.core.property.bases.Property`\n.. |PropertyDescriptor| replace:: :py:class:`~bokeh.core.property.descriptor.PropertyDescriptor`\n.. |PropertyContainer|  replace:: :py:class:`~bokeh.core.property.wrappers.PropertyContainer`\n.. |UnitsSpec|          replace:: :py:class:`~bokeh.core.properties.UnitsSpec`\n\n.. |field|              replace:: :py:func:`~bokeh.core.properties.field`\n.. |value|              replace:: :py:func:`~bokeh.core.properties.value`\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 = 'bokeh_theme'\nhtml_theme_path = ['.']\n\nhtml_context = {\n    'SITEMAP_BASE_URL': 'https://bokeh.pydata.org/en/', # Trailing slash is needed\n    'DESCRIPTION': 'Bokeh visualization library, documentation site.',\n    'AUTHOR': 'Bokeh contributors',\n    'VERSION': version,\n    'NAV': (\n        ('Github', '//github.com/bokeh/bokeh'),\n    ),\n    'ABOUT': (\n        ('Roadmap', 'https://bokeh.org/roadmap'),\n        ('Team',            'https://bokeh.org/team'),\n        ('Citation',        'https://bokeh.org/citation'),\n        ('Contact',         'https://bokeh.org'),\n    ),\n    'SOCIAL': (\n        ('Contribute', 'contribute'),\n        ('Discourse', 'https://discourse.bokeh.org'),\n        ('Github', '//github.com/bokeh/bokeh'),\n        ('Twitter', '//twitter.com/BokehPlots'),\n    ),\n    'NAV_DOCS': (\n        ('Installation', 'installation'),\n        ('User Guide', 'user_guide'),\n        ('Gallery', 'gallery'),\n        ('Tutorial', 'https://mybinder.org/v2/gh/bokeh/bokeh-notebooks/master?filepath=tutorial%2F00%20-%20Introduction%20and%20Setup.ipynb'),\n        ('Reference', 'reference'),\n        ('Releases', 'releases'),\n        ('Developer Guide', 'dev_guide'),\n    ),\n    'ALL_VERSIONS': all_versions,\n}\n\n# If true, links to the reST sources are added to the pages.\nhtml_show_sourcelink = True\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'Bokehdoc'\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', 'Bokeh.tex', u'Bokeh Documentation', u'Anaconda', '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', 'bokeh', u'Bokeh Documentation',\n     [u'Anaconda'], 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', 'Bokeh', u'Bokeh Documentation', u'Anaconda', 'Bokeh', 'Interactive Web Plotting for Python', 'Graphics'),\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# intersphinx settings\nintersphinx_mapping = {\n    'python': ('https://docs.python.org/3/', None),\n    'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None),\n    'numpy': ('https://docs.scipy.org/doc/numpy/', None)\n}\n", "path": "sphinx/source/conf.py"}, {"content": "import sys\nimport platform\nimport jinja2\nimport yaml\n\n\ndef load_setup_py_data():\n    import os\n    import setuptools\n    os.environ['CONDA_BUILD_STATE'] = 'RENDER'\n    data = {}\n\n    def _setup(**kw): data.update(kw)\n    setuptools.setup = _setup\n    return data\n\nmeta_src = jinja2.Template(open(\"conda.recipe/meta.yaml\").read())\ntry:\n    meta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data),\n                         Loader=yaml.FullLoader)\nexcept AttributeError as e:\n    # Loader=yaml.FullLoader added in pyyaml 5.1 because of:\n    # https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation\n    # isn't available on conda for python=3.5\n    # fall back to calling without loader if it isn't available\n    if 'FullLoader' in repr(e):\n        meta_src = yaml.load(meta_src.render(load_setup_py_data=load_setup_py_data))\n    else:\n        raise\n\nsection = {\n    \"build\"  : meta_src[\"requirements\"][\"build\"],\n    \"deploy\" : meta_src[\"extra\"][\"deploy\"],\n    \"run\"    : meta_src[\"requirements\"][\"run\"],\n    \"test\"   : meta_src[\"test\"][\"requires\"],\n}\n\nspec = []\nfor name in sys.argv[1:]:\n    spec += section[name]\n\n# bare python unpins python version causing upgrade to latest\nif 'python' in spec: spec.remove('python')\n\n# add double quotes to specs for windows, fixes #9065\nif \"windows\" in platform.platform().lower():\n    spec = ['\"{}\"'.format(s) for s in spec]\n\ndeps = \"\"\ndeps += \" \".join(s for s in spec)\ndeps = deps.replace(' >=', '>=')  # conda syntax doesn't allow spaces b/w pkg name and version spec\ndeps = deps.replace(' <', '<')\ndeps = deps.replace(' [unix]', ' ')\n\nprint(deps)\n", "path": "scripts/deps.py"}]}