We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Added textInput placeholder in winforms
Added placeholder implementation to textInput in winforms. The code could be extracted to winforms.libs so that it could be reused on multilineTextInput, but I couldn't get it to work.

Also changed winforms specific handler name to winforms_ prefixed name.

<!--- Describe your changes in detail -->
<!--- What problem does this change solve? -->
<!--- If this PR relates to an issue, include Refs #XXX or Fixes #XXX -->

## PR Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
- [x] All new features have been tested
- [ ] All new features have been documented
- [x] I have read the **CONTRIBUTING.md** file
- [x] I will abide by the code of conduct


--- 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 # Toga documentation build configuration file, created by
4 # sphinx-quickstart on Sat Jul 27 14:58:42 2013.
5 #
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 
14 # If extensions (or modules to document with autodoc) are in another directory,
15 # add these directories to sys.path here. If the directory is relative to the
16 # documentation root, use os.path.abspath to make it absolute, like shown here.
17 import sys
18 import os
19 sys.path.insert(0, os.path.abspath('../src/core/'))
20 
21 # -- General configuration -----------------------------------------------------
22 
23 # If your documentation needs a minimal Sphinx version, state it here.
24 #needs_sphinx = '1.0'
25 
26 # Add any Sphinx extension module names here, as strings. They can be extensions
27 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx_tabs.tabs']
29 
30 # Add any paths that contain templates here, relative to this directory.
31 templates_path = ['_templates']
32 
33 # The suffix of source filenames.
34 source_suffix = '.rst'
35 
36 # The encoding of source files.
37 #source_encoding = 'utf-8-sig'
38 
39 # The master toctree document.
40 master_doc = 'index'
41 
42 # General information about the project.
43 project = u'Toga'
44 copyright = u'2013, Russell Keith-Magee'
45 
46 # The version info for the project you're documenting, acts as replacement for
47 # |version| and |release|, also used in various other places throughout the
48 # built documents.
49 #
50 # The full version, including alpha/beta/rc tags.
51 import io, re
52 with io.open('../src/core/toga/__init__.py', encoding='utf8') as version_file:
53     version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.M)
54     if version_match:
55         release = version_match.group(1)
56     else:
57         raise RuntimeError("Unable to find version string.")
58 
59 # The short X.Y version.
60 version = '.'.join(release.split('.')[:2])
61 
62 # Fix the autodoc import issues
63 os.environ['TOGA_PLATFORM'] = 'dummy'
64 
65 autoclass_content = 'both'
66 
67 # The language for content autogenerated by Sphinx. Refer to documentation
68 # for a list of supported languages.
69 #language = None
70 
71 # There are two options for replacing |today|: either, you set today to some
72 # non-false value, then it is used:
73 #today = ''
74 # Else, today_fmt is used as the format for a strftime call.
75 #today_fmt = '%B %d, %Y'
76 
77 # List of patterns, relative to source directory, that match files and
78 # directories to ignore when looking for source files.
79 exclude_patterns = ['_build']
80 
81 # The reST default role (used for this markup: `text`) to use for all documents.
82 #default_role = None
83 
84 # If true, '()' will be appended to :func: etc. cross-reference text.
85 #add_function_parentheses = True
86 
87 # If true, the current module name will be prepended to all description
88 # unit titles (such as .. function::).
89 #add_module_names = True
90 
91 # If true, sectionauthor and moduleauthor directives will be shown in the
92 # output. They are ignored by default.
93 #show_authors = False
94 
95 # The name of the Pygments (syntax highlighting) style to use.
96 pygments_style = 'sphinx'
97 
98 # A list of ignored prefixes for module index sorting.
99 #modindex_common_prefix = []
100 
101 
102 # -- Options for HTML output ---------------------------------------------------
103 
104 # on_rtd: whether we are on readthedocs.org
105 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
106 
107 if not on_rtd:  # only import and set the theme if we're building docs locally
108     try:
109         import sphinx_rtd_theme
110     except ModuleNotFoundError:
111         html_theme = 'default'
112     else:
113         html_theme = 'sphinx_rtd_theme'
114         html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
115 
116 # Theme options are theme-specific and customize the look and feel of a theme
117 # further.  For a list of options available for each theme, see the
118 # documentation.
119 #html_theme_options = {}
120 
121 # Add any paths that contain custom themes here, relative to this directory.
122 #html_theme_path = []
123 
124 # The name for this set of Sphinx documents.  If None, it defaults to
125 # "<project> v<release> documentation".
126 #html_title = None
127 
128 # A shorter title for the navigation bar.  Default is the same as html_title.
129 #html_short_title = None
130 
131 # The name of an image file (relative to this directory) to place at the top
132 # of the sidebar.
133 html_logo = "images/toga.png"
134 
135 # The name of an image file (within the static path) to use as favicon of the
136 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
137 # pixels large.
138 #html_favicon = None
139 
140 # Add any paths that contain custom static files (such as style sheets) here,
141 # relative to this directory. They are copied after the builtin static files,
142 # so a file named "default.css" will overwrite the builtin "default.css".
143 html_static_path = ['_static']
144 
145 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
146 # using the given strftime format.
147 #html_last_updated_fmt = '%b %d, %Y'
148 
149 # If true, SmartyPants will be used to convert quotes and dashes to
150 # typographically correct entities.
151 #html_use_smartypants = True
152 
153 # Custom sidebar templates, maps document names to template names.
154 #html_sidebars = {}
155 
156 # Additional templates that should be rendered to pages, maps page names to
157 # template names.
158 #html_additional_pages = {}
159 
160 # If false, no module index is generated.
161 #html_domain_indices = True
162 
163 # If false, no index is generated.
164 #html_use_index = True
165 
166 # If true, the index is split into individual pages for each letter.
167 #html_split_index = False
168 
169 # If true, links to the reST sources are added to the pages.
170 #html_show_sourcelink = True
171 
172 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
173 #html_show_sphinx = True
174 
175 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
176 #html_show_copyright = True
177 
178 # If true, an OpenSearch description file will be output, and all pages will
179 # contain a <link> tag referring to it.  The value of this option must be the
180 # base URL from which the finished HTML is served.
181 #html_use_opensearch = ''
182 
183 # This is the file name suffix for HTML files (e.g. ".xhtml").
184 #html_file_suffix = None
185 
186 # Output file base name for HTML help builder.
187 htmlhelp_basename = 'togadoc'
188 
189 try:
190     import sphinx_rtd_theme
191     html_theme = "sphinx_rtd_theme"
192     html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
193 except ImportError:
194     # The sphinx-rtd-theme package is not installed, so to the default
195     pass
196 
197 # -- Options for LaTeX output --------------------------------------------------
198 
199 latex_elements = {
200 # The paper size ('letterpaper' or 'a4paper').
201 #'papersize': 'letterpaper',
202 
203 # The font size ('10pt', '11pt' or '12pt').
204 #'pointsize': '10pt',
205 
206 # Additional stuff for the LaTeX preamble.
207 #'preamble': '',
208 }
209 
210 # Grouping the document tree into LaTeX files. List of tuples
211 # (source start file, target name, title, author, documentclass [howto/manual]).
212 latex_documents = [
213   ('index', 'toga.tex', u'Toga Documentation',
214    u'Russell Keith-Magee', 'manual'),
215 ]
216 
217 # The name of an image file (relative to this directory) to place at the top of
218 # the title page.
219 #latex_logo = None
220 
221 # For "manual" documents, if this is true, then toplevel headings are parts,
222 # not chapters.
223 #latex_use_parts = False
224 
225 # If true, show page references after internal links.
226 #latex_show_pagerefs = False
227 
228 # If true, show URL addresses after external links.
229 #latex_show_urls = False
230 
231 # Documents to append as an appendix to all manuals.
232 #latex_appendices = []
233 
234 # If false, no module index is generated.
235 #latex_domain_indices = True
236 
237 
238 # -- Options for manual page output --------------------------------------------
239 
240 # One entry per manual page. List of tuples
241 # (source start file, name, description, authors, manual section).
242 man_pages = [
243     ('index', 'toga', u'Toga Documentation',
244      [u'Russell Keith-Magee'], 1)
245 ]
246 
247 # If true, show URL addresses after external links.
248 #man_show_urls = False
249 
250 
251 # -- Options for Texinfo output ------------------------------------------------
252 
253 # Grouping the document tree into Texinfo files. List of tuples
254 # (source start file, target name, title, author,
255 #  dir menu entry, description, category)
256 texinfo_documents = [
257   ('index', 'toga', u'Toga Documentation',
258    u'Russell Keith-Magee', 'Toga', 'A Python native, OS native GUI toolkit.',
259    'Miscellaneous'),
260 ]
261 
262 # Documents to append as an appendix to all manuals.
263 #texinfo_appendices = []
264 
265 # If false, no module index is generated.
266 #texinfo_domain_indices = True
267 
268 # How to display URL addresses: 'footnote', 'no', or 'inline'.
269 #texinfo_show_urls = 'footnote'
270 
271 # -- Options for spelling -------------------------------------------
272 
273 # Spelling check needs an additional module that is not installed by default.
274 # Add it only if spelling check is requested so docs can be generated without it.
275 if 'spelling' in sys.argv:
276     extensions.append("sphinxcontrib.spelling")
277 
278 # Spelling language.
279 spelling_lang = 'en_US'
280 
281 # Location of word list.
282 spelling_word_list_filename = 'spelling_wordlist'
283 
284 spelling_ignore_pypi_package_names = True
285 
286 # -- Options for Todos -------------------------------------------
287 
288 # If this is True, todo and todolist produce output, else they produce nothing. The default is False.
289 todo_include_todos = True
290 
291 # If this is True, todo emits a warning for each TODO entries. The default is False.
292 # todo_emit_warnings = False
293 
294 # If this is True, todolist produce output without file path and line, The default is False.
295 # todo_link_only = False
296
```
--- 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
@@ -25,8 +25,7 @@
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx_tabs.tabs']
-
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx_tabs.tabs', 'crate.sphinx.csv']
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
 
@@ -194,6 +193,10 @@
     # The sphinx-rtd-theme package is not installed, so to the default
     pass
 
+html_css_files = [
+    'custom.css',
+]
+
 # -- Options for LaTeX output --------------------------------------------------
 
 latex_elements = {

{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -25,8 +25,7 @@\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.\n-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx_tabs.tabs']\n-\n+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx_tabs.tabs', 'crate.sphinx.csv']\n # Add any paths that contain templates here, relative to this directory.\n templates_path = ['_templates']\n \n@@ -194,6 +193,10 @@\n     # The sphinx-rtd-theme package is not installed, so to the default\n     pass\n \n+html_css_files = [\n+    'custom.css',\n+]\n+\n # -- Options for LaTeX output --------------------------------------------------\n \n latex_elements = {\n", "issue": "Added textInput placeholder in winforms\nAdded placeholder implementation to textInput in winforms. The code could be extracted to winforms.libs so that it could be reused on multilineTextInput, but I couldn't get it to work.\r\n\r\nAlso changed winforms specific handler name to winforms_ prefixed name.\r\n\r\n<!--- Describe your changes in detail -->\r\n<!--- What problem does this change solve? -->\r\n<!--- If this PR relates to an issue, include Refs #XXX or Fixes #XXX -->\r\n\r\n## PR Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n- [x] All new features have been tested\r\n- [ ] All new features have been documented\r\n- [x] I have read the **CONTRIBUTING.md** file\r\n- [x] I will abide by the code of conduct\r\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# Toga documentation build configuration file, created by\n# sphinx-quickstart on Sat Jul 27 14:58:42 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.\nimport sys\nimport os\nsys.path.insert(0, os.path.abspath('../src/core/'))\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 extensions\n# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx_tabs.tabs']\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'Toga'\ncopyright = u'2013, Russell Keith-Magee'\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 full version, including alpha/beta/rc tags.\nimport io, re\nwith io.open('../src/core/toga/__init__.py', encoding='utf8') as version_file:\n    version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file.read(), re.M)\n    if version_match:\n        release = version_match.group(1)\n    else:\n        raise RuntimeError(\"Unable to find version string.\")\n\n# The short X.Y version.\nversion = '.'.join(release.split('.')[:2])\n\n# Fix the autodoc import issues\nos.environ['TOGA_PLATFORM'] = 'dummy'\n\nautoclass_content = 'both'\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']\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::).\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\n# -- Options for HTML output ---------------------------------------------------\n\n# on_rtd: whether we are on readthedocs.org\non_rtd = os.environ.get('READTHEDOCS', None) == 'True'\n\nif not on_rtd:  # only import and set the theme if we're building docs locally\n    try:\n        import sphinx_rtd_theme\n    except ModuleNotFoundError:\n        html_theme = 'default'\n    else:\n        html_theme = 'sphinx_rtd_theme'\n        html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\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.\n#html_theme_options = {}\n\n# Add any paths that contain custom themes here, relative to this directory.\n#html_theme_path = []\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 = \"images/toga.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.\n#html_favicon = None\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.\n#html_domain_indices = True\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.\n#html_show_sourcelink = True\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 = 'togadoc'\n\ntry:\n    import sphinx_rtd_theme\n    html_theme = \"sphinx_rtd_theme\"\n    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\nexcept ImportError:\n    # The sphinx-rtd-theme package is not installed, so to the default\n    pass\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', 'toga.tex', u'Toga Documentation',\n   u'Russell Keith-Magee', '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', 'toga', u'Toga Documentation',\n     [u'Russell Keith-Magee'], 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', 'toga', u'Toga Documentation',\n   u'Russell Keith-Magee', 'Toga', 'A Python native, OS native GUI toolkit.',\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# -- Options for spelling -------------------------------------------\n\n# Spelling check needs an additional module that is not installed by default.\n# Add it only if spelling check is requested so docs can be generated without it.\nif 'spelling' in sys.argv:\n    extensions.append(\"sphinxcontrib.spelling\")\n\n# Spelling language.\nspelling_lang = 'en_US'\n\n# Location of word list.\nspelling_word_list_filename = 'spelling_wordlist'\n\nspelling_ignore_pypi_package_names = True\n\n# -- Options for Todos -------------------------------------------\n\n# If this is True, todo and todolist produce output, else they produce nothing. The default is False.\ntodo_include_todos = True\n\n# If this is True, todo emits a warning for each TODO entries. The default is False.\n# todo_emit_warnings = False\n\n# If this is True, todolist produce output without file path and line, The default is False.\n# todo_link_only = False\n", "path": "docs/conf.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# Toga documentation build configuration file, created by\n# sphinx-quickstart on Sat Jul 27 14:58:42 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.\nimport sys\nimport os\nsys.path.insert(0, os.path.abspath('../src/core/'))\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 extensions\n# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx_tabs.tabs', 'crate.sphinx.csv']\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'Toga'\ncopyright = u'2013, Russell Keith-Magee'\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 full version, including alpha/beta/rc tags.\nimport io, re\nwith io.open('../src/core/toga/__init__.py', encoding='utf8') as version_file:\n    version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file.read(), re.M)\n    if version_match:\n        release = version_match.group(1)\n    else:\n        raise RuntimeError(\"Unable to find version string.\")\n\n# The short X.Y version.\nversion = '.'.join(release.split('.')[:2])\n\n# Fix the autodoc import issues\nos.environ['TOGA_PLATFORM'] = 'dummy'\n\nautoclass_content = 'both'\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']\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::).\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\n# -- Options for HTML output ---------------------------------------------------\n\n# on_rtd: whether we are on readthedocs.org\non_rtd = os.environ.get('READTHEDOCS', None) == 'True'\n\nif not on_rtd:  # only import and set the theme if we're building docs locally\n    try:\n        import sphinx_rtd_theme\n    except ModuleNotFoundError:\n        html_theme = 'default'\n    else:\n        html_theme = 'sphinx_rtd_theme'\n        html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\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.\n#html_theme_options = {}\n\n# Add any paths that contain custom themes here, relative to this directory.\n#html_theme_path = []\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 = \"images/toga.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.\n#html_favicon = None\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.\n#html_domain_indices = True\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.\n#html_show_sourcelink = True\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 = 'togadoc'\n\ntry:\n    import sphinx_rtd_theme\n    html_theme = \"sphinx_rtd_theme\"\n    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\nexcept ImportError:\n    # The sphinx-rtd-theme package is not installed, so to the default\n    pass\n\nhtml_css_files = [\n    'custom.css',\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', 'toga.tex', u'Toga Documentation',\n   u'Russell Keith-Magee', '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', 'toga', u'Toga Documentation',\n     [u'Russell Keith-Magee'], 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', 'toga', u'Toga Documentation',\n   u'Russell Keith-Magee', 'Toga', 'A Python native, OS native GUI toolkit.',\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# -- Options for spelling -------------------------------------------\n\n# Spelling check needs an additional module that is not installed by default.\n# Add it only if spelling check is requested so docs can be generated without it.\nif 'spelling' in sys.argv:\n    extensions.append(\"sphinxcontrib.spelling\")\n\n# Spelling language.\nspelling_lang = 'en_US'\n\n# Location of word list.\nspelling_word_list_filename = 'spelling_wordlist'\n\nspelling_ignore_pypi_package_names = True\n\n# -- Options for Todos -------------------------------------------\n\n# If this is True, todo and todolist produce output, else they produce nothing. The default is False.\ntodo_include_todos = True\n\n# If this is True, todo emits a warning for each TODO entries. The default is False.\n# todo_emit_warnings = False\n\n# If this is True, todolist produce output without file path and line, The default is False.\n# todo_link_only = False\n", "path": "docs/conf.py"}]}