|
1
|
|
|
# -*- coding: utf-8 -*- |
|
2
|
|
|
from __future__ import unicode_literals |
|
3
|
|
|
|
|
4
|
|
|
import os |
|
5
|
|
|
import sys |
|
6
|
|
|
|
|
7
|
|
|
# If extensions (or modules to document with autodoc) are in another directory, |
|
8
|
|
|
# add these directories to sys.path here. If the directory is relative to the |
|
9
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here. |
|
10
|
|
|
# sys.path.insert(0, os.path.abspath('..')) |
|
11
|
|
|
|
|
12
|
|
|
# If your documentation needs a minimal Sphinx version, state it here. |
|
13
|
|
|
needs_sphinx = '1.4' # For `sphinx.ext.imgmath`. |
|
14
|
|
|
|
|
15
|
|
|
extensions = [ |
|
16
|
|
|
'sphinx.ext.autodoc', |
|
17
|
|
|
'sphinx.ext.autosummary', |
|
18
|
|
|
'sphinx.ext.coverage', |
|
19
|
|
|
'sphinx.ext.doctest', |
|
20
|
|
|
'sphinx.ext.extlinks', |
|
21
|
|
|
'sphinx.ext.ifconfig', |
|
22
|
|
|
'sphinx.ext.imgmath', |
|
23
|
|
|
'sphinx.ext.napoleon', |
|
24
|
|
|
'sphinx.ext.todo', |
|
25
|
|
|
'sphinx.ext.viewcode', |
|
26
|
|
|
] |
|
27
|
|
|
|
|
28
|
|
|
# Add any paths that contain templates here, relative to this directory. |
|
29
|
|
|
templates_path = ['.'] |
|
30
|
|
|
|
|
31
|
|
|
source_suffix = '.rst' |
|
32
|
|
|
master_doc = 'index' |
|
33
|
|
|
project = 'oemof.db' |
|
34
|
|
|
year = '2019' |
|
35
|
|
|
author = 'oemof developer group' |
|
36
|
|
|
copyright = '2015-{0}, {1}'.format(year, author) |
|
37
|
|
|
version = release = '0.0.6' |
|
38
|
|
|
|
|
39
|
|
|
pygments_style = 'sphinx' |
|
40
|
|
|
extlinks = { |
|
41
|
|
|
'issue': ('https://github.com/oemof/oemof.db/issues/%s', '#'), |
|
42
|
|
|
'pr': ('https://github.com/oemof/oemof.db/pull/%s', 'PR #'), |
|
43
|
|
|
} |
|
44
|
|
|
# on_rtd is whether we are on readthedocs.org |
|
45
|
|
|
on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
|
46
|
|
|
|
|
47
|
|
|
if not on_rtd: # only set the theme if we're building docs locally |
|
48
|
|
|
html_theme = 'sphinx_rtd_theme' |
|
49
|
|
|
|
|
50
|
|
|
html_use_smartypants = True |
|
51
|
|
|
html_last_updated_fmt = '%b %d, %Y' |
|
52
|
|
|
html_split_index = False |
|
53
|
|
|
html_sidebars = {'**': ['searchbox.html', 'globaltoc.html', 'sourcelink.html']} |
|
54
|
|
|
html_short_title = '%s-%s' % (project, version) |
|
55
|
|
|
|
|
56
|
|
|
# Output file base name for HTML help builder. |
|
57
|
|
|
htmlhelp_basename = 'oemof.db_doc' |
|
58
|
|
|
|
|
59
|
|
|
napoleon_use_ivar = True |
|
60
|
|
|
napoleon_use_rtype = False |
|
61
|
|
|
napoleon_use_param = False |
|
62
|
|
|
|
|
63
|
|
|
# -- Options for LaTeX output --------------------------------------------- |
|
64
|
|
|
|
|
65
|
|
|
latex_elements = {} |
|
66
|
|
|
|
|
67
|
|
|
# Grouping the document tree into LaTeX files. List of tuples |
|
68
|
|
|
# (source start file, target name, title, |
|
69
|
|
|
# author, documentclass [howto, manual, or own class]). |
|
70
|
|
|
latex_documents = [ |
|
71
|
|
|
('index', 'oemof.db.tex', u'oemof.db Documentation', author, 'manual') |
|
72
|
|
|
] |
|
73
|
|
|
|
|
74
|
|
|
# -- Options for manual page output --------------------------------------- |
|
75
|
|
|
|
|
76
|
|
|
# One entry per manual page. List of tuples |
|
77
|
|
|
# (source start file, name, description, authors, manual section). |
|
78
|
|
|
man_pages = [('index', 'oemof.db', u'oemof.db Documentation', [author], 1)] |
|
79
|
|
|
|
|
80
|
|
|
# -- Options for Texinfo output ------------------------------------------- |
|
81
|
|
|
|
|
82
|
|
|
# Grouping the document tree into Texinfo files. List of tuples |
|
83
|
|
|
# (source start file, target name, title, author, |
|
84
|
|
|
# dir menu entry, description, category) |
|
85
|
|
|
texinfo_documents = [ |
|
86
|
|
|
( |
|
87
|
|
|
'index', |
|
88
|
|
|
'oemof.db', |
|
89
|
|
|
u'oemof.db Documentation', |
|
90
|
|
|
author, |
|
91
|
|
|
'oemof.db', |
|
92
|
|
|
'Database related functionality of the open energy modelling framework, ' |
|
93
|
|
|
'split out into a separate package.', |
|
94
|
|
|
'Miscellaneous', |
|
95
|
|
|
) |
|
96
|
|
|
] |
|
97
|
|
|
|
|
98
|
|
|
# -- Options for Epub output ---------------------------------------------- |
|
99
|
|
|
|
|
100
|
|
|
# Bibliographic Dublin Core info. |
|
101
|
|
|
epub_title = u'oemof.db' |
|
102
|
|
|
epub_author = author |
|
103
|
|
|
epub_publisher = author |
|
104
|
|
|
epub_copyright = u'2015-{0}, {1}'.format(year, author) |
|
105
|
|
|
|
|
106
|
|
|
# A list of files that should not be packed into the epub file. |
|
107
|
|
|
epub_exclude_files = ['search.html'] |
|
108
|
|
|
|