Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
RWTH-EBC
GitHub Repository: RWTH-EBC/ebcpy
Path: blob/master/docs/source/conf.py
505 views
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
#
4
# ebcpy documentation build configuration file, created by
5
# sphinx-quickstart on Thu Jul 11 11:40:00 2019.
6
#
7
# This file is execfile()d with the current directory set to its
8
# containing dir.
9
#
10
# Note that not all possible configuration values are present in this
11
# autogenerated file.
12
#
13
# All configuration values have a default; values that are commented out
14
# serve to show the default.
15
16
# If extensions (or modules to document with autodoc) are in another directory,
17
# add these directories to sys.path here. If the directory is relative to the
18
# documentation root, use os.path.abspath to make it absolute, like shown here.
19
#
20
import os
21
import sys
22
from pathlib import Path
23
# pylint: disable-all
24
25
sys.path.insert(0, os.path.abspath('../..'))
26
sys.setrecursionlimit(1500)
27
28
29
30
# -- General configuration ------------------------------------------------
31
32
# If your documentation needs a minimal Sphinx version, state it here.
33
#
34
# needs_sphinx = '1.0'
35
36
# Add any Sphinx extension module names here, as strings. They can be
37
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
38
# ones.
39
extensions = ['sphinx.ext.autodoc',
40
'sphinx.ext.intersphinx',
41
'sphinx.ext.ifconfig',
42
'sphinx.ext.viewcode',
43
'sphinx.ext.githubpages',
44
'sphinx.ext.coverage',
45
'm2r2', # Enable .md files
46
'sphinxcontrib.autodoc_pydantic'
47
]
48
49
autodoc_pydantic_model_show_json = False
50
autodoc_pydantic_model_show_config = False
51
# Add any paths that contain templates here, relative to this directory.
52
templates_path = ['_templates']
53
54
# The suffix(es) of source filenames.
55
# You can specify multiple suffix as a list of string:
56
#
57
source_suffix = ['.rst', '.md']
58
#source_suffix = '.rst'
59
60
# The master toctree document.
61
master_doc = 'index'
62
63
# General information about the project.
64
project = 'ebcpy'
65
copyright = '2019, EON EBC'
66
author = 'EON EBC'
67
68
# The version info for the project you're documenting, acts as replacement for
69
# |version| and |release|, also used in various other places throughout the
70
# built documents.
71
#
72
# Get the version from ebcpys __init__.py:
73
with open(Path(__file__).parents[2].joinpath(project, "__init__.py"), "r") as file:
74
for line in file.readlines():
75
if line.startswith("__version__"):
76
release = line.replace("__version__", "").split("=")[1].strip().replace("'", "").replace('"', '')
77
78
# The short X.Y version.
79
version = ".".join(release.split(".")[:2])
80
# The full version, including alpha/beta/rc tags.
81
release = release
82
83
# The language for content autogenerated by Sphinx. Refer to documentation
84
# for a list of supported languages.
85
#
86
# This is also used if you do content translation via gettext catalogs.
87
# Usually you set "language" from the command line for these cases.
88
language = "en"
89
90
# List of patterns, relative to source directory, that match files and
91
# directories to ignore when looking for source files.
92
# This patterns also effect to html_static_path and html_extra_path
93
exclude_patterns = []
94
95
# The name of the Pygments (syntax highlighting) style to use.
96
pygments_style = 'sphinx'
97
98
# If true, `todo` and `todoList` produce output, else they produce nothing.
99
todo_include_todos = False
100
101
102
# -- Options for HTML output ----------------------------------------------
103
104
# The theme to use for HTML and HTML Help pages. See the documentation for
105
# a list of builtin themes.
106
#
107
html_theme = 'sphinx_rtd_theme'
108
109
# Theme options are theme-specific and customize the look and feel of a theme
110
# further. For a list of options available for each theme, see the
111
# documentation.
112
#
113
# html_theme_options = {}
114
115
# Add any paths that contain custom static files (such as style sheets) here,
116
# relative to this directory. They are copied after the builtin static files,
117
# so a file named "default.css" will overwrite the builtin "default.css".
118
html_static_path = []
119
120
html_sidebars = {
121
"**": ["logo-text.html",
122
"globaltoc.html",
123
"localtoc.html",
124
"searchbox.html"]
125
}
126
127
128
# -- Options for HTMLHelp output ------------------------------------------
129
130
# Output file base name for HTML help builder.
131
htmlhelp_basename = 'ebcpydoc'
132
133
134
# -- Options for LaTeX output ---------------------------------------------
135
136
latex_elements = {
137
# The paper size ('letterpaper' or 'a4paper').
138
#
139
# 'papersize': 'letterpaper',
140
141
# The font size ('10pt', '11pt' or '12pt').
142
#
143
# 'pointsize': '10pt',
144
145
# Additional stuff for the LaTeX preamble.
146
#
147
# 'preamble': '',
148
149
# Latex figure (float) alignment
150
#
151
# 'figure_align': 'htbp',
152
}
153
154
# Grouping the document tree into LaTeX files. List of tuples
155
# (source start file, target name, title,
156
# author, documentclass [howto, manual, or own class]).
157
latex_documents = [
158
(master_doc, 'ebcpy.tex', 'ebcpy Documentation',
159
'EON EBC', 'manual'),
160
]
161
162
163
# -- Options for manual page output ---------------------------------------
164
165
# One entry per manual page. List of tuples
166
# (source start file, name, description, authors, manual section).
167
man_pages = [
168
(master_doc, 'ebcpy', 'ebcpy Documentation',
169
[author], 1)
170
]
171
172
173
# -- Options for Texinfo output -------------------------------------------
174
175
# Grouping the document tree into Texinfo files. List of tuples
176
# (source start file, target name, title, author,
177
# dir menu entry, description, category)
178
texinfo_documents = [
179
(master_doc, 'ebcpy', 'ebcpy Documentation',
180
author, 'ebcpy', 'One line description of project.',
181
'Miscellaneous'),
182
]
183
184
185
186
# -- Options for Epub output ----------------------------------------------
187
188
# Bibliographic Dublin Core info.
189
epub_title = project
190
epub_author = author
191
epub_publisher = author
192
epub_copyright = copyright
193
194
# The unique identifier of the text. This can be a ISBN number
195
# or the project homepage.
196
#
197
# epub_identifier = ''
198
199
# A unique identification for the text.
200
#
201
# epub_uid = ''
202
203
# A list of files that should not be packed into the epub file.
204
epub_exclude_files = ['search.html']
205
206
207
208
# Example configuration for intersphinx: refer to the Python standard library.
209
intersphinx_mapping = {'https://docs.python.org/': None}
210
211