1 # -*- coding: utf-8 -*-
3 # SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
5 # SPDX-License-Identifier: MIT
10 sys.path.insert(0, os.path.abspath(".."))
12 # -- General configuration ------------------------------------------------
14 # Add any Sphinx extension module names here, as strings. They can be
15 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
19 "sphinx.ext.intersphinx",
20 "sphinx.ext.napoleon",
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"]
31 intersphinx_mapping = {
32 "python": ("https://docs.python.org/3.4", None),
33 "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
36 # Add any paths that contain templates here, relative to this directory.
37 templates_path = ["_templates"]
39 source_suffix = ".rst"
41 # The master toctree document.
44 # General information about the project.
45 project = "Adafruit_blinka displayio Library"
46 copyright = "2020 Melissa LeBlanc-Williams"
47 author = "Melissa LeBlanc-Williams"
49 # The version info for the project you're documenting, acts as replacement for
50 # |version| and |release|, also used in various other places throughout the
53 # The short X.Y version.
55 # The full version, including alpha/beta/rc tags.
58 # The language for content autogenerated by Sphinx. Refer to documentation
59 # for a list of supported languages.
61 # This is also used if you do content translation via gettext catalogs.
62 # Usually you set "language" from the command line for these cases.
65 # List of patterns, relative to source directory, that match files and
66 # directories to ignore when looking for source files.
67 # This patterns also effect to html_static_path and html_extra_path
76 # The reST default role (used for this markup: `text`) to use for all
81 # If true, '()' will be appended to :func: etc. cross-reference text.
83 add_function_parentheses = True
85 # The name of the Pygments (syntax highlighting) style to use.
86 pygments_style = "sphinx"
88 # If true, `todo` and `todoList` produce output, else they produce nothing.
89 todo_include_todos = False
91 # If this is True, todo emits a warning for each TODO entries. The default is False.
92 todo_emit_warnings = True
94 napoleon_numpy_docstring = False
96 # -- Options for HTML output ----------------------------------------------
98 # The theme to use for HTML and HTML Help pages. See the documentation for
99 # a list of builtin themes.
101 on_rtd = os.environ.get("READTHEDOCS", None) == "True"
103 if not on_rtd: # only import and set the theme if we're building docs locally
105 import sphinx_rtd_theme
107 html_theme = "sphinx_rtd_theme"
108 html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
110 html_theme = "default"
111 html_theme_path = ["."]
113 html_theme_path = ["."]
115 # Add any paths that contain custom static files (such as style sheets) here,
116 # relative to this directory. They are copied after the builtin static files,
117 # so a file named "default.css" will overwrite the builtin "default.css".
118 html_static_path = ["_static"]
120 # The name of an image file (relative to this directory) to use as a favicon of
121 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
124 html_favicon = "_static/favicon.ico"
126 # Output file base name for HTML help builder.
127 htmlhelp_basename = "Adafruit_blinkaDisplayioLibrarydoc"
129 # -- Options for LaTeX output ---------------------------------------------
132 # The paper size ('letterpaper' or 'a4paper').
133 # 'papersize': 'letterpaper',
134 # The font size ('10pt', '11pt' or '12pt').
135 # 'pointsize': '10pt',
136 # Additional stuff for the LaTeX preamble.
138 # Latex figure (float) alignment
139 # 'figure_align': 'htbp',
142 # Grouping the document tree into LaTeX files. List of tuples
143 # (source start file, target name, title,
144 # author, documentclass [howto, manual, or own class]).
148 "Adafruit_blinkadisplayioLibrary.tex",
149 "Adafruit_blinkadisplayio Library Documentation",
155 # -- Options for manual page output ---------------------------------------
157 # One entry per manual page. List of tuples
158 # (source start file, name, description, authors, manual section).
162 "Adafruit_blinkadisplayiolibrary",
163 "Adafruit_blinka displayio Library Documentation",
169 # -- Options for Texinfo output -------------------------------------------
171 # Grouping the document tree into Texinfo files. List of tuples
172 # (source start file, target name, title, author,
173 # dir menu entry, description, category)
174 texinfo_documents = [
177 "Adafruit_blinkadisplayioLibrary",
178 "Adafruit_blinka displayio Library Documentation",
180 "Adafruit_blinkadisplayioLibrary",
181 "One line description of project.",