We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
flake8 PEP8 violations
With the latest upstream clone:

```
(pep8=) ~/work/omiday/pelican/pelican $ git log -1 HEAD
commit b2231c40f7ddcf01dcb301ba599b517fb23102de
Merge: 0942fcb f803120
Author: Justin Mayer <entroP@gmail.com>
Date:   Fri Oct 7 12:28:10 2016 -0600

    Merge pull request #2016 from jerryasher/copy_file_metadata

    Python's shutil.copy2 fails on Android
```

I'm seeing:

```
(pep8=) ~/work/omiday/pelican/pelican $ flake8
./setup.py:3:1: F401 'os.path.dirname' imported but unused
./setup.py:3:1: I101 Imported names are in the wrong order. Should be dirname, join, relpath
./setup.py:34:80: E501 line too long (93 > 79 characters)
./setup.py:35:80: E501 line too long (86 > 79 characters)
./setup.py:39:80: E501 line too long (83 > 79 characters)
./setup.py:43:80: E501 line too long (95 > 79 characters)
./setup.py:50:10: E131 continuation line unaligned for hanging indent
./docs/conf.py:3:11: E401 multiple imports on one line
./docs/conf.py:9:1: E402 module level import not at top of file
./docs/conf.py:11:80: E501 line too long (80 > 79 characters)
./docs/conf.py:13:80: E501 line too long (81 > 79 characters)
./docs/conf.py:33:80: E501 line too long (80 > 79 characters)
./docs/conf.py:66:80: E501 line too long (80 > 79 characters)
./docs/conf.py:69:4: E128 continuation line under-indented for visual indent
./docs/conf.py:72:80: E501 line too long (80 > 79 characters)
```

Got the go ahead from @justinmayer on IRC so I'm gonna try fixing those. 


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 #!/usr/bin/env python
2 from os import walk
3 from os.path import join, relpath, dirname
4 
5 from setuptools import setup
6 
7 requires = ['feedgenerator >= 1.9', 'jinja2 >= 2.7', 'pygments', 'docutils',
8             'pytz >= 0a', 'blinker', 'unidecode', 'six >= 1.4',
9             'python-dateutil']
10 
11 entry_points = {
12     'console_scripts': [
13         'pelican = pelican:main',
14         'pelican-import = pelican.tools.pelican_import:main',
15         'pelican-quickstart = pelican.tools.pelican_quickstart:main',
16         'pelican-themes = pelican.tools.pelican_themes:main'
17     ]
18 }
19 
20 README = open('README.rst').read()
21 CHANGELOG = open('docs/changelog.rst').read()
22 
23 setup(
24     name="pelican",
25     version="3.6.4.dev0",
26     url='http://getpelican.com/',
27     author='Alexis Metaireau',
28     author_email='authors@getpelican.com',
29     description="A tool to generate a static blog from reStructuredText or "
30                 "Markdown input files.",
31     long_description=README + '\n' + CHANGELOG,
32     packages=['pelican', 'pelican.tools'],
33     package_data={
34         # we manually collect the package data, as opposed to using include_package_data=True
35         # because we don't want the tests to be included automatically as package data
36         # (MANIFEST.in is too greedy)
37         'pelican': [
38             relpath(join(root, name), 'pelican')
39             for root, _, names in walk(join('pelican', 'themes')) for name in names
40         ],
41         'pelican.tools': [
42             relpath(join(root, name), join('pelican', 'tools'))
43             for root, _, names in walk(join('pelican', 'tools', 'templates')) for name in names
44         ],
45     },
46     install_requires=requires,
47     entry_points=entry_points,
48     classifiers=[
49         'Development Status :: 5 - Production/Stable',
50          'Environment :: Console',
51          'License :: OSI Approved :: GNU Affero General Public License v3',
52          'Operating System :: OS Independent',
53          'Programming Language :: Python :: 2',
54          'Programming Language :: Python :: 2.7',
55          'Programming Language :: Python :: 3',
56          'Programming Language :: Python :: 3.3',
57          'Programming Language :: Python :: 3.4',
58          'Programming Language :: Python :: 3.5',
59          'Topic :: Internet :: WWW/HTTP',
60          'Topic :: Software Development :: Libraries :: Python Modules',
61     ],
62     test_suite='pelican.tests',
63 )
64
```

Path: `docs/conf.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3 import sys, os
4 
5 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
6 
7 sys.path.append(os.path.abspath(os.pardir))
8 
9 from pelican import __version__
10 
11 # -- General configuration -----------------------------------------------------
12 templates_path = ['_templates']
13 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.ifconfig', 'sphinx.ext.extlinks']
14 source_suffix = '.rst'
15 master_doc = 'index'
16 project = 'Pelican'
17 copyright = '2015, Alexis Metaireau and contributors'
18 exclude_patterns = ['_build']
19 release = __version__
20 version = '.'.join(release.split('.')[:1])
21 last_stable = '3.6.3'
22 rst_prolog = '''
23 .. |last_stable| replace:: :pelican-doc:`{0}`
24 '''.format(last_stable)
25 
26 # The name of the Pygments (syntax highlighting) style to use.
27 pygments_style = 'sphinx'
28 
29 extlinks = {
30     'pelican-doc':  ('http://docs.getpelican.com/%s/', '')
31 }
32 
33 # -- Options for HTML output ---------------------------------------------------
34 
35 html_theme = 'default'
36 if not on_rtd:
37     try:
38         import sphinx_rtd_theme
39         html_theme = 'sphinx_rtd_theme'
40         html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
41     except ImportError:
42         pass
43 
44 html_static_path = ['_static']
45 
46 # Output file base name for HTML help builder.
47 htmlhelp_basename = 'Pelicandoc'
48 
49 html_use_smartypants = True
50 
51 # If false, no module index is generated.
52 html_use_modindex = False
53 
54 # If false, no index is generated.
55 html_use_index = False
56 
57 # If true, links to the reST sources are added to the pages.
58 html_show_sourcelink = False
59 
60 
61 def setup(app):
62     # overrides for wide tables in RTD theme
63     app.add_stylesheet('theme_overrides.css')   # path relative to _static
64 
65 
66 # -- Options for LaTeX output --------------------------------------------------
67 latex_documents = [
68     ('index', 'Pelican.tex', 'Pelican Documentation',
69    'Alexis Métaireau', 'manual'),
70 ]
71 
72 # -- Options for manual page output --------------------------------------------
73 man_pages = [
74     ('index', 'pelican', 'pelican documentation',
75      ['Alexis Métaireau'], 1),
76     ('pelican-themes', 'pelican-themes', 'A theme manager for Pelican',
77      ['Mickaël Raybaud'], 1),
78     ('themes', 'pelican-theming', 'How to create themes for Pelican',
79      ['The Pelican contributors'], 1)
80 ]
81
```
--- 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
@@ -1,16 +1,19 @@
 # -*- coding: utf-8 -*-
 from __future__ import unicode_literals
-import sys, os
+import os
+import sys
+
+from pelican import __version__
 
 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
 
 sys.path.append(os.path.abspath(os.pardir))
 
-from pelican import __version__
-
-# -- General configuration -----------------------------------------------------
+# -- General configuration ----------------------------------------------------
 templates_path = ['_templates']
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.ifconfig', 'sphinx.ext.extlinks']
+extensions = ['sphinx.ext.autodoc',
+              'sphinx.ext.ifconfig',
+              'sphinx.ext.extlinks']
 source_suffix = '.rst'
 master_doc = 'index'
 project = 'Pelican'
@@ -30,7 +33,7 @@
     'pelican-doc':  ('http://docs.getpelican.com/%s/', '')
 }
 
-# -- Options for HTML output ---------------------------------------------------
+# -- Options for HTML output --------------------------------------------------
 
 html_theme = 'default'
 if not on_rtd:
@@ -63,13 +66,13 @@
     app.add_stylesheet('theme_overrides.css')   # path relative to _static
 
 
-# -- Options for LaTeX output --------------------------------------------------
+# -- Options for LaTeX output -------------------------------------------------
 latex_documents = [
-    ('index', 'Pelican.tex', 'Pelican Documentation',
-   'Alexis Métaireau', 'manual'),
+    ('index', 'Pelican.tex', 'Pelican Documentation', 'Alexis Métaireau',
+     'manual'),
 ]
 
-# -- Options for manual page output --------------------------------------------
+# -- Options for manual page output -------------------------------------------
 man_pages = [
     ('index', 'pelican', 'pelican documentation',
      ['Alexis Métaireau'], 1),
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 from os import walk
-from os.path import join, relpath, dirname
+from os.path import join, relpath
 
 from setuptools import setup
 
@@ -31,22 +31,22 @@
     long_description=README + '\n' + CHANGELOG,
     packages=['pelican', 'pelican.tools'],
     package_data={
-        # we manually collect the package data, as opposed to using include_package_data=True
-        # because we don't want the tests to be included automatically as package data
-        # (MANIFEST.in is too greedy)
-        'pelican': [
-            relpath(join(root, name), 'pelican')
-            for root, _, names in walk(join('pelican', 'themes')) for name in names
-        ],
-        'pelican.tools': [
-            relpath(join(root, name), join('pelican', 'tools'))
-            for root, _, names in walk(join('pelican', 'tools', 'templates')) for name in names
-        ],
+        # we manually collect the package data, as opposed to using,
+        # include_package_data=True because we don't want the tests to be
+        # included automatically as package data (MANIFEST.in is too greedy)
+        'pelican': [relpath(join(root, name), 'pelican')
+                    for root, _, names in walk(join('pelican', 'themes'))
+                    for name in names],
+        'pelican.tools': [relpath(join(root, name), join('pelican', 'tools'))
+                          for root, _, names in walk(join('pelican',
+                                                          'tools',
+                                                          'templates'))
+                          for name in names],
     },
     install_requires=requires,
     entry_points=entry_points,
     classifiers=[
-        'Development Status :: 5 - Production/Stable',
+         'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'License :: OSI Approved :: GNU Affero General Public License v3',
          'Operating System :: OS Independent',

{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -1,16 +1,19 @@\n # -*- coding: utf-8 -*-\n from __future__ import unicode_literals\n-import sys, os\n+import os\n+import sys\n+\n+from pelican import __version__\n \n on_rtd = os.environ.get('READTHEDOCS', None) == 'True'\n \n sys.path.append(os.path.abspath(os.pardir))\n \n-from pelican import __version__\n-\n-# -- General configuration -----------------------------------------------------\n+# -- General configuration ----------------------------------------------------\n templates_path = ['_templates']\n-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.ifconfig', 'sphinx.ext.extlinks']\n+extensions = ['sphinx.ext.autodoc',\n+              'sphinx.ext.ifconfig',\n+              'sphinx.ext.extlinks']\n source_suffix = '.rst'\n master_doc = 'index'\n project = 'Pelican'\n@@ -30,7 +33,7 @@\n     'pelican-doc':  ('http://docs.getpelican.com/%s/', '')\n }\n \n-# -- Options for HTML output ---------------------------------------------------\n+# -- Options for HTML output --------------------------------------------------\n \n html_theme = 'default'\n if not on_rtd:\n@@ -63,13 +66,13 @@\n     app.add_stylesheet('theme_overrides.css')   # path relative to _static\n \n \n-# -- Options for LaTeX output --------------------------------------------------\n+# -- Options for LaTeX output -------------------------------------------------\n latex_documents = [\n-    ('index', 'Pelican.tex', 'Pelican Documentation',\n-   'Alexis M\u00e9taireau', 'manual'),\n+    ('index', 'Pelican.tex', 'Pelican Documentation', 'Alexis M\u00e9taireau',\n+     'manual'),\n ]\n \n-# -- Options for manual page output --------------------------------------------\n+# -- Options for manual page output -------------------------------------------\n man_pages = [\n     ('index', 'pelican', 'pelican documentation',\n      ['Alexis M\u00e9taireau'], 1),\ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,6 +1,6 @@\n #!/usr/bin/env python\n from os import walk\n-from os.path import join, relpath, dirname\n+from os.path import join, relpath\n \n from setuptools import setup\n \n@@ -31,22 +31,22 @@\n     long_description=README + '\\n' + CHANGELOG,\n     packages=['pelican', 'pelican.tools'],\n     package_data={\n-        # we manually collect the package data, as opposed to using include_package_data=True\n-        # because we don't want the tests to be included automatically as package data\n-        # (MANIFEST.in is too greedy)\n-        'pelican': [\n-            relpath(join(root, name), 'pelican')\n-            for root, _, names in walk(join('pelican', 'themes')) for name in names\n-        ],\n-        'pelican.tools': [\n-            relpath(join(root, name), join('pelican', 'tools'))\n-            for root, _, names in walk(join('pelican', 'tools', 'templates')) for name in names\n-        ],\n+        # we manually collect the package data, as opposed to using,\n+        # include_package_data=True because we don't want the tests to be\n+        # included automatically as package data (MANIFEST.in is too greedy)\n+        'pelican': [relpath(join(root, name), 'pelican')\n+                    for root, _, names in walk(join('pelican', 'themes'))\n+                    for name in names],\n+        'pelican.tools': [relpath(join(root, name), join('pelican', 'tools'))\n+                          for root, _, names in walk(join('pelican',\n+                                                          'tools',\n+                                                          'templates'))\n+                          for name in names],\n     },\n     install_requires=requires,\n     entry_points=entry_points,\n     classifiers=[\n-        'Development Status :: 5 - Production/Stable',\n+         'Development Status :: 5 - Production/Stable',\n          'Environment :: Console',\n          'License :: OSI Approved :: GNU Affero General Public License v3',\n          'Operating System :: OS Independent',\n", "issue": "flake8 PEP8 violations\nWith the latest upstream clone:\n\n```\n(pep8=) ~/work/omiday/pelican/pelican $ git log -1 HEAD\ncommit b2231c40f7ddcf01dcb301ba599b517fb23102de\nMerge: 0942fcb f803120\nAuthor: Justin Mayer <entroP@gmail.com>\nDate:   Fri Oct 7 12:28:10 2016 -0600\n\n    Merge pull request #2016 from jerryasher/copy_file_metadata\n\n    Python's shutil.copy2 fails on Android\n```\n\nI'm seeing:\n\n```\n(pep8=) ~/work/omiday/pelican/pelican $ flake8\n./setup.py:3:1: F401 'os.path.dirname' imported but unused\n./setup.py:3:1: I101 Imported names are in the wrong order. Should be dirname, join, relpath\n./setup.py:34:80: E501 line too long (93 > 79 characters)\n./setup.py:35:80: E501 line too long (86 > 79 characters)\n./setup.py:39:80: E501 line too long (83 > 79 characters)\n./setup.py:43:80: E501 line too long (95 > 79 characters)\n./setup.py:50:10: E131 continuation line unaligned for hanging indent\n./docs/conf.py:3:11: E401 multiple imports on one line\n./docs/conf.py:9:1: E402 module level import not at top of file\n./docs/conf.py:11:80: E501 line too long (80 > 79 characters)\n./docs/conf.py:13:80: E501 line too long (81 > 79 characters)\n./docs/conf.py:33:80: E501 line too long (80 > 79 characters)\n./docs/conf.py:66:80: E501 line too long (80 > 79 characters)\n./docs/conf.py:69:4: E128 continuation line under-indented for visual indent\n./docs/conf.py:72:80: E501 line too long (80 > 79 characters)\n```\n\nGot the go ahead from @justinmayer on IRC so I'm gonna try fixing those. \n\n", "before_files": [{"content": "#!/usr/bin/env python\nfrom os import walk\nfrom os.path import join, relpath, dirname\n\nfrom setuptools import setup\n\nrequires = ['feedgenerator >= 1.9', 'jinja2 >= 2.7', 'pygments', 'docutils',\n            'pytz >= 0a', 'blinker', 'unidecode', 'six >= 1.4',\n            'python-dateutil']\n\nentry_points = {\n    'console_scripts': [\n        'pelican = pelican:main',\n        'pelican-import = pelican.tools.pelican_import:main',\n        'pelican-quickstart = pelican.tools.pelican_quickstart:main',\n        'pelican-themes = pelican.tools.pelican_themes:main'\n    ]\n}\n\nREADME = open('README.rst').read()\nCHANGELOG = open('docs/changelog.rst').read()\n\nsetup(\n    name=\"pelican\",\n    version=\"3.6.4.dev0\",\n    url='http://getpelican.com/',\n    author='Alexis Metaireau',\n    author_email='authors@getpelican.com',\n    description=\"A tool to generate a static blog from reStructuredText or \"\n                \"Markdown input files.\",\n    long_description=README + '\\n' + CHANGELOG,\n    packages=['pelican', 'pelican.tools'],\n    package_data={\n        # we manually collect the package data, as opposed to using include_package_data=True\n        # because we don't want the tests to be included automatically as package data\n        # (MANIFEST.in is too greedy)\n        'pelican': [\n            relpath(join(root, name), 'pelican')\n            for root, _, names in walk(join('pelican', 'themes')) for name in names\n        ],\n        'pelican.tools': [\n            relpath(join(root, name), join('pelican', 'tools'))\n            for root, _, names in walk(join('pelican', 'tools', 'templates')) for name in names\n        ],\n    },\n    install_requires=requires,\n    entry_points=entry_points,\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n         'Environment :: Console',\n         'License :: OSI Approved :: GNU Affero General Public License v3',\n         'Operating System :: OS Independent',\n         'Programming Language :: Python :: 2',\n         'Programming Language :: Python :: 2.7',\n         'Programming Language :: Python :: 3',\n         'Programming Language :: Python :: 3.3',\n         'Programming Language :: Python :: 3.4',\n         'Programming Language :: Python :: 3.5',\n         'Topic :: Internet :: WWW/HTTP',\n         'Topic :: Software Development :: Libraries :: Python Modules',\n    ],\n    test_suite='pelican.tests',\n)\n", "path": "setup.py"}, {"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport sys, os\n\non_rtd = os.environ.get('READTHEDOCS', None) == 'True'\n\nsys.path.append(os.path.abspath(os.pardir))\n\nfrom pelican import __version__\n\n# -- General configuration -----------------------------------------------------\ntemplates_path = ['_templates']\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.ifconfig', 'sphinx.ext.extlinks']\nsource_suffix = '.rst'\nmaster_doc = 'index'\nproject = 'Pelican'\ncopyright = '2015, Alexis Metaireau and contributors'\nexclude_patterns = ['_build']\nrelease = __version__\nversion = '.'.join(release.split('.')[:1])\nlast_stable = '3.6.3'\nrst_prolog = '''\n.. |last_stable| replace:: :pelican-doc:`{0}`\n'''.format(last_stable)\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\nextlinks = {\n    'pelican-doc':  ('http://docs.getpelican.com/%s/', '')\n}\n\n# -- Options for HTML output ---------------------------------------------------\n\nhtml_theme = 'default'\nif not on_rtd:\n    try:\n        import sphinx_rtd_theme\n        html_theme = 'sphinx_rtd_theme'\n        html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\n    except ImportError:\n        pass\n\nhtml_static_path = ['_static']\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'Pelicandoc'\n\nhtml_use_smartypants = True\n\n# If false, no module index is generated.\nhtml_use_modindex = False\n\n# If false, no index is generated.\nhtml_use_index = False\n\n# If true, links to the reST sources are added to the pages.\nhtml_show_sourcelink = False\n\n\ndef setup(app):\n    # overrides for wide tables in RTD theme\n    app.add_stylesheet('theme_overrides.css')   # path relative to _static\n\n\n# -- Options for LaTeX output --------------------------------------------------\nlatex_documents = [\n    ('index', 'Pelican.tex', 'Pelican Documentation',\n   'Alexis M\u00e9taireau', 'manual'),\n]\n\n# -- Options for manual page output --------------------------------------------\nman_pages = [\n    ('index', 'pelican', 'pelican documentation',\n     ['Alexis M\u00e9taireau'], 1),\n    ('pelican-themes', 'pelican-themes', 'A theme manager for Pelican',\n     ['Micka\u00ebl Raybaud'], 1),\n    ('themes', 'pelican-theming', 'How to create themes for Pelican',\n     ['The Pelican contributors'], 1)\n]\n", "path": "docs/conf.py"}], "after_files": [{"content": "#!/usr/bin/env python\nfrom os import walk\nfrom os.path import join, relpath\n\nfrom setuptools import setup\n\nrequires = ['feedgenerator >= 1.9', 'jinja2 >= 2.7', 'pygments', 'docutils',\n            'pytz >= 0a', 'blinker', 'unidecode', 'six >= 1.4',\n            'python-dateutil']\n\nentry_points = {\n    'console_scripts': [\n        'pelican = pelican:main',\n        'pelican-import = pelican.tools.pelican_import:main',\n        'pelican-quickstart = pelican.tools.pelican_quickstart:main',\n        'pelican-themes = pelican.tools.pelican_themes:main'\n    ]\n}\n\nREADME = open('README.rst').read()\nCHANGELOG = open('docs/changelog.rst').read()\n\nsetup(\n    name=\"pelican\",\n    version=\"3.6.4.dev0\",\n    url='http://getpelican.com/',\n    author='Alexis Metaireau',\n    author_email='authors@getpelican.com',\n    description=\"A tool to generate a static blog from reStructuredText or \"\n                \"Markdown input files.\",\n    long_description=README + '\\n' + CHANGELOG,\n    packages=['pelican', 'pelican.tools'],\n    package_data={\n        # we manually collect the package data, as opposed to using,\n        # include_package_data=True because we don't want the tests to be\n        # included automatically as package data (MANIFEST.in is too greedy)\n        'pelican': [relpath(join(root, name), 'pelican')\n                    for root, _, names in walk(join('pelican', 'themes'))\n                    for name in names],\n        'pelican.tools': [relpath(join(root, name), join('pelican', 'tools'))\n                          for root, _, names in walk(join('pelican',\n                                                          'tools',\n                                                          'templates'))\n                          for name in names],\n    },\n    install_requires=requires,\n    entry_points=entry_points,\n    classifiers=[\n         'Development Status :: 5 - Production/Stable',\n         'Environment :: Console',\n         'License :: OSI Approved :: GNU Affero General Public License v3',\n         'Operating System :: OS Independent',\n         'Programming Language :: Python :: 2',\n         'Programming Language :: Python :: 2.7',\n         'Programming Language :: Python :: 3',\n         'Programming Language :: Python :: 3.3',\n         'Programming Language :: Python :: 3.4',\n         'Programming Language :: Python :: 3.5',\n         'Topic :: Internet :: WWW/HTTP',\n         'Topic :: Software Development :: Libraries :: Python Modules',\n    ],\n    test_suite='pelican.tests',\n)\n", "path": "setup.py"}, {"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport os\nimport sys\n\nfrom pelican import __version__\n\non_rtd = os.environ.get('READTHEDOCS', None) == 'True'\n\nsys.path.append(os.path.abspath(os.pardir))\n\n# -- General configuration ----------------------------------------------------\ntemplates_path = ['_templates']\nextensions = ['sphinx.ext.autodoc',\n              'sphinx.ext.ifconfig',\n              'sphinx.ext.extlinks']\nsource_suffix = '.rst'\nmaster_doc = 'index'\nproject = 'Pelican'\ncopyright = '2015, Alexis Metaireau and contributors'\nexclude_patterns = ['_build']\nrelease = __version__\nversion = '.'.join(release.split('.')[:1])\nlast_stable = '3.6.3'\nrst_prolog = '''\n.. |last_stable| replace:: :pelican-doc:`{0}`\n'''.format(last_stable)\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\nextlinks = {\n    'pelican-doc':  ('http://docs.getpelican.com/%s/', '')\n}\n\n# -- Options for HTML output --------------------------------------------------\n\nhtml_theme = 'default'\nif not on_rtd:\n    try:\n        import sphinx_rtd_theme\n        html_theme = 'sphinx_rtd_theme'\n        html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\n    except ImportError:\n        pass\n\nhtml_static_path = ['_static']\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'Pelicandoc'\n\nhtml_use_smartypants = True\n\n# If false, no module index is generated.\nhtml_use_modindex = False\n\n# If false, no index is generated.\nhtml_use_index = False\n\n# If true, links to the reST sources are added to the pages.\nhtml_show_sourcelink = False\n\n\ndef setup(app):\n    # overrides for wide tables in RTD theme\n    app.add_stylesheet('theme_overrides.css')   # path relative to _static\n\n\n# -- Options for LaTeX output -------------------------------------------------\nlatex_documents = [\n    ('index', 'Pelican.tex', 'Pelican Documentation', 'Alexis M\u00e9taireau',\n     'manual'),\n]\n\n# -- Options for manual page output -------------------------------------------\nman_pages = [\n    ('index', 'pelican', 'pelican documentation',\n     ['Alexis M\u00e9taireau'], 1),\n    ('pelican-themes', 'pelican-themes', 'A theme manager for Pelican',\n     ['Micka\u00ebl Raybaud'], 1),\n    ('themes', 'pelican-theming', 'How to create themes for Pelican',\n     ['The Pelican contributors'], 1)\n]\n", "path": "docs/conf.py"}]}