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
|
|
|
source_suffix = '.rst' |
28
|
|
|
master_doc = 'index' |
29
|
|
|
project = 'oemof.db' |
30
|
|
|
year = '2020' |
31
|
|
|
author = 'oemof developer group' |
32
|
|
|
copyright = '2015-{0}, {1}'.format(year, author) |
33
|
|
|
version = release = '0.0.6' |
34
|
|
|
|
35
|
|
|
pygments_style = 'trac' |
36
|
|
|
templates_path = ['.'] |
37
|
|
|
extlinks = { |
38
|
|
|
'issue': ('https://github.com/oemof/oemof.db/issues/%s', '#'), |
39
|
|
|
'pr': ('https://github.com/oemof/oemof.db/pull/%s', 'PR #'), |
40
|
|
|
} |
41
|
|
|
# on_rtd is whether we are on readthedocs.org |
42
|
|
|
on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
43
|
|
|
|
44
|
|
|
if not on_rtd: # only set the theme if we're building docs locally |
45
|
|
|
html_theme = 'sphinx_rtd_theme' |
46
|
|
|
|
47
|
|
|
html_use_smartypants = True |
48
|
|
|
html_last_updated_fmt = '%b %d, %Y' |
49
|
|
|
html_split_index = False |
50
|
|
|
html_sidebars = { |
51
|
|
|
'**': ['searchbox.html', 'globaltoc.html', 'sourcelink.html'], |
52
|
|
|
} |
53
|
|
|
html_short_title = '%s-%s' % (project, version) |
54
|
|
|
|
55
|
|
|
# Output file base name for HTML help builder. |
56
|
|
|
htmlhelp_basename = 'oemof.db_doc' |
57
|
|
|
|
58
|
|
|
napoleon_use_ivar = True |
59
|
|
|
napoleon_use_rtype = False |
60
|
|
|
napoleon_use_param = False |
61
|
|
|
|
62
|
|
|
# -- Options for LaTeX output --------------------------------------------- |
63
|
|
|
|
64
|
|
|
latex_elements = {} |
65
|
|
|
|
66
|
|
|
# Grouping the document tree into LaTeX files. List of tuples |
67
|
|
|
# (source start file, target name, title, |
68
|
|
|
# author, documentclass [howto, manual, or own class]). |
69
|
|
|
latex_documents = [ |
70
|
|
|
('index', 'oemof.db.tex', u'oemof.db Documentation', author, 'manual') |
71
|
|
|
] |
72
|
|
|
|
73
|
|
|
# -- Options for manual page output --------------------------------------- |
74
|
|
|
|
75
|
|
|
# One entry per manual page. List of tuples |
76
|
|
|
# (source start file, name, description, authors, manual section). |
77
|
|
|
man_pages = [('index', 'oemof.db', u'oemof.db Documentation', [author], 1)] |
78
|
|
|
|
79
|
|
|
# -- Options for Texinfo output ------------------------------------------- |
80
|
|
|
|
81
|
|
|
# Grouping the document tree into Texinfo files. List of tuples |
82
|
|
|
# (source start file, target name, title, author, |
83
|
|
|
# dir menu entry, description, category) |
84
|
|
|
texinfo_documents = [ |
85
|
|
|
( |
86
|
|
|
'index', |
87
|
|
|
'oemof.db', |
88
|
|
|
u'oemof.db Documentation', |
89
|
|
|
author, |
90
|
|
|
'oemof.db', |
91
|
|
|
'Database related functionality of the open energy modelling framework, ' |
92
|
|
|
'split out into a separate package.', |
93
|
|
|
'Miscellaneous', |
94
|
|
|
) |
95
|
|
|
] |
96
|
|
|
|
97
|
|
|
# -- Options for Epub output ---------------------------------------------- |
98
|
|
|
|
99
|
|
|
# Bibliographic Dublin Core info. |
100
|
|
|
epub_title = u'oemof.db' |
101
|
|
|
epub_author = author |
102
|
|
|
epub_publisher = author |
103
|
|
|
epub_copyright = u'2015-{0}, {1}'.format(year, author) |
104
|
|
|
|
105
|
|
|
# A list of files that should not be packed into the epub file. |
106
|
|
|
epub_exclude_files = ['search.html'] |
107
|
|
|
|