]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blob - docs/conf.py
Fix indexed bitmaps by correcting argument order at call
[hackapet/Adafruit_Blinka_Displayio.git] / docs / conf.py
1 # -*- coding: utf-8 -*-
2
3 # SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
4 #
5 # SPDX-License-Identifier: MIT
6
7 import os
8 import sys
9
10 sys.path.insert(0, os.path.abspath(".."))
11
12 # -- General configuration ------------------------------------------------
13
14 # Add any Sphinx extension module names here, as strings. They can be
15 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
16 # ones.
17 extensions = [
18     "sphinx.ext.autodoc",
19     "sphinx.ext.intersphinx",
20     "sphinx.ext.napoleon",
21     "sphinx.ext.todo",
22 ]
23
24 # TODO: Please Read!
25 # Uncomment the below if you use native CircuitPython modules such as
26 # digitalio, micropython and busio. List the modules you use. Without it, the
27 # autodoc module docs will fail to generate with a warning.
28 # autodoc_mock_imports = ["digitalio", "busio"]
29
30 intersphinx_mapping = {
31     "python": ("https://docs.python.org/3.7", None),
32     "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
33 }
34
35 # Add any paths that contain templates here, relative to this directory.
36 templates_path = ["_templates"]
37
38 source_suffix = ".rst"
39
40 # The master toctree document.
41 master_doc = "index"
42
43 # General information about the project.
44 project = "Adafruit_blinka displayio Library"
45 copyright = "2020 Melissa LeBlanc-Williams"
46 author = "Melissa LeBlanc-Williams"
47
48 # The version info for the project you're documenting, acts as replacement for
49 # |version| and |release|, also used in various other places throughout the
50 # built documents.
51 #
52 # The short X.Y version.
53 version = "1.0"
54 # The full version, including alpha/beta/rc tags.
55 release = "1.0"
56
57 # The language for content autogenerated by Sphinx. Refer to documentation
58 # for a list of supported languages.
59 #
60 # This is also used if you do content translation via gettext catalogs.
61 # Usually you set "language" from the command line for these cases.
62 language = "en"
63
64 # List of patterns, relative to source directory, that match files and
65 # directories to ignore when looking for source files.
66 # This patterns also effect to html_static_path and html_extra_path
67 exclude_patterns = [
68     "_build",
69     "Thumbs.db",
70     ".DS_Store",
71     ".env",
72     "CODE_OF_CONDUCT.md",
73 ]
74
75 # The reST default role (used for this markup: `text`) to use for all
76 # documents.
77 #
78 default_role = "any"
79
80 # If true, '()' will be appended to :func: etc. cross-reference text.
81 #
82 add_function_parentheses = True
83
84 # Generate the class documentation from both the class docstring and the __init__ docstring
85 autoclass_content = "both"
86
87 # The name of the Pygments (syntax highlighting) style to use.
88 pygments_style = "sphinx"
89
90 # If true, `todo` and `todoList` produce output, else they produce nothing.
91 todo_include_todos = False
92
93 # If this is True, todo emits a warning for each TODO entries. The default is False.
94 todo_emit_warnings = True
95
96 napoleon_numpy_docstring = False
97
98 # -- Options for HTML output ----------------------------------------------
99
100 # The theme to use for HTML and HTML Help pages.  See the documentation for
101 # a list of builtin themes.
102 #
103 on_rtd = os.environ.get("READTHEDOCS", None) == "True"
104
105 html_theme = "sphinx_rtd_theme"
106
107 # Add any paths that contain custom static files (such as style sheets) here,
108 # relative to this directory. They are copied after the builtin static files,
109 # so a file named "default.css" will overwrite the builtin "default.css".
110 html_static_path = ["_static"]
111
112 # The name of an image file (relative to this directory) to use as a favicon of
113 # the docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
114 # pixels large.
115 #
116 html_favicon = "_static/favicon.ico"
117
118 # Output file base name for HTML help builder.
119 htmlhelp_basename = "Adafruit_blinkaDisplayioLibrarydoc"
120
121 # -- Options for LaTeX output ---------------------------------------------
122
123 latex_elements = {
124     # The paper size ('letterpaper' or 'a4paper').
125     # 'papersize': 'letterpaper',
126     # The font size ('10pt', '11pt' or '12pt').
127     # 'pointsize': '10pt',
128     # Additional stuff for the LaTeX preamble.
129     # 'preamble': '',
130     # Latex figure (float) alignment
131     # 'figure_align': 'htbp',
132 }
133
134 # Grouping the document tree into LaTeX files. List of tuples
135 # (source start file, target name, title,
136 #  author, documentclass [howto, manual, or own class]).
137 latex_documents = [
138     (
139         master_doc,
140         "Adafruit_blinkadisplayioLibrary.tex",
141         "Adafruit_blinkadisplayio Library Documentation",
142         author,
143         "manual",
144     ),
145 ]
146
147 # -- Options for manual page output ---------------------------------------
148
149 # One entry per manual page. List of tuples
150 # (source start file, name, description, authors, manual section).
151 man_pages = [
152     (
153         master_doc,
154         "Adafruit_blinkadisplayiolibrary",
155         "Adafruit_blinka displayio Library Documentation",
156         [author],
157         1,
158     ),
159 ]
160
161 # -- Options for Texinfo output -------------------------------------------
162
163 # Grouping the document tree into Texinfo files. List of tuples
164 # (source start file, target name, title, author,
165 #  dir menu entry, description, category)
166 texinfo_documents = [
167     (
168         master_doc,
169         "Adafruit_blinkadisplayioLibrary",
170         "Adafruit_blinka displayio Library Documentation",
171         author,
172         "Adafruit_blinkadisplayioLibrary",
173         "One line description of project.",
174         "Miscellaneous",
175     ),
176 ]