|
1
|
|
|
#!/usr/bin/env python |
|
2
|
|
|
# -*- coding: utf-8 -*- |
|
3
|
|
|
# |
|
4
|
|
|
# person documentation build configuration file, created by |
|
5
|
|
|
# sphinx-quickstart on Fri Jun 9 13:47:02 2017. |
|
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 |
|
17
|
|
|
# directory, add these directories to sys.path here. If the directory is |
|
18
|
|
|
# relative to the documentation root, use os.path.abspath to make it |
|
19
|
|
|
# absolute, like shown here. |
|
20
|
|
|
|
|
21
|
|
|
from typing import Dict # isort: skip # noqa |
|
22
|
|
|
|
|
23
|
|
|
# -- General configuration --------------------------------------------- |
|
24
|
|
|
|
|
25
|
|
|
# If your documentation needs a minimal Sphinx version, state it here. |
|
26
|
|
|
# |
|
27
|
|
|
# needs_sphinx = '1.0' |
|
28
|
|
|
|
|
29
|
|
|
# Add any Sphinx extension module names here, as strings. They can be |
|
30
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
|
31
|
|
|
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"] |
|
32
|
|
|
|
|
33
|
|
|
# Add any paths that contain templates here, relative to this directory. |
|
34
|
|
|
templates_path = ["_templates"] |
|
35
|
|
|
|
|
36
|
|
|
# The suffix(es) of source filenames. |
|
37
|
|
|
# You can specify multiple suffix as a list of string: |
|
38
|
|
|
# |
|
39
|
|
|
# source_suffix = ['.rst', '.md'] |
|
40
|
|
|
source_suffix = ".rst" |
|
41
|
|
|
|
|
42
|
|
|
# The master toctree document. |
|
43
|
|
|
master_doc = "index" |
|
44
|
|
|
|
|
45
|
|
|
# General information about the project. |
|
46
|
|
|
project = "person" |
|
47
|
|
|
# copyright = "2020, Oliver Stapel" |
|
48
|
|
|
author = "Oliver Stapel" |
|
49
|
|
|
|
|
50
|
|
|
# The version info for the project you're documenting, acts as replacement |
|
51
|
|
|
# for |version| and |release|, also used in various other places throughout |
|
52
|
|
|
# the built documents. |
|
53
|
|
|
# |
|
54
|
|
|
# The short X.Y version. |
|
55
|
|
|
# version = personroles.__version__ |
|
56
|
|
|
verson = "0.1.10" |
|
57
|
|
|
# The full version, including alpha/beta/rc tags. |
|
58
|
|
|
# release = personroles.__version__ |
|
59
|
|
|
release = "0.1.10" |
|
60
|
|
|
|
|
61
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation |
|
62
|
|
|
# for a list of supported languages. |
|
63
|
|
|
# |
|
64
|
|
|
# This is also used if you do content translation via gettext catalogs. |
|
65
|
|
|
# Usually you set "language" from the command line for these cases. |
|
66
|
|
|
language = None |
|
67
|
|
|
|
|
68
|
|
|
# List of patterns, relative to source directory, that match files and |
|
69
|
|
|
# directories to ignore when looking for source files. |
|
70
|
|
|
# This patterns also effect to html_static_path and html_extra_path |
|
71
|
|
|
exclude_patterns = [ |
|
72
|
|
|
"_build", |
|
73
|
|
|
"Thumbs.db", |
|
74
|
|
|
".DS_Store", |
|
75
|
|
|
"**tests**", |
|
76
|
|
|
"**setup**", |
|
77
|
|
|
] |
|
78
|
|
|
|
|
79
|
|
|
# The name of the Pygments (syntax highlighting) style to use. |
|
80
|
|
|
pygments_style = "sphinx" |
|
81
|
|
|
|
|
82
|
|
|
# If true, `todo` and `todoList` produce output, else they produce nothing. |
|
83
|
|
|
todo_include_todos = False |
|
84
|
|
|
|
|
85
|
|
|
# Extensions |
|
86
|
|
|
# ========== |
|
87
|
|
|
|
|
88
|
|
|
# Add any Sphinx extension module names here, as strings. They can be |
|
89
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
|
90
|
|
|
# ones. |
|
91
|
|
|
extensions = [ |
|
92
|
|
|
# Import docstrings from modules, classes, functions and more. |
|
93
|
|
|
# http://sphinx-doc.org/ext/autodoc.html |
|
94
|
|
|
"sphinx.ext.autodoc", |
|
95
|
|
|
"sphinx.ext.coverage", |
|
96
|
|
|
"sphinx.ext.doctest", |
|
97
|
|
|
"sphinx.ext.ifconfig", |
|
98
|
|
|
"sphinx.ext.intersphinx", |
|
99
|
|
|
"sphinx.ext.mathjax", |
|
100
|
|
|
# Google/Numpy-style docstring support |
|
101
|
|
|
# http://sphinx-doc.org/ext/napoleon.html#module-sphinx.ext.napoleon |
|
102
|
|
|
"sphinx.ext.napoleon", |
|
103
|
|
|
"sphinx.ext.todo", |
|
104
|
|
|
"sphinx.ext.viewcode", |
|
105
|
|
|
] |
|
106
|
|
|
|
|
107
|
|
|
# autodoc |
|
108
|
|
|
# ------- |
|
109
|
|
|
|
|
110
|
|
|
# http://sphinx-doc.org/ext/autodoc.html#confval-autodoc_default_flags |
|
111
|
|
|
autodoc_default_flags = ( |
|
112
|
|
|
"members", |
|
113
|
|
|
"undoc-members", |
|
114
|
|
|
) |
|
115
|
|
|
|
|
116
|
|
|
# http://sphinx-doc.org/ext/autodoc.html#confval-autodoc_member_order |
|
117
|
|
|
autodoc_member_order = "alphabetical" |
|
118
|
|
|
|
|
119
|
|
|
# http://sphinx-doc.org/ext/autodoc.html#confval-autoclass_content |
|
120
|
|
|
# Include docstrings from: class || init || both |
|
121
|
|
|
autoclass_content = "class" |
|
122
|
|
|
|
|
123
|
|
|
|
|
124
|
|
|
## doctest |
|
125
|
|
|
## ------- |
|
126
|
|
|
# |
|
127
|
|
|
# doctest_global_setup = "from api_browser import *" |
|
128
|
|
|
# |
|
129
|
|
|
# |
|
130
|
|
|
## InterSphinx |
|
131
|
|
|
## ----------- |
|
132
|
|
|
# |
|
133
|
|
|
# intersphinx_mapping = { |
|
134
|
|
|
# "python": ("http://python.readthedocs.org/en/v2.7.2/", None), |
|
135
|
|
|
# "sphinx": ("http://sphinx.readthedocs.org/en/latest/", None), |
|
136
|
|
|
# } |
|
137
|
|
|
|
|
138
|
|
|
# Output |
|
139
|
|
|
# ====== |
|
140
|
|
|
|
|
141
|
|
|
# -- Options for HTML output ------------------------------------------- |
|
142
|
|
|
|
|
143
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for |
|
144
|
|
|
# a list of builtin themes. |
|
145
|
|
|
# |
|
146
|
|
|
# html_theme = 'alabaster' |
|
147
|
|
|
html_theme = "sphinx_rtd_theme" |
|
148
|
|
|
|
|
149
|
|
|
# Theme options are theme-specific and customize the look and feel of a |
|
150
|
|
|
# theme further. For a list of options available for each theme, see the |
|
151
|
|
|
# documentation. |
|
152
|
|
|
# |
|
153
|
|
|
# html_theme_options = {} |
|
154
|
|
|
|
|
155
|
|
|
# Add any paths that contain custom static files (such as style sheets) here, |
|
156
|
|
|
# relative to this directory. They are copied after the builtin static files, |
|
157
|
|
|
# so a file named "default.css" will overwrite the builtin "default.css". |
|
158
|
|
|
html_static_path = ["_static"] |
|
159
|
|
|
|
|
160
|
|
|
# -- Options for HTMLHelp output --------------------------------------- |
|
161
|
|
|
|
|
162
|
|
|
# Output file base name for HTML help builder. |
|
163
|
|
|
htmlhelp_basename = "personrolesdoc" |
|
164
|
|
|
|
|
165
|
|
|
# -- Options for LaTeX output ------------------------------------------ |
|
166
|
|
|
|
|
167
|
|
|
latex_elements: Dict[str, str] = { |
|
168
|
|
|
# The paper size ('letterpaper' or 'a4paper'). |
|
169
|
|
|
# |
|
170
|
|
|
# 'papersize': 'letterpaper', |
|
171
|
|
|
# The font size ('10pt', '11pt' or '12pt'). |
|
172
|
|
|
# |
|
173
|
|
|
# 'pointsize': '10pt', |
|
174
|
|
|
# Additional stuff for the LaTeX preamble. |
|
175
|
|
|
# |
|
176
|
|
|
# 'preamble': '', |
|
177
|
|
|
# Latex figure (float) alignment |
|
178
|
|
|
# |
|
179
|
|
|
# 'figure_align': 'htbp', |
|
180
|
|
|
} |
|
181
|
|
|
|
|
182
|
|
|
# Grouping the document tree into LaTeX files. List of tuples |
|
183
|
|
|
# (source start file, target name, title, author, documentclass |
|
184
|
|
|
# [howto, manual, or own class]). |
|
185
|
|
|
latex_documents = [ |
|
186
|
|
|
( |
|
187
|
|
|
master_doc, |
|
188
|
|
|
"personroles.tex", |
|
189
|
|
|
"personroles Documentation", |
|
190
|
|
|
"Oliver Stapel", |
|
191
|
|
|
"manual", |
|
192
|
|
|
), # noqa |
|
193
|
|
|
] # noqa |
|
194
|
|
|
|
|
195
|
|
|
|
|
196
|
|
|
# -- Options for manual page output ------------------------------------ |
|
197
|
|
|
|
|
198
|
|
|
# One entry per manual page. List of tuples |
|
199
|
|
|
# (source start file, name, description, authors, manual section). |
|
200
|
|
|
man_pages = [(master_doc, "person", "personroles Documentation", [author], 1)] # noqa |
|
201
|
|
|
|
|
202
|
|
|
|
|
203
|
|
|
# -- Options for Texinfo output ---------------------------------------- |
|
204
|
|
|
|
|
205
|
|
|
# Grouping the document tree into Texinfo files. List of tuples |
|
206
|
|
|
# (source start file, target name, title, author, |
|
207
|
|
|
# dir menu entry, description, category) |
|
208
|
|
|
texinfo_documents = [ |
|
209
|
|
|
( |
|
210
|
|
|
master_doc, |
|
211
|
|
|
"personroles", |
|
212
|
|
|
"personroles Documentation", |
|
213
|
|
|
author, |
|
214
|
|
|
"personroles", |
|
215
|
|
|
"A set of dataclasses concerning roles (academic, politician, ...) of persons.", # noqa |
|
216
|
|
|
"Miscellaneous", |
|
217
|
|
|
), |
|
218
|
|
|
] |
|
219
|
|
|
|