2015-12-20 03:29:56 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2016-09-23 15:07:39 +00:00
|
|
|
import pkg_resources
|
2015-12-20 03:29:56 +00:00
|
|
|
|
|
|
|
extensions = [
|
|
|
|
'sphinx.ext.autodoc',
|
2016-04-03 02:23:15 +00:00
|
|
|
'rst.linker',
|
2015-12-20 03:29:56 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# General information about the project.
|
|
|
|
project = 'skeleton'
|
2016-01-01 14:03:11 +00:00
|
|
|
copyright = '2016 Jason R. Coombs'
|
2015-12-20 03:29:56 +00:00
|
|
|
|
|
|
|
# The short X.Y version.
|
2016-09-23 15:07:39 +00:00
|
|
|
version = pkg_resources.require(project)[0].version
|
2015-12-20 03:29:56 +00:00
|
|
|
# The full version, including alpha/beta/rc tags.
|
|
|
|
release = version
|
|
|
|
|
|
|
|
master_doc = 'index'
|
2016-04-03 02:23:15 +00:00
|
|
|
|
|
|
|
link_files = {
|
2016-11-04 13:49:30 +00:00
|
|
|
'../CHANGES.rst': dict(
|
2016-04-03 02:23:15 +00:00
|
|
|
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",
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
}
|