|
1 | 1 | # -- Path setup -------------------------------------------------------------- |
2 | 2 |
|
3 | | -# If extensions (or modules to document with autodoc) are in another directory, |
4 | | -# add these directories to sys.path here. If the directory is relative to the |
5 | | -# documentation root, use os.path.abspath to make it absolute, like shown here. |
6 | | -# |
7 | | -# import os |
8 | | -# import sys |
9 | | -# sys.path.insert(0, os.path.abspath('.')) |
| 3 | +import sys |
| 4 | +import os |
| 5 | + |
| 6 | +# Project root (so 'epyt' is importable as a package) |
| 7 | +sys.path.insert(0, os.path.abspath('..')) |
10 | 8 |
|
| 9 | +# epyt/src/ so modules inside src are discoverable by autodoc |
| 10 | +sys.path.insert(0, os.path.abspath('../epyt/src')) |
11 | 11 |
|
12 | 12 | # -- Project information ----------------------------------------------------- |
13 | 13 |
|
14 | 14 | project = 'epyt' |
15 | 15 | copyright = '2022, KIOS Research and Innovation Center of Excellence' |
16 | | -# If extensions (or modules to document with autodoc) are in another directory, |
17 | | -# add these directories to sys.path here. |
18 | | -import sys |
19 | | -import os |
20 | | -sys.path.insert(0, os.path.abspath('..')) |
21 | | - |
22 | 16 | author = 'KIOS CoE' |
23 | 17 |
|
24 | 18 | # The full version, including alpha/beta/rc tags |
25 | 19 | release = '1.0.7' |
26 | 20 |
|
27 | 21 | # -- General configuration --------------------------------------------------- |
28 | 22 |
|
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 | 23 | extensions = [ |
33 | 24 | 'sphinx.ext.duration', |
34 | 25 | 'sphinx.ext.doctest', |
|
39 | 30 | 'sphinx_copybutton' |
40 | 31 | ] |
41 | 32 |
|
42 | | -# Add any paths that contain templates here, relative to this directory. |
| 33 | +# Mock C extensions that cannot be imported during doc builds |
| 34 | +autodoc_mock_imports = ['cffi'] |
| 35 | + |
| 36 | +# Autodoc settings - automatically document all members |
| 37 | +autodoc_default_options = { |
| 38 | + 'members': True, |
| 39 | + 'undoc-members': True, |
| 40 | + 'show-inheritance': True, |
| 41 | + 'member-order': 'bysource', |
| 42 | + 'special-members': '__init__', |
| 43 | +} |
| 44 | + |
| 45 | +autosummary_generate = True |
| 46 | + |
43 | 47 | templates_path = ['_templates'] |
44 | 48 |
|
45 | | -# List of patterns, relative to source directory, that match files and |
46 | | -# directories to ignore when looking for source files. |
47 | | -# This pattern also affects html_static_path and html_extra_path. |
48 | | -exclude_patterns = [] |
| 49 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
49 | 50 |
|
50 | 51 | # -- Options for HTML output ------------------------------------------------- |
51 | 52 |
|
52 | | -# The theme to use for HTML and HTML Help pages. See the documentation for |
53 | | -# a list of builtin themes. |
54 | | -# |
55 | | -# Add any paths that contain custom static files (such as style sheets) here, |
56 | | -# relative to this directory. They are copied after the builtin static files, |
57 | | -# so a file named "default.css" will overwrite the builtin "default.css". |
58 | | -html_static_path = ['_static'] |
59 | | - |
60 | 53 | html_theme = 'sphinx_rtd_theme' |
61 | | - |
62 | | -# extensions = ['sphinx.ext.autosummary',] |
63 | | -# autodoc_default_flags = ['members'] |
64 | | -# autosummary_generate = True |
| 54 | +html_static_path = ['_static'] |
0 commit comments