|
34 | 34 | extensions = [
|
35 | 35 | 'sphinxarg.ext',
|
36 | 36 | 'sphinx.ext.autodoc',
|
| 37 | + 'sphinx.ext.intersphinx', |
37 | 38 | 'sphinx_rtd_theme'
|
38 | 39 | ]
|
39 | 40 |
|
|
77 | 78 | 'show-inheritance': True
|
78 | 79 | }
|
79 | 80 | autosummary_generate = True
|
| 81 | + |
| 82 | +# -- Intersphinx configuration --------------------------------------------- |
| 83 | +intersphinx_mapping = { |
| 84 | + 'aiohttp': ('https://docs.aiohttp.org/en/stable/', None), |
| 85 | + 'graphql': ('https://graphql-core-3.readthedocs.io/en/latest/', None), |
| 86 | + 'multidict': ('https://multidict.readthedocs.io/en/stable/', None), |
| 87 | + 'python': ('https://docs.python.org/3/', None), |
| 88 | + 'requests': ('https://requests.readthedocs.io/en/latest/', None), |
| 89 | + 'websockets': ('https://websockets.readthedocs.io/en/11.0.3/', None), |
| 90 | + 'yarl': ('https://yarl.readthedocs.io/en/stable/', None), |
| 91 | +} |
| 92 | + |
| 93 | +nitpick_ignore = [ |
| 94 | + # graphql-core: should be fixed |
| 95 | + ('py:class', 'graphql.execution.execute.ExecutionResult'), |
| 96 | + ('py:class', 'Source'), |
| 97 | + ('py:class', 'GraphQLSchema'), |
| 98 | + |
| 99 | + # asyncio: should be fixed |
| 100 | + ('py:class', 'asyncio.locks.Event'), |
| 101 | + |
| 102 | + # aiohttp: should be fixed |
| 103 | + ('py:class', 'aiohttp.client_reqrep.Fingerprint'), |
| 104 | + ('py:class', 'aiohttp.helpers.BasicAuth'), |
| 105 | + |
| 106 | + # multidict: should be fixed |
| 107 | + ('py:class', 'multidict._multidict.CIMultiDictProxy'), |
| 108 | + ('py:class', 'multidict._multidict.CIMultiDict'), |
| 109 | + ('py:class', 'multidict._multidict.istr'), |
| 110 | + |
| 111 | + # websockets: first bump websockets version |
| 112 | + ('py:class', 'websockets.datastructures.SupportsKeysAndGetItem'), |
| 113 | + ('py:class', 'websockets.typing.Subprotocol'), |
| 114 | + |
| 115 | + # httpx: no sphinx docs yet https://github.com/encode/httpx/discussions/3091 |
| 116 | + ('py:class', 'httpx.AsyncClient'), |
| 117 | + ('py:class', 'httpx.Client'), |
| 118 | + ('py:class', 'httpx.Headers'), |
| 119 | + |
| 120 | + # botocore: no sphinx docs |
| 121 | + ('py:class', 'botocore.auth.BaseSigner'), |
| 122 | + ('py:class', 'botocore.awsrequest.AWSRequest'), |
| 123 | + ('py:class', 'botocore.credentials.Credentials'), |
| 124 | + ('py:class', 'botocore.session.Session'), |
| 125 | + |
| 126 | + # gql: ignore private classes |
| 127 | + ('py:class', 'gql.transport.httpx._HTTPXTransport'), |
| 128 | + ('py:class', 'gql.client._CallableT'), |
| 129 | +] |
0 commit comments