prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Add mechanism for side-by-side comparison of setup.py and its equivalent setup.cfg
  We have many documentation examples that are purely declarative and are either documented as `setup.py` or `setup.cfg`. It would be really awesome if, for each of these, we had the option to have either both versions side-by-side or, even better, in a sort of "tabbed container", like the one in the [code sample at the bottom of this example](https://leetcode.com/articles/median-of-two-sorted-arrays/).
  
  Requirements for this:
  
  1. Cannot *link to* any third-party javascript dependencies. Ideally we wouldn't use any at all, but if you do they must be vendored in the documentation.
  2. If javascript is disabled, it has to fall back to something intelligible.
  
  Ideally it would be implemented in pure CSS / HTML if that's at all possible.
  
  --- 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 extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']
  2 
  3 master_doc = "index"
  4 
  5 link_files = {
  6     '../CHANGES.rst': dict(
  7         using=dict(
  8             BB='https://bitbucket.org',
  9             GH='https://github.com',
  10         ),
  11         replace=[
  12             dict(
  13                 pattern=r'(Issue )?#(?P<issue>\d+)',
  14                 url='{package_url}/issues/{issue}',
  15             ),
  16             dict(
  17                 pattern=r'BB Pull Request ?#(?P<bb_pull_request>\d+)',
  18                 url='{BB}/pypa/setuptools/pull-request/{bb_pull_request}',
  19             ),
  20             dict(
  21                 pattern=r'Distribute #(?P<distribute>\d+)',
  22                 url='{BB}/tarek/distribute/issue/{distribute}',
  23             ),
  24             dict(
  25                 pattern=r'Buildout #(?P<buildout>\d+)',
  26                 url='{GH}/buildout/buildout/issues/{buildout}',
  27             ),
  28             dict(
  29                 pattern=r'Old Setuptools #(?P<old_setuptools>\d+)',
  30                 url='http://bugs.python.org/setuptools/issue{old_setuptools}',
  31             ),
  32             dict(
  33                 pattern=r'Jython #(?P<jython>\d+)',
  34                 url='http://bugs.jython.org/issue{jython}',
  35             ),
  36             dict(
  37                 pattern=r'(Python #|bpo-)(?P<python>\d+)',
  38                 url='http://bugs.python.org/issue{python}',
  39             ),
  40             dict(
  41                 pattern=r'Interop #(?P<interop>\d+)',
  42                 url='{GH}/pypa/interoperability-peps/issues/{interop}',
  43             ),
  44             dict(
  45                 pattern=r'Pip #(?P<pip>\d+)',
  46                 url='{GH}/pypa/pip/issues/{pip}',
  47             ),
  48             dict(
  49                 pattern=r'Packaging #(?P<packaging>\d+)',
  50                 url='{GH}/pypa/packaging/issues/{packaging}',
  51             ),
  52             dict(
  53                 pattern=r'[Pp]ackaging (?P<packaging_ver>\d+(\.\d+)+)',
  54                 url='{GH}/pypa/packaging/blob/{packaging_ver}/CHANGELOG.rst',
  55             ),
  56             dict(
  57                 pattern=r'PEP[- ](?P<pep_number>\d+)',
  58                 url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/',
  59             ),
  60             dict(
  61                 pattern=r'setuptools_svn #(?P<setuptools_svn>\d+)',
  62                 url='{GH}/jaraco/setuptools_svn/issues/{setuptools_svn}',
  63             ),
  64             dict(
  65                 pattern=r'pypa/distutils#(?P<distutils>\d+)',
  66                 url='{GH}/pypa/distutils/issues/{distutils}',
  67             ),
  68             dict(
  69                 pattern=r'^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n',
  70                 with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n',
  71             ),
  72         ],
  73     ),
  74 }
  75 
  76 intersphinx_mapping = {
  77     'pypa-build': ('https://pypa-build.readthedocs.io/en/latest/', None)
  78 }
  79 
  80 # Add support for linking usernames
  81 github_url = 'https://github.com'
  82 github_sponsors_url = f'{github_url}/sponsors'
  83 extlinks = {
  84     'user': (f'{github_sponsors_url}/%s', '@'),  # noqa: WPS323
  85 }
  86 extensions += ['sphinx.ext.extlinks', 'sphinx.ext.intersphinx']
  87 
  88 # Be strict about any broken references:
  89 nitpicky = True
  90 
  91 # Ref: https://github.com/python-attrs/attrs/pull/571/files\
  92 #      #diff-85987f48f1258d9ee486e3191495582dR82
  93 default_role = 'any'
  94 
  95 # Custom sidebar templates, maps document names to template names.
  96 html_theme = 'alabaster'
  97 templates_path = ['_templates']
  98 html_sidebars = {'index': ['tidelift-sidebar.html']}
  99
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/docs/conf.py b/docs/conf.py
  --- a/docs/conf.py
  +++ b/docs/conf.py
  @@ -93,3 +93,6 @@
   html_theme = 'alabaster'
   templates_path = ['_templates']
   html_sidebars = {'index': ['tidelift-sidebar.html']}
  +
  +# Add support for inline tabs
  +extensions += ['sphinx_inline_tabs']
  
verification_info: {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -93,3 +93,6 @@\n html_theme = 'alabaster'\n templates_path = ['_templates']\n html_sidebars = {'index': ['tidelift-sidebar.html']}\n+\n+# Add support for inline tabs\n+extensions += ['sphinx_inline_tabs']\n", "issue": "Add mechanism for side-by-side comparison of setup.py and its equivalent setup.cfg\nWe have many documentation examples that are purely declarative and are either documented as `setup.py` or `setup.cfg`. It would be really awesome if, for each of these, we had the option to have either both versions side-by-side or, even better, in a sort of \"tabbed container\", like the one in the [code sample at the bottom of this example](https://leetcode.com/articles/median-of-two-sorted-arrays/).\r\n\r\nRequirements for this:\r\n\r\n1. Cannot *link to* any third-party javascript dependencies. Ideally we wouldn't use any at all, but if you do they must be vendored in the documentation.\r\n2. If javascript is disabled, it has to fall back to something intelligible.\r\n\r\nIdeally it would be implemented in pure CSS / HTML if that's at all possible.\n", "before_files": [{"content": "extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']\n\nmaster_doc = \"index\"\n\nlink_files = {\n    '../CHANGES.rst': dict(\n        using=dict(\n            BB='https://bitbucket.org',\n            GH='https://github.com',\n        ),\n        replace=[\n            dict(\n                pattern=r'(Issue )?#(?P<issue>\\d+)',\n                url='{package_url}/issues/{issue}',\n            ),\n            dict(\n                pattern=r'BB Pull Request ?#(?P<bb_pull_request>\\d+)',\n                url='{BB}/pypa/setuptools/pull-request/{bb_pull_request}',\n            ),\n            dict(\n                pattern=r'Distribute #(?P<distribute>\\d+)',\n                url='{BB}/tarek/distribute/issue/{distribute}',\n            ),\n            dict(\n                pattern=r'Buildout #(?P<buildout>\\d+)',\n                url='{GH}/buildout/buildout/issues/{buildout}',\n            ),\n            dict(\n                pattern=r'Old Setuptools #(?P<old_setuptools>\\d+)',\n                url='http://bugs.python.org/setuptools/issue{old_setuptools}',\n            ),\n            dict(\n                pattern=r'Jython #(?P<jython>\\d+)',\n                url='http://bugs.jython.org/issue{jython}',\n            ),\n            dict(\n                pattern=r'(Python #|bpo-)(?P<python>\\d+)',\n                url='http://bugs.python.org/issue{python}',\n            ),\n            dict(\n                pattern=r'Interop #(?P<interop>\\d+)',\n                url='{GH}/pypa/interoperability-peps/issues/{interop}',\n            ),\n            dict(\n                pattern=r'Pip #(?P<pip>\\d+)',\n                url='{GH}/pypa/pip/issues/{pip}',\n            ),\n            dict(\n                pattern=r'Packaging #(?P<packaging>\\d+)',\n                url='{GH}/pypa/packaging/issues/{packaging}',\n            ),\n            dict(\n                pattern=r'[Pp]ackaging (?P<packaging_ver>\\d+(\\.\\d+)+)',\n                url='{GH}/pypa/packaging/blob/{packaging_ver}/CHANGELOG.rst',\n            ),\n            dict(\n                pattern=r'PEP[- ](?P<pep_number>\\d+)',\n                url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/',\n            ),\n            dict(\n                pattern=r'setuptools_svn #(?P<setuptools_svn>\\d+)',\n                url='{GH}/jaraco/setuptools_svn/issues/{setuptools_svn}',\n            ),\n            dict(\n                pattern=r'pypa/distutils#(?P<distutils>\\d+)',\n                url='{GH}/pypa/distutils/issues/{distutils}',\n            ),\n            dict(\n                pattern=r'^(?m)((?P<scm_version>v?\\d+(\\.\\d+){1,2}))\\n[-=]+\\n',\n                with_scm='{text}\\n{rev[timestamp]:%d %b %Y}\\n',\n            ),\n        ],\n    ),\n}\n\nintersphinx_mapping = {\n    'pypa-build': ('https://pypa-build.readthedocs.io/en/latest/', None)\n}\n\n# Add support for linking usernames\ngithub_url = 'https://github.com'\ngithub_sponsors_url = f'{github_url}/sponsors'\nextlinks = {\n    'user': (f'{github_sponsors_url}/%s', '@'),  # noqa: WPS323\n}\nextensions += ['sphinx.ext.extlinks', 'sphinx.ext.intersphinx']\n\n# Be strict about any broken references:\nnitpicky = True\n\n# Ref: https://github.com/python-attrs/attrs/pull/571/files\\\n#      #diff-85987f48f1258d9ee486e3191495582dR82\ndefault_role = 'any'\n\n# Custom sidebar templates, maps document names to template names.\nhtml_theme = 'alabaster'\ntemplates_path = ['_templates']\nhtml_sidebars = {'index': ['tidelift-sidebar.html']}\n", "path": "docs/conf.py"}], "after_files": [{"content": "extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']\n\nmaster_doc = \"index\"\n\nlink_files = {\n    '../CHANGES.rst': dict(\n        using=dict(\n            BB='https://bitbucket.org',\n            GH='https://github.com',\n        ),\n        replace=[\n            dict(\n                pattern=r'(Issue )?#(?P<issue>\\d+)',\n                url='{package_url}/issues/{issue}',\n            ),\n            dict(\n                pattern=r'BB Pull Request ?#(?P<bb_pull_request>\\d+)',\n                url='{BB}/pypa/setuptools/pull-request/{bb_pull_request}',\n            ),\n            dict(\n                pattern=r'Distribute #(?P<distribute>\\d+)',\n                url='{BB}/tarek/distribute/issue/{distribute}',\n            ),\n            dict(\n                pattern=r'Buildout #(?P<buildout>\\d+)',\n                url='{GH}/buildout/buildout/issues/{buildout}',\n            ),\n            dict(\n                pattern=r'Old Setuptools #(?P<old_setuptools>\\d+)',\n                url='http://bugs.python.org/setuptools/issue{old_setuptools}',\n            ),\n            dict(\n                pattern=r'Jython #(?P<jython>\\d+)',\n                url='http://bugs.jython.org/issue{jython}',\n            ),\n            dict(\n                pattern=r'(Python #|bpo-)(?P<python>\\d+)',\n                url='http://bugs.python.org/issue{python}',\n            ),\n            dict(\n                pattern=r'Interop #(?P<interop>\\d+)',\n                url='{GH}/pypa/interoperability-peps/issues/{interop}',\n            ),\n            dict(\n                pattern=r'Pip #(?P<pip>\\d+)',\n                url='{GH}/pypa/pip/issues/{pip}',\n            ),\n            dict(\n                pattern=r'Packaging #(?P<packaging>\\d+)',\n                url='{GH}/pypa/packaging/issues/{packaging}',\n            ),\n            dict(\n                pattern=r'[Pp]ackaging (?P<packaging_ver>\\d+(\\.\\d+)+)',\n                url='{GH}/pypa/packaging/blob/{packaging_ver}/CHANGELOG.rst',\n            ),\n            dict(\n                pattern=r'PEP[- ](?P<pep_number>\\d+)',\n                url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/',\n            ),\n            dict(\n                pattern=r'setuptools_svn #(?P<setuptools_svn>\\d+)',\n                url='{GH}/jaraco/setuptools_svn/issues/{setuptools_svn}',\n            ),\n            dict(\n                pattern=r'pypa/distutils#(?P<distutils>\\d+)',\n                url='{GH}/pypa/distutils/issues/{distutils}',\n            ),\n            dict(\n                pattern=r'^(?m)((?P<scm_version>v?\\d+(\\.\\d+){1,2}))\\n[-=]+\\n',\n                with_scm='{text}\\n{rev[timestamp]:%d %b %Y}\\n',\n            ),\n        ],\n    ),\n}\n\n\n# Add support for linking usernames\ngithub_url = 'https://github.com'\ngithub_sponsors_url = f'{github_url}/sponsors'\nextlinks = {\n    'user': (f'{github_sponsors_url}/%s', '@'),  # noqa: WPS323\n}\nextensions += ['sphinx.ext.extlinks']\n\n# Be strict about any broken references:\nnitpicky = True\n\n# Ref: https://github.com/python-attrs/attrs/pull/571/files\\\n#      #diff-85987f48f1258d9ee486e3191495582dR82\ndefault_role = 'any'\n\n# Custom sidebar templates, maps document names to template names.\nhtml_theme = 'alabaster'\ntemplates_path = ['_templates']\nhtml_sidebars = {'index': ['tidelift-sidebar.html']}\n\n# Add support for inline tabs\nextensions += ['sphinx_inline_tabs']\n", "path": "docs/conf.py"}]}