X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2edc7aa5583b2d241b4f18a2b06b2dead36ea8c1..56c5bac0c6b5fc622a0b274861a98b9dca00259e:/doc/conf.py?ds=sidebyside 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 + ) +}