Diff of /docs/conf.py [000000] .. [fde104]

Switch to unified view

a b/docs/conf.py
1
#!/usr/bin/env python
2
#
3
# wsic documentation build configuration file, created by
4
# sphinx-quickstart on Fri Jun  9 13:47:02 2017.
5
#
6
# This file is execfile()d with the current directory set to its
7
# containing dir.
8
#
9
# Note that not all possible configuration values are present in this
10
# autogenerated file.
11
#
12
# All configuration values have a default; values that are commented out
13
# serve to show the default.
14
15
# If extensions (or modules to document with autodoc) are in another
16
# directory, add these directories to sys.path here. If the directory is
17
# relative to the documentation root, use os.path.abspath to make it
18
# absolute, like shown here.
19
#
20
import os
21
import sys
22
23
sys.path.insert(0, os.path.abspath(".."))
24
25
import wsic  # noqa: E402
26
27
# -- General configuration ---------------------------------------------
28
29
# If your documentation needs a minimal Sphinx version, state it here.
30
#
31
# needs_sphinx = '1.0'
32
33
# Add any Sphinx extension module names here, as strings. They can be
34
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
35
extensions = [
36
    "sphinx.ext.autodoc",
37
    "sphinx.ext.viewcode",
38
    "sphinx.ext.napoleon",
39
    "sphinx.ext.autosummary",
40
    "sphinx.ext.intersphinx",
41
    "myst_parser",
42
]
43
44
# Add any paths that contain templates here, relative to this directory.
45
templates_path = ["_templates"]
46
47
# The suffix(es) of source filenames.
48
# You can specify multiple suffix as a list of string:
49
#
50
# source_suffix = ['.rst', '.md']
51
source_suffix = ".rst"
52
53
# The master toctree document.
54
master_doc = "index"
55
56
# General information about the project.
57
project = "wsic"
58
copyright = "2022, John Pocock"  # noqa: A001
59
author = "John Pocock"
60
61
# The version info for the project you're documenting, acts as replacement
62
# for |version| and |release|, also used in various other places throughout
63
# the built documents.
64
#
65
# The short X.Y version.
66
version = wsic.__version__
67
# The full version, including alpha/beta/rc tags.
68
release = wsic.__version__
69
70
# The language for content autogenerated by Sphinx. Refer to documentation
71
# for a list of supported languages.
72
#
73
# This is also used if you do content translation via gettext catalogs.
74
# Usually you set "language" from the command line for these cases.
75
language = "en"
76
77
# List of patterns, relative to source directory, that match files and
78
# directories to ignore when looking for source files.
79
# This patterns also effect to html_static_path and html_extra_path
80
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
81
82
# The name of the Pygments (syntax highlighting) style to use.
83
pygments_style = "sphinx"
84
85
# If true, `todo` and `todoList` produce output, else they produce nothing.
86
todo_include_todos = False
87
88
89
# -- Options for HTML output -------------------------------------------
90
91
# The theme to use for HTML and HTML Help pages.  See the documentation for
92
# a list of builtin themes.
93
#
94
html_theme = "alabaster"
95
96
# Theme options are theme-specific and customize the look and feel of a
97
# theme further.  For a list of options available for each theme, see the
98
# documentation.
99
#
100
# html_theme_options = {}
101
102
# Add any paths that contain custom static files (such as style sheets) here,
103
# relative to this directory. They are copied after the builtin static files,
104
# so a file named "default.css" will overwrite the builtin "default.css".
105
html_static_path = ["_static"]
106
107
108
# -- Options for HTMLHelp output ---------------------------------------
109
110
# Output file base name for HTML help builder.
111
htmlhelp_basename = "wsicdoc"
112
113
114
# -- Options for LaTeX output ------------------------------------------
115
116
latex_elements = {
117
    # The paper size ('letterpaper' or 'a4paper').
118
    #
119
    # 'papersize': 'letterpaper',
120
    # The font size ('10pt', '11pt' or '12pt').
121
    #
122
    # 'pointsize': '10pt',
123
    # Additional stuff for the LaTeX preamble.
124
    #
125
    # 'preamble': '',
126
    # Latex figure (float) alignment
127
    #
128
    # 'figure_align': 'htbp',
129
}
130
131
# Grouping the document tree into LaTeX files. List of tuples
132
# (source start file, target name, title, author, documentclass
133
# [howto, manual, or own class]).
134
latex_documents = [
135
    (master_doc, "wsic.tex", "wsic Documentation", "John Pocock", "manual"),
136
]
137
138
139
# -- Options for manual page output ------------------------------------
140
141
# One entry per manual page. List of tuples
142
# (source start file, name, description, authors, manual section).
143
man_pages = [(master_doc, "wsic", "wsic Documentation", [author], 1)]
144
145
146
# -- Options for Texinfo output ----------------------------------------
147
148
# Grouping the document tree into Texinfo files. List of tuples
149
# (source start file, target name, title, author,
150
#  dir menu entry, description, category)
151
texinfo_documents = [
152
    (
153
        master_doc,
154
        "wsic",
155
        "wsic Documentation",
156
        author,
157
        "wsic",
158
        "Whole Slide Image (WSI) conversion for brightfield histology images.",
159
        "Miscellaneous",
160
    ),
161
]
162
163
# -- Options for autodoc -----------------------------------------------
164
165
autodoc_typehints = "description"