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
|
|
|
import os |
13
|
|
|
import sys |
14
|
|
|
sys.path.insert(0, os.path.abspath('../src/software_patterns')) |
15
|
|
|
|
16
|
|
|
# Please use the Sphinx format for writting docstrings (other fornats include Google and Numpy which require the 'napoleon' extension). |
17
|
|
|
|
18
|
|
|
# -- Project information ----------------------------------------------------- |
19
|
|
|
|
20
|
|
|
project = 'software-patterns' |
21
|
|
|
copyright = '2021, Konstantinos Lampridis' |
22
|
|
|
author = 'Konstantinos Lampridis' |
23
|
|
|
|
24
|
|
|
# The full version, including alpha/beta/rc tags |
25
|
|
|
release = '0.9.0' |
26
|
|
|
|
27
|
|
|
# -- General configuration --------------------------------------------------- |
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 |
31
|
|
|
# ones. |
32
|
|
|
extensions = [ |
33
|
|
|
'sphinx.ext.doctest', |
34
|
|
|
'sphinx.ext.autodoc', # provides the automodule directive |
35
|
|
|
'sphinx.ext.autosummary', |
36
|
|
|
'sphinx.ext.coverage', |
37
|
|
|
'sphinx.ext.doctest', |
38
|
|
|
'sphinx.ext.extlinks', |
39
|
|
|
'sphinx.ext.ifconfig', |
40
|
|
|
'sphinx.ext.napoleon', |
41
|
|
|
'sphinx.ext.todo', |
42
|
|
|
'sphinx.ext.viewcode', |
43
|
|
|
'sphinxcontrib.spelling' |
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
|
|
|
|
55
|
|
|
# -- Options for HTML output ------------------------------------------------- |
56
|
|
|
|
57
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for |
58
|
|
|
# a list of builtin themes. |
59
|
|
|
|
60
|
|
|
# on_rtd is whether we are on readthedocs.org |
61
|
|
|
on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
62
|
|
|
|
63
|
|
|
if not on_rtd: # only set the theme if we're building docs locally |
64
|
|
|
html_theme = 'sphinx_rtd_theme' |
65
|
|
|
|
66
|
|
|
# Add any paths that contain custom static files (such as style sheets) here, |
67
|
|
|
# relative to this directory. They are copied after the builtin static files, |
68
|
|
|
# so a file named "default.css" will overwrite the builtin "default.css". |
69
|
|
|
# html_static_path = ['_static'] |
70
|
|
|
|
71
|
|
|
|
72
|
|
|
### External Links Configuration ### |
73
|
|
|
# provided by the sphinx.ext.extlinks extension |
74
|
|
|
|
75
|
|
|
# With the current settings (see the mapping below), you can for example use the directive :issue:`50`, which will |
76
|
|
|
# render a link with text 'issue 50' which upon clicking redirects to https://github.com/peterwittek/somoclu/issues/50 |
77
|
|
|
|
78
|
|
|
# Mapping of link identifiers/keys to: |
79
|
|
|
# 2-length tuples with 1st item the url and 2nd the prefix (the "text string") |
80
|
|
|
# extlinks = { |
81
|
|
|
# 'issue': ( |
82
|
|
|
# 'https://github.com/peterwittek/somoclu/issues/%s', |
83
|
|
|
# 'issue ' |
84
|
|
|
# ), |
85
|
|
|
# } |
86
|
|
|
|