X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2edc7aa5583b2d241b4f18a2b06b2dead36ea8c1..7a27a3fbc14b2049b8d110db15855a625e4c2455:/doc/conf.py diff --git a/doc/conf.py b/doc/conf.py index 1e8ba2890..7c09286af 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -32,7 +32,7 @@ django.setup() # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode'] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.extlinks', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -222,6 +222,9 @@ man_pages = [ ['Fundacja Nowoczesna Polska'], 1) ] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'http://docs.python.org/': None} +extlinks = { + 'django': ( + 'https://docs.djangoproject.com/en/%d.%d/%%s' % django.VERSION[:2], + None + ) +}