summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-04-02 22:44:23 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-04-02 22:44:23 -0400
commitbbf28379f4d8cb8c308dfa36605ef63c9031a207 (patch)
treeb2826607481ca0e5fb317d841b91af2bef82ef71 /docs
parent24c1111b4f4702a241ab57bddef8e7989842b9a2 (diff)
parent01e953bac9ac132fba90550492ee9f7eedfce7e0 (diff)
downloadpytest-runner-bbf28379f4d8cb8c308dfa36605ef63c9031a207.tar.gz
Merge with skeleton. Fixes #15.2.7.1
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py20
-rw-r--r--docs/history.rst2
2 files changed, 21 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 81000ce..135c236 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -5,6 +5,7 @@ import setuptools_scm
extensions = [
'sphinx.ext.autodoc',
+ 'rst.linker',
]
# General information about the project.
@@ -17,3 +18,22 @@ version = setuptools_scm.get_version(root='..', relative_to=__file__)
release = version
master_doc = 'index'
+
+link_files = {
+ 'CHANGES.rst': dict(
+ using=dict(
+ GH='https://github.com',
+ project=project,
+ ),
+ replace=[
+ dict(
+ pattern=r"(Issue )?#(?P<issue>\d+)",
+ url='{GH}/jaraco/{project}/issues/{issue}',
+ ),
+ dict(
+ pattern=r"^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n",
+ with_scm="{text}\n{rev[timestamp]:%d %b %Y}\n",
+ ),
+ ],
+ ),
+}
diff --git a/docs/history.rst b/docs/history.rst
index 907000b..8e21750 100644
--- a/docs/history.rst
+++ b/docs/history.rst
@@ -5,4 +5,4 @@
History
*******
-.. include:: ../CHANGES.rst
+.. include:: ../CHANGES (links).rst