#! /usr/bin/env python3
# Requires Python 3.6+
"""Configuration of Sphinx documentation generator."""

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.extlinks',
    'sphinx.ext.intersphinx',
    'jaraco.packaging.sphinx',
    'sphinx_tabs.tabs',
    'scm_tag_titles_ext',
]

master_doc = 'index'

scm_version_title_settings = {
    'scm': 'git',
    'date_format': '%d %b %Y',
}

github_url = 'https://github.com'
github_repo_org = 'cherrypy'
github_repo_name = 'cheroot'
github_repo_slug = f'{github_repo_org}/{github_repo_name}'
github_repo_url = f'{github_url}/{github_repo_slug}'
cp_github_repo_url = f'{github_url}/{github_repo_org}/cherrypy'

extlinks = {
    'issue': (f'{github_repo_url}/issues/%s', '#'),
    'pr': (f'{github_repo_url}/pull/%s', 'PR #'),
    'commit': (f'{github_repo_url}/commit/%s', ''),
    'cp-issue': (f'{cp_github_repo_url}/issues/%s', 'CherryPy #'),
    'cp-pr': (f'{cp_github_repo_url}/pull/%s', 'CherryPy PR #'),
    'gh': (f'{github_url}/%s', 'GitHub: '),
}

intersphinx_mapping = {
    'python': ('https://docs.python.org/3', None),
    'python2': ('https://docs.python.org/2', None),
    'cherrypy': ('https://docs.cherrypy.org/en/latest/', None),
    'trustme': ('https://trustme.readthedocs.io/en/latest/', None),
    'ddt': ('https://ddt.readthedocs.io/en/latest/', None),
    'pyopenssl': ('https://www.pyopenssl.org/en/latest/', None),
}

nitpicky = True

nitpick_ignore = [
    ('py:attr', 'cheroot.server.HTTPServer.bind_addr'),
    ('py:const', 'socket.SO_PEERCRED'),
    ('py:class', '_pyio.BufferedWriter'),
    ('py:class', '_pyio.BufferedReader'),
    ('py:class', 'cheroot.server.DropUnderscoreHeaderReader'),
    ('py:class', 'cheroot.server.HeaderReader'),
    ('py:class', 'cheroot.server.HTTPServer'),
    ('py:class', 'cheroot.test.helper.Controller'),
    ('py:class', 'cheroot.wsgi.Server'),
    ('py:func', 'cheroot._compat.extract_bytes'),
    ('py:meth', 'cheroot.server.HTTPServer.prepare'),
    ('py:meth', 'cheroot.server.HTTPServer.serve'),
    ('py:meth', 'cheroot.ssl.builtin.BuiltinSSLAdapter.wrap'),
    ('py:mod', 'cheroot._compat'),
    ('py:mod', 'cheroot.makefile'),
    ('py:mod', 'cheroot.server'),
    ('py:mod', 'cheroot.ssl.pyopenssl'),
    ('py:mod', 'cheroot.wsgi'),
]

@@ -1425,64 +1425,8 @@
 = %5B%0A
-    ('py:attr', 'cheroot.server.HTTPServer.bind_addr'),%0A
     
@@ -1457,24 +1457,24 @@
 PEERCRED'),%0A
+
     ('py:cla
@@ -1661,55 +1661,8 @@
 '),%0A
-    ('py:class', 'cheroot.server.HTTPServer'),%0A
     
@@ -1713,444 +1713,6 @@
 '),%0A
-    ('py:class', 'cheroot.wsgi.Server'),%0A    ('py:func', 'cheroot._compat.extract_bytes'),%0A    ('py:meth', 'cheroot.server.HTTPServer.prepare'),%0A    ('py:meth', 'cheroot.server.HTTPServer.serve'),%0A    ('py:meth', 'cheroot.ssl.builtin.BuiltinSSLAdapter.wrap'),%0A    ('py:mod', 'cheroot._compat'),%0A    ('py:mod', 'cheroot.makefile'),%0A    ('py:mod', 'cheroot.server'),%0A    ('py:mod', 'cheroot.ssl.pyopenssl'),%0A    ('py:mod', 'cheroot.wsgi'),%0A
 %5D%0A

Drop unnecessary docs nitpick ignores list