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 = [
37 intersphinx_mapping = {
38 "python": ("https://docs.python.org/3.4", None),
39 "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
42 # Add any paths that contain templates here, relative to this directory.
43 templates_path = ["_templates"]
45 source_suffix = ".rst"
47 # The master toctree document.
50 # General information about the project.
51 project = "Adafruit_blinka displayio Library"
52 copyright = "2020 Melissa LeBlanc-Williams"
53 author = "Melissa LeBlanc-Williams"
55 # The version info for the project you're documenting, acts as replacement for
56 # |version| and |release|, also used in various other places throughout the
59 # The short X.Y version.
61 # The full version, including alpha/beta/rc tags.
64 # The language for content autogenerated by Sphinx. Refer to documentation
65 # for a list of supported languages.
67 # This is also used if you do content translation via gettext catalogs.
68 # Usually you set "language" from the command line for these cases.
71 # List of patterns, relative to source directory, that match files and
72 # directories to ignore when looking for source files.
73 # This patterns also effect to html_static_path and html_extra_path
82 # The reST default role (used for this markup: `text`) to use for all
87 # If true, '()' will be appended to :func: etc. cross-reference text.
89 add_function_parentheses = True
91 # The name of the Pygments (syntax highlighting) style to use.
92 pygments_style = "sphinx"
94 # If true, `todo` and `todoList` produce output, else they produce nothing.
95 todo_include_todos = False
97 # If this is True, todo emits a warning for each TODO entries. The default is False.
98 todo_emit_warnings = True
100 napoleon_numpy_docstring = False
102 # -- Options for HTML output ----------------------------------------------
104 # The theme to use for HTML and HTML Help pages. See the documentation for
105 # a list of builtin themes.
107 on_rtd = os.environ.get("READTHEDOCS", None) == "True"
109 if not on_rtd: # only import and set the theme if we're building docs locally
111 import sphinx_rtd_theme
113 html_theme = "sphinx_rtd_theme"
114 html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
116 html_theme = "default"
117 html_theme_path = ["."]
119 html_theme_path = ["."]
121 # Add any paths that contain custom static files (such as style sheets) here,
122 # relative to this directory. They are copied after the builtin static files,
123 # so a file named "default.css" will overwrite the builtin "default.css".
124 html_static_path = ["_static"]
126 # The name of an image file (relative to this directory) to use as a favicon of
127 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
130 html_favicon = "_static/favicon.ico"
132 # Output file base name for HTML help builder.
133 htmlhelp_basename = "Adafruit_blinkaDisplayioLibrarydoc"
135 # -- Options for LaTeX output ---------------------------------------------
138 # The paper size ('letterpaper' or 'a4paper').
139 # 'papersize': 'letterpaper',
140 # The font size ('10pt', '11pt' or '12pt').
141 # 'pointsize': '10pt',
142 # Additional stuff for the LaTeX preamble.
144 # Latex figure (float) alignment
145 # 'figure_align': 'htbp',
148 # Grouping the document tree into LaTeX files. List of tuples
149 # (source start file, target name, title,
150 # author, documentclass [howto, manual, or own class]).
154 "Adafruit_blinkadisplayioLibrary.tex",
155 "Adafruit_blinkadisplayio Library Documentation",
161 # -- Options for manual page output ---------------------------------------
163 # One entry per manual page. List of tuples
164 # (source start file, name, description, authors, manual section).
168 "Adafruit_blinkadisplayiolibrary",
169 "Adafruit_blinka displayio Library Documentation",
175 # -- Options for Texinfo output -------------------------------------------
177 # Grouping the document tree into Texinfo files. List of tuples
178 # (source start file, target name, title, author,
179 # dir menu entry, description, category)
180 texinfo_documents = [
183 "Adafruit_blinkadisplayioLibrary",
184 "Adafruit_blinka displayio Library Documentation",
186 "Adafruit_blinkadisplayioLibrary",
187 "One line description of project.",