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"]
 
  30 intersphinx_mapping = {
 
  31     "python": ("https://docs.python.org/3.7", None),
 
  32     "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
 
  35 # Add any paths that contain templates here, relative to this directory.
 
  36 templates_path = ["_templates"]
 
  38 source_suffix = ".rst"
 
  40 # The master toctree document.
 
  43 # General information about the project.
 
  44 project = "Adafruit_blinka displayio Library"
 
  45 copyright = "2020 Melissa LeBlanc-Williams"
 
  46 author = "Melissa LeBlanc-Williams"
 
  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
 
  52 # The short X.Y version.
 
  54 # The full version, including alpha/beta/rc tags.
 
  57 # The language for content autogenerated by Sphinx. Refer to documentation
 
  58 # for a list of supported languages.
 
  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.
 
  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
 
  75 # The reST default role (used for this markup: `text`) to use for all
 
  80 # If true, '()' will be appended to :func: etc. cross-reference text.
 
  82 add_function_parentheses = True
 
  84 # Generate the class documentation from both the class docstring and the __init__ docstring
 
  85 autoclass_content = "both"
 
  87 # The name of the Pygments (syntax highlighting) style to use.
 
  88 pygments_style = "sphinx"
 
  90 # If true, `todo` and `todoList` produce output, else they produce nothing.
 
  91 todo_include_todos = False
 
  93 # If this is True, todo emits a warning for each TODO entries. The default is False.
 
  94 todo_emit_warnings = True
 
  96 napoleon_numpy_docstring = False
 
  98 # -- Options for HTML output ----------------------------------------------
 
 100 # The theme to use for HTML and HTML Help pages.  See the documentation for
 
 101 # a list of builtin themes.
 
 103 on_rtd = os.environ.get("READTHEDOCS", None) == "True"
 
 105 if not on_rtd:  # only import and set the theme if we're building docs locally
 
 107         import sphinx_rtd_theme
 
 109         html_theme = "sphinx_rtd_theme"
 
 110         html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
 
 112         html_theme = "default"
 
 113         html_theme_path = ["."]
 
 115     html_theme_path = ["."]
 
 117 # Add any paths that contain custom static files (such as style sheets) here,
 
 118 # relative to this directory. They are copied after the builtin static files,
 
 119 # so a file named "default.css" will overwrite the builtin "default.css".
 
 120 html_static_path = ["_static"]
 
 122 # The name of an image file (relative to this directory) to use as a favicon of
 
 123 # the docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
 
 126 html_favicon = "_static/favicon.ico"
 
 128 # Output file base name for HTML help builder.
 
 129 htmlhelp_basename = "Adafruit_blinkaDisplayioLibrarydoc"
 
 131 # -- Options for LaTeX output ---------------------------------------------
 
 134     # The paper size ('letterpaper' or 'a4paper').
 
 135     # 'papersize': 'letterpaper',
 
 136     # The font size ('10pt', '11pt' or '12pt').
 
 137     # 'pointsize': '10pt',
 
 138     # Additional stuff for the LaTeX preamble.
 
 140     # Latex figure (float) alignment
 
 141     # 'figure_align': 'htbp',
 
 144 # Grouping the document tree into LaTeX files. List of tuples
 
 145 # (source start file, target name, title,
 
 146 #  author, documentclass [howto, manual, or own class]).
 
 150         "Adafruit_blinkadisplayioLibrary.tex",
 
 151         "Adafruit_blinkadisplayio Library Documentation",
 
 157 # -- Options for manual page output ---------------------------------------
 
 159 # One entry per manual page. List of tuples
 
 160 # (source start file, name, description, authors, manual section).
 
 164         "Adafruit_blinkadisplayiolibrary",
 
 165         "Adafruit_blinka displayio Library Documentation",
 
 171 # -- Options for Texinfo output -------------------------------------------
 
 173 # Grouping the document tree into Texinfo files. List of tuples
 
 174 # (source start file, target name, title, author,
 
 175 #  dir menu entry, description, category)
 
 176 texinfo_documents = [
 
 179         "Adafruit_blinkadisplayioLibrary",
 
 180         "Adafruit_blinka displayio Library Documentation",
 
 182         "Adafruit_blinkadisplayioLibrary",
 
 183         "One line description of project.",