-
Notifications
You must be signed in to change notification settings - Fork 2
/
conf.py
60 lines (51 loc) · 1.62 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- coding: utf-8 -*-
import os
import re
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.viewcode'
]
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = 'HBP Curation'
copyright = '2018, Charles Tapley Hoyt'
author = 'Charles Tapley Hoyt'
release = '0.1.1-dev'
parsed_version = re.match(
'(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+(?P<build>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?',
release
)
version = parsed_version.expand('\g<major>.\g<minor>.\g<patch>')
if parsed_version.group('release'):
tags.add('prerelease')
language = None
exclude_patterns = []
pygments_style = 'sphinx'
todo_include_todos = True
html_theme = 'sphinx_rtd_theme'
html_static_path = []
htmlhelp_basename = 'bioebel_drugbankdoc'
latex_elements = {}
latex_documents = [
(master_doc, 'curation.tex', 'HBP Curation Documentation', 'Charles Tapley Hoyt', 'manual'),
]
man_pages = [
(master_doc, 'HBP Curation', 'HBP Curation Documentation', [author], 1)
]
texinfo_documents = [
(master_doc, 'HBP Curation', 'HBP Curation Documentation', author, 'HBP Curation',
'BEL curation procedures and guidelines', 'Miscellaneous'),
]
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'pybel': ('https://pybel.readthedocs.io/en/latest/', None),
}
autodoc_member_order = 'bysource'
autoclass_content = 'both'
if os.environ.get('READTHEDOCS'):
tags.add('readthedocs')