1
|
|
|
# Configuration file for the Sphinx documentation builder. |
2
|
|
|
# |
3
|
|
|
# This file only contains a selection of the most common options. For a full |
4
|
|
|
# list see the documentation: |
5
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html |
6
|
|
|
|
7
|
|
|
# -- Path setup -------------------------------------------------------------- |
8
|
|
|
|
9
|
|
|
# If extensions (or modules to document with autodoc) are in another directory, |
10
|
|
|
# add these directories to sys.path here. If the directory is relative to the |
11
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here. |
12
|
|
|
|
13
|
|
|
import os |
14
|
|
|
import sys |
15
|
|
|
dirname = os.path.dirname(os.getcwd()) |
16
|
|
|
sys.path.insert(0, dirname) |
17
|
|
|
|
18
|
|
|
import injectify # noqa: F401, E402 |
19
|
|
|
|
20
|
|
|
about = {} |
21
|
|
|
with open(os.path.join(dirname, 'injectify', '__version__.py'), 'r') as f: |
22
|
|
|
exec(f.read(), about) |
23
|
|
|
|
24
|
|
|
# -- Project information ----------------------------------------------------- |
25
|
|
|
|
26
|
|
|
project = about['__title__'] |
27
|
|
|
copyright = about['__copyright__'] |
28
|
|
|
author = about['__author__'] |
29
|
|
|
|
30
|
|
|
# The short X.Y version |
31
|
|
|
version = about['__version__'] |
32
|
|
|
# The full version, including alpha/beta/rc tags |
33
|
|
|
release = about['__version__'] |
34
|
|
|
|
35
|
|
|
# -- General configuration --------------------------------------------------- |
36
|
|
|
|
37
|
|
|
# Add any Sphinx extension module names here, as strings. They can be |
38
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
39
|
|
|
# ones. |
40
|
|
|
extensions = [ |
41
|
|
|
'sphinx.ext.autodoc', |
42
|
|
|
'sphinx.ext.napoleon', |
43
|
|
|
'sphinx.ext.autosectionlabel', |
44
|
|
|
] |
45
|
|
|
|
46
|
|
|
# Add any paths that contain templates here, relative to this directory. |
47
|
|
|
templates_path = ['_templates'] |
48
|
|
|
|
49
|
|
|
# List of patterns, relative to source directory, that match files and |
50
|
|
|
# directories to ignore when looking for source files. |
51
|
|
|
# This pattern also affects html_static_path and html_extra_path. |
52
|
|
|
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
53
|
|
|
|
54
|
|
|
# The master toctree document. |
55
|
|
|
master_doc = 'index' |
56
|
|
|
|
57
|
|
|
# -- Options for HTML output ------------------------------------------------- |
58
|
|
|
|
59
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for |
60
|
|
|
# a list of builtin themes. |
61
|
|
|
# |
62
|
|
|
html_theme = 'sphinx_rtd_theme' |
63
|
|
|
|
64
|
|
|
# Add any paths that contain custom static files (such as style sheets) here, |
65
|
|
|
# relative to this directory. They are copied after the builtin static files, |
66
|
|
|
# so a file named "default.css" will overwrite the builtin "default.css". |
67
|
|
|
html_static_path = ['_static'] |
68
|
|
|
|