wolframalpha/docs/conf.py

33 lines
626 B
Python
Raw Normal View History

2015-12-20 03:29:56 +00:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
extensions = [
'sphinx.ext.autodoc',
'jaraco.packaging.sphinx',
'rst.linker',
2015-12-20 03:29:56 +00:00
]
master_doc = 'index'
link_files = {
'../CHANGES.rst': dict(
using=dict(
GH='https://github.com',
),
replace=[
dict(
pattern=r'(Issue )?#(?P<issue>\d+)',
url='{package_url}/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',
),
2017-01-23 12:10:36 +00:00
dict(
pattern=r'PEP[- ](?P<pep_number>\d+)',
2017-01-23 12:10:36 +00:00
url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/',
),
],
),
}