Skip to content

Commit 34f7060

Browse files
authored
docs: add intersphinx (pytest-dev#606)
This is required to resolve e.g. `str` as a type.
1 parent cb8ac4b commit 34f7060

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
1515
extensions = [
1616
'sphinx.ext.doctest',
17+
'sphinx.ext.intersphinx',
1718
'pytestdocs',
1819
]
1920

@@ -60,3 +61,9 @@
6061

6162
# Output file base name for HTML help builder.
6263
htmlhelp_basename = 'pytest-djangodoc'
64+
65+
intersphinx_mapping = {
66+
'python': ('https://docs.python.org/3', None),
67+
'django': ('http://docs.djangoproject.com/en/dev/',
68+
'http://docs.djangoproject.com/en/dev/_objects/'),
69+
}

0 commit comments

Comments
 (0)