This commit is contained in:
31
docs/conf.py
31
docs/conf.py
@@ -1,38 +1,31 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import setuptools_scm
|
||||
|
||||
extensions = [
|
||||
'sphinx.ext.autodoc',
|
||||
'rst.linker',
|
||||
'sphinx.ext.autodoc',
|
||||
'jaraco.packaging.sphinx',
|
||||
'rst.linker',
|
||||
]
|
||||
|
||||
# General information about the project.
|
||||
project = 'wolframalpha'
|
||||
copyright = '2016 Jason R. Coombs'
|
||||
|
||||
# The short X.Y version.
|
||||
version = setuptools_scm.get_version(root='..', relative_to=__file__)
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = version
|
||||
|
||||
master_doc = 'index'
|
||||
|
||||
link_files = {
|
||||
'CHANGES.rst': dict(
|
||||
'../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}',
|
||||
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",
|
||||
pattern=r'^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n',
|
||||
with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n',
|
||||
),
|
||||
dict(
|
||||
pattern=r'PEP[- ](?P<pep_number>\d+)',
|
||||
url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/',
|
||||
),
|
||||
],
|
||||
),
|
||||
|
Reference in New Issue
Block a user