a b/docs/source/conf.py
1
# -*- coding: utf-8 -*-
2
#
3
# Configuration file for the Sphinx documentation builder.
4
#
5
# This file does only contain a selection of the most common options. For a
6
# full list see the documentation:
7
# http://www.sphinx-doc.org/en/master/config
8
9
# -- Path setup --------------------------------------------------------------
10
11
# If extensions (or modules to document with autodoc) are in another directory,
12
# add these directories to sys.path here. If the directory is relative to the
13
# documentation root, use os.path.abspath to make it absolute, like shown here.
14
#
15
import os
16
import sys
17
18
sys.path.insert(0, os.path.abspath("../../src"))
19
20
# -- Project information -----------------------------------------------------
21
22
project = "medigan"
23
copyright = "2022, Richard Osuala, Grzegorz Skorupko, Noussair Lazrak"
24
author = "Richard Osuala, Grzegorz Skorupko, Noussair Lazrak"
25
26
# The short X.Y version
27
version = ""
28
# The full version, including alpha/beta/rc tags
29
release = "1.0.0"
30
31
# -- General configuration ---------------------------------------------------
32
33
# If your documentation needs a minimal Sphinx version, state it here.
34
#
35
# needs_sphinx = '1.0'
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
41
extensions = [
42
    "sphinx.ext.autodoc",
43
    "sphinx.ext.doctest",
44
    "sphinx.ext.coverage",
45
    "sphinx.ext.mathjax",
46
    "sphinx.ext.viewcode",
47
    "sphinx.ext.githubpages",
48
    "sphinx.ext.napoleon",
49
    "sphinx_rtd_theme",
50
    "sphinx_automodapi.automodapi",
51
    "sphinx_automodapi.smart_resolver",
52
    "sphinx.ext.autosummary",
53
    "myst_parser",
54
]
55
# 'sphinx_automodapi.smart_resolver'
56
57
# https://sphinx-automodapi.readthedocs.io/_/downloads/en/stable/pdf/
58
numpydoc_show_class_members = False
59
60
# Add any paths that contain templates here, relative to this directory.
61
templates_path = ["_templates"]
62
63
# The suffix(es) of source filenames.
64
# You can specify multiple suffix as a list of string:
65
#
66
# source_suffix = ['.rst', '.md']
67
source_suffix = ".rst"
68
69
# The master toctree document.
70
master_doc = "index"
71
72
# The language for content autogenerated by Sphinx. Refer to documentation
73
# for a list of supported languages.
74
#
75
# This is also used if you do content translation via gettext catalogs.
76
# Usually you set "language" from the command line for these cases.
77
language = None
78
79
# List of patterns, relative to source directory, that match files and
80
# directories to ignore when looking for source files.
81
# This pattern also affects html_static_path and html_extra_path .
82
exclude_patterns = []
83
84
# The name of the Pygments (syntax highlighting) style to use.
85
pygments_style = "sphinx"
86
87
# -- Options for HTML output -------------------------------------------------
88
89
# The theme to use for HTML and HTML Help pages.  See the documentation for
90
# a list of builtin themes.
91
# Check themes here: https://sphinxthemes.com/
92
html_theme = "sphinx_rtd_theme"  # 'book' #'classic' #'alabaster'
93
94
# Theme options are theme-specific and customize the look and feel of a theme
95
# further.  For a list of options available for each theme, see the
96
# documentation.
97
#
98
html_theme_options = {
99
    "collapse_navigation": True,
100
    "navigation_depth": 5,
101
    "includehidden": True,
102
    "titles_only": False,
103
}
104
105
# Add any paths that contain custom static files (such as style sheets) here,
106
# relative to this directory. They are copied after the builtin static files,
107
# so a file named "default.css" will overwrite the builtin "default.css".
108
html_static_path = ["_static"]
109
110
# Custom sidebar templates, must be a dictionary that maps document names
111
# to template names.
112
#
113
# The default sidebars (for documents that don't match any pattern) are
114
# defined by theme itself.  Builtin themes are using these templates by
115
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
116
# 'searchbox.html']``.
117
#
118
# html_sidebars = {}
119
120
121
# -- Options for HTMLHelp output ---------------------------------------------
122
123
# Output file base name for HTML help builder.
124
htmlhelp_basename = "medigandoc"
125
126
# -- Options for LaTeX output ------------------------------------------------
127
128
latex_elements = {
129
    # The paper size ('letterpaper' or 'a4paper').
130
    #
131
    # 'papersize': 'letterpaper',
132
    # The font size ('10pt', '11pt' or '12pt').
133
    #
134
    # 'pointsize': '10pt',
135
    # Additional stuff for the LaTeX preamble.
136
    #
137
    # 'preamble': '',
138
    # Latex figure (float) alignment
139
    #
140
    # 'figure_align': 'htbp',
141
}
142
143
# Grouping the document tree into LaTeX files. List of tuples
144
# (source start file, target name, title,
145
#  author, documentclass [howto, manual, or own class]).
146
latex_documents = [
147
    (master_doc, "medigan.tex", "medigan Documentation", [author], "manual"),
148
]
149
150
# -- Options for manual page output ------------------------------------------
151
152
# One entry per manual page. List of tuples
153
# (source start file, name, description, authors, manual section).
154
man_pages = [(master_doc, "medigan", "medigan Documentation", [author], 1)]
155
156
# -- Options for Texinfo output ----------------------------------------------
157
158
# Grouping the document tree into Texinfo files. List of tuples
159
# (source start file, target name, title, author,
160
#  dir menu entry, description, category)
161
texinfo_documents = [
162
    (
163
        master_doc,
164
        "medigan",
165
        "medigan Documentation",
166
        author,
167
        "medigan",
168
        "One line description of project.",
169
        "Miscellaneous",
170
    ),
171
]
172
173
# -- Options for Epub output -------------------------------------------------
174
175
# Bibliographic Dublin Core info.
176
epub_title = project
177
epub_author = author
178
epub_publisher = author
179
epub_copyright = copyright
180
181
# The unique identifier of the text. This can be a ISBN number
182
# or the project homepage.
183
#
184
# epub_identifier = ''
185
186
# A unique identification for the text.
187
#
188
# epub_uid = ''
189
190
# A list of files that should not be packed into the epub file.
191
epub_exclude_files = ["search.html"]
192
193
# -- Extension configuration -------------------------------------------------