1 # -*- coding: utf-8 -*-
3 # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
5 # SPDX-License-Identifier: MIT
10 sys.path.insert(0, os.path.abspath("../src"))
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",
23 # Uncomment the below if you use native CircuitPython modules such as
24 # digitalio, micropython and busio. List the modules you use. Without it, the
25 # autodoc module docs will fail to generate with a warning.
26 autodoc_mock_imports = [
35 intersphinx_mapping = {
36 "python": ("https://docs.python.org/3.7", None),
37 "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
40 # Add any paths that contain templates here, relative to this directory.
41 templates_path = ["_templates"]
43 source_suffix = ".rst"
45 # The master toctree document.
48 # General information about the project.
49 project = "Adafruit Blinka Library"
50 copyright = "2017 cefn"
53 # The version info for the project you're documenting, acts as replacement for
54 # |version| and |release|, also used in various other places throughout the
57 # The short X.Y version.
59 # The full version, including alpha/beta/rc tags.
62 # The language for content autogenerated by Sphinx. Refer to documentation
63 # for a list of supported languages.
65 # This is also used if you do content translation via gettext catalogs.
66 # Usually you set "language" from the command line for these cases.
69 # List of patterns, relative to source directory, that match files and
70 # directories to ignore when looking for source files.
71 # This patterns also effect to html_static_path and html_extra_path
72 exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".env", "CODE_OF_CONDUCT.md"]
74 # The reST default role (used for this markup: `text`) to use for all
79 # If true, '()' will be appended to :func: etc. cross-reference text.
81 add_function_parentheses = True
83 # The name of the Pygments (syntax highlighting) style to use.
84 pygments_style = "sphinx"
86 # If true, `todo` and `todoList` produce output, else they produce nothing.
87 todo_include_todos = False
89 # If this is True, todo emits a warning for each TODO entries. The default is False.
90 todo_emit_warnings = True
93 # -- Options for HTML output ----------------------------------------------
95 # The theme to use for HTML and HTML Help pages. See the documentation for
96 # a list of builtin themes.
98 on_rtd = os.environ.get("READTHEDOCS", None) == "True"
100 html_theme = "sphinx_rtd_theme"
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"]
107 # The name of an image file (relative to this directory) to use as a favicon of
108 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
111 html_favicon = "_static/favicon.ico"
113 # Output file base name for HTML help builder.
114 htmlhelp_basename = "AdafruitBlinkaLibrarydoc"
116 # -- Options for LaTeX output ---------------------------------------------
119 # The paper size ('letterpaper' or 'a4paper').
121 # 'papersize': 'letterpaper',
122 # The font size ('10pt', '11pt' or '12pt').
124 # 'pointsize': '10pt',
125 # Additional stuff for the LaTeX preamble.
128 # Latex figure (float) alignment
130 # 'figure_align': 'htbp',
133 # Grouping the document tree into LaTeX files. List of tuples
134 # (source start file, target name, title,
135 # author, documentclass [howto, manual, or own class]).
139 "AdafruitBlinkaLibrary.tex",
140 "AdafruitBlinka Library Documentation",
146 # -- Options for manual page output ---------------------------------------
148 # One entry per manual page. List of tuples
149 # (source start file, name, description, authors, manual section).
153 "AdafruitBlinkalibrary",
154 "Adafruit Blinka Library Documentation",
160 # -- Options for Texinfo output -------------------------------------------
162 # Grouping the document tree into Texinfo files. List of tuples
163 # (source start file, target name, title, author,
164 # dir menu entry, description, category)
165 texinfo_documents = [
168 "AdafruitBlinkaLibrary",
169 "Adafruit Blinka Library Documentation",
171 "AdafruitBlinkaLibrary",
172 "One line description of project.",