summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOndřej Nový <onovy@debian.org>2018-08-08 09:11:07 +0200
committerOndřej Nový <onovy@debian.org>2018-08-08 09:11:07 +0200
commit0671170e336e7448cc35b9c6ee9f9442a12578ba (patch)
treebed7db4d4a5b3383f21b05db9bca254c51ee033a /docs
parent3c1c6050a6a63c8eb844242026788bf91aad9f31 (diff)
Convert git repository from git-dpm to gbp layout
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py27
-rw-r--r--docs/index.txt1
-rw-r--r--docs/license.txt5
3 files changed, 10 insertions, 23 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 7b44b46..7a3cef7 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -4,7 +4,6 @@ import os
import pkginfo
import sys
import time
-import django
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
pkg_info = pkginfo.Develop(os.path.join(os.path.dirname(__file__), '..'))
@@ -15,28 +14,10 @@ extensions = [
'sphinx.ext.intersphinx'
]
-def check_object_path(key, url, path):
- if os.path.isfile(path):
- return {key: (url, path)}
- return {}
-
-intersphinx_mapping = {}
-intersphinx_mapping.update(check_object_path(
- 'python',
- 'https://docs.python.org/{v}/'.format(
- v='.'.join(map(str, sys.version_info[0:2]))
- ),
- '/usr/share/doc/python{v}/html/objects.inv'.format(
- v='.'.join(map(str, sys.version_info[0:2]))
- )
-))
-intersphinx_mapping.update(check_object_path(
- 'django',
- 'https://docs.djangoproject.com/en/{v}/'.format(
- v='.'.join(map(str, django.VERSION[:2]))
- ),
- '/usr/share/doc/python-django-doc/html/objects.inv'
-))
+intersphinx_mapping = {
+ 'http://docs.python.org': None,
+ 'http://django.readthedocs.org/en/latest/': None,
+}
# General
source_suffix = '.txt'
diff --git a/docs/index.txt b/docs/index.txt
index 8b51a75..af85e1d 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -39,6 +39,7 @@ development, please see the sections below:
installation.txt
development.txt
changes.txt
+ license.txt
Indices and tables
==================
diff --git a/docs/license.txt b/docs/license.txt
new file mode 100644
index 0000000..b383c6e
--- /dev/null
+++ b/docs/license.txt
@@ -0,0 +1,5 @@
+=======
+License
+=======
+
+.. literalinclude:: ../LICENSE.txt