Open
Description
In my conf.py
I have:
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
'sphinx.ext.extlinks',
]
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
'aiohttp': ('https://aiohttp.readthedocs.io/en/stable/', None),
}
code.rst
:
.. automodule:: code
:members:
:undoc-members:
:show-inheritance:
code.py
:
from aiohttp.web import Response, WebSocketResponse, HTTPNotFound
class MyResponse(Response):
pass
class MyWS(WebSocketResponse):
pass
def f():
":raises aiohttp.web.HTTPNotFound: whoops"
raise HTTPNotFound()
When I build sphinx, I get:
> [...]
> loading intersphinx inventory from https://aiohttp.readthedocs.io/en/stable/objects.inv...
> [...]
> code.py:code.MyResponse:1: WARNING: py:class reference target not found: aiohttp.web_response.Response
> code.py:code.MyWS:1: WARNING: py:class reference target not found: aiohttp.web_ws.WebSocketResponse
> code.py:docstring of code.f:: WARNING: py:exc reference target not found: aiohttp.web.HTTPNotFound
Intersphinx works fine for all other modules in the project.
I'm running Python 3.7, Sphinx 2.0.1, and aiohttp 3.5.4.