1 # -*- coding: utf-8 -*-
5 sys.path.insert(0, os.path.abspath('../src'))
7 # -- General configuration ------------------------------------------------
9 # Add any Sphinx extension module names here, as strings. They can be
10 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
14 'sphinx.ext.intersphinx',
18 # Uncomment the below if you use native CircuitPython modules such as
19 # digitalio, micropython and busio. List the modules you use. Without it, the
20 # autodoc module docs will fail to generate with a warning.
21 autodoc_mock_imports = ["machine"]
23 intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),
24 'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
26 # Add any paths that contain templates here, relative to this directory.
27 templates_path = ['_templates']
29 source_suffix = '.rst'
31 # The master toctree document.
34 # General information about the project.
35 project = u'Adafruit Blinka Library'
36 copyright = u'2017 cefn'
39 # The version info for the project you're documenting, acts as replacement for
40 # |version| and |release|, also used in various other places throughout the
43 # The short X.Y version.
45 # The full version, including alpha/beta/rc tags.
48 # The language for content autogenerated by Sphinx. Refer to documentation
49 # for a list of supported languages.
51 # This is also used if you do content translation via gettext catalogs.
52 # Usually you set "language" from the command line for these cases.
55 # List of patterns, relative to source directory, that match files and
56 # directories to ignore when looking for source files.
57 # This patterns also effect to html_static_path and html_extra_path
58 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md']
60 # The reST default role (used for this markup: `text`) to use for all
65 # If true, '()' will be appended to :func: etc. cross-reference text.
67 add_function_parentheses = True
69 # The name of the Pygments (syntax highlighting) style to use.
70 pygments_style = 'sphinx'
72 # If true, `todo` and `todoList` produce output, else they produce nothing.
73 todo_include_todos = False
75 # If this is True, todo emits a warning for each TODO entries. The default is False.
76 todo_emit_warnings = True
79 # -- Options for HTML output ----------------------------------------------
81 # The theme to use for HTML and HTML Help pages. See the documentation for
82 # a list of builtin themes.
84 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
86 if not on_rtd: # only import and set the theme if we're building docs locally
88 import sphinx_rtd_theme
89 html_theme = 'sphinx_rtd_theme'
90 html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), '.']
92 html_theme = 'default'
93 html_theme_path = ['.']
95 html_theme_path = ['.']
97 # Add any paths that contain custom static files (such as style sheets) here,
98 # relative to this directory. They are copied after the builtin static files,
99 # so a file named "default.css" will overwrite the builtin "default.css".
100 html_static_path = ['_static']
102 # Output file base name for HTML help builder.
103 htmlhelp_basename = 'AdafruitBlinkaLibrarydoc'
105 # -- Options for LaTeX output ---------------------------------------------
108 # The paper size ('letterpaper' or 'a4paper').
110 # 'papersize': 'letterpaper',
112 # The font size ('10pt', '11pt' or '12pt').
114 # 'pointsize': '10pt',
116 # Additional stuff for the LaTeX preamble.
120 # Latex figure (float) alignment
122 # 'figure_align': 'htbp',
125 # Grouping the document tree into LaTeX files. List of tuples
126 # (source start file, target name, title,
127 # author, documentclass [howto, manual, or own class]).
129 (master_doc, 'AdafruitBlinkaLibrary.tex', u'AdafruitBlinka Library Documentation',
133 # -- Options for manual page output ---------------------------------------
135 # One entry per manual page. List of tuples
136 # (source start file, name, description, authors, manual section).
138 (master_doc, 'AdafruitBlinkalibrary', u'Adafruit Blinka Library Documentation',
142 # -- Options for Texinfo output -------------------------------------------
144 # Grouping the document tree into Texinfo files. List of tuples
145 # (source start file, target name, title, author,
146 # dir menu entry, description, category)
147 texinfo_documents = [
148 (master_doc, 'AdafruitBlinkaLibrary', u'Adafruit Blinka Library Documentation',
149 author, 'AdafruitBlinkaLibrary', 'One line description of project.',