|
2 | 2 |
|
3 | 3 | import os
|
4 | 4 | import sys
|
5 |
| -sys.path.insert(0, os.path.abspath('..')) |
| 5 | + |
| 6 | +sys.path.insert(0, os.path.abspath("..")) |
6 | 7 |
|
7 | 8 | # -- General configuration ------------------------------------------------
|
8 | 9 |
|
9 | 10 | # Add any Sphinx extension module names here, as strings. They can be
|
10 | 11 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
11 | 12 | # ones.
|
12 | 13 | extensions = [
|
13 |
| - 'sphinx.ext.autodoc', |
14 |
| - 'sphinx.ext.intersphinx', |
15 |
| - 'sphinx.ext.napoleon', |
16 |
| - 'sphinx.ext.todo', |
| 14 | + "sphinx.ext.autodoc", |
| 15 | + "sphinx.ext.intersphinx", |
| 16 | + "sphinx.ext.napoleon", |
| 17 | + "sphinx.ext.todo", |
17 | 18 | ]
|
18 | 19 |
|
19 | 20 | # TODO: Please Read!
|
|
23 | 24 | # autodoc_mock_imports = ["digitalio", "busio"]
|
24 | 25 |
|
25 | 26 |
|
26 |
| -intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'BusDevice': ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)} |
| 27 | +intersphinx_mapping = { |
| 28 | + "python": ("https://docs.python.org/3.4", None), |
| 29 | + "BusDevice": ( |
| 30 | + "https://circuitpython.readthedocs.io/projects/busdevice/en/latest/", |
| 31 | + None, |
| 32 | + ), |
| 33 | + "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None), |
| 34 | +} |
27 | 35 |
|
28 | 36 | # Add any paths that contain templates here, relative to this directory.
|
29 |
| -templates_path = ['_templates'] |
| 37 | +templates_path = ["_templates"] |
30 | 38 |
|
31 |
| -source_suffix = '.rst' |
| 39 | +source_suffix = ".rst" |
32 | 40 |
|
33 | 41 | # The master toctree document.
|
34 |
| -master_doc = 'index' |
| 42 | +master_doc = "index" |
35 | 43 |
|
36 | 44 | # General information about the project.
|
37 |
| -project = u'Adafruit NeoPixel_SPI Library' |
38 |
| -copyright = u'2019 Carter Nelson' |
39 |
| -author = u'Carter Nelson' |
| 45 | +project = u"Adafruit NeoPixel_SPI Library" |
| 46 | +copyright = u"2019 Carter Nelson" |
| 47 | +author = u"Carter Nelson" |
40 | 48 |
|
41 | 49 | # The version info for the project you're documenting, acts as replacement for
|
42 | 50 | # |version| and |release|, also used in various other places throughout the
|
43 | 51 | # built documents.
|
44 | 52 | #
|
45 | 53 | # The short X.Y version.
|
46 |
| -version = u'1.0' |
| 54 | +version = u"1.0" |
47 | 55 | # The full version, including alpha/beta/rc tags.
|
48 |
| -release = u'1.0' |
| 56 | +release = u"1.0" |
49 | 57 |
|
50 | 58 | # The language for content autogenerated by Sphinx. Refer to documentation
|
51 | 59 | # for a list of supported languages.
|
|
57 | 65 | # List of patterns, relative to source directory, that match files and
|
58 | 66 | # directories to ignore when looking for source files.
|
59 | 67 | # This patterns also effect to html_static_path and html_extra_path
|
60 |
| -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md'] |
| 68 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".env", "CODE_OF_CONDUCT.md"] |
61 | 69 |
|
62 | 70 | # The reST default role (used for this markup: `text`) to use for all
|
63 | 71 | # documents.
|
|
69 | 77 | add_function_parentheses = True
|
70 | 78 |
|
71 | 79 | # The name of the Pygments (syntax highlighting) style to use.
|
72 |
| -pygments_style = 'sphinx' |
| 80 | +pygments_style = "sphinx" |
73 | 81 |
|
74 | 82 | # If true, `todo` and `todoList` produce output, else they produce nothing.
|
75 | 83 | todo_include_todos = False
|
|
84 | 92 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
85 | 93 | # a list of builtin themes.
|
86 | 94 | #
|
87 |
| -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 95 | +on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
88 | 96 |
|
89 | 97 | if not on_rtd: # only import and set the theme if we're building docs locally
|
90 | 98 | try:
|
91 | 99 | import sphinx_rtd_theme
|
92 |
| - html_theme = 'sphinx_rtd_theme' |
93 |
| - html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), '.'] |
| 100 | + |
| 101 | + html_theme = "sphinx_rtd_theme" |
| 102 | + html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."] |
94 | 103 | except:
|
95 |
| - html_theme = 'default' |
96 |
| - html_theme_path = ['.'] |
| 104 | + html_theme = "default" |
| 105 | + html_theme_path = ["."] |
97 | 106 | else:
|
98 |
| - html_theme_path = ['.'] |
| 107 | + html_theme_path = ["."] |
99 | 108 |
|
100 | 109 | # Add any paths that contain custom static files (such as style sheets) here,
|
101 | 110 | # relative to this directory. They are copied after the builtin static files,
|
102 | 111 | # so a file named "default.css" will overwrite the builtin "default.css".
|
103 |
| -html_static_path = ['_static'] |
| 112 | +html_static_path = ["_static"] |
104 | 113 |
|
105 | 114 | # The name of an image file (relative to this directory) to use as a favicon of
|
106 | 115 | # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
107 | 116 | # pixels large.
|
108 | 117 | #
|
109 |
| -html_favicon = '_static/favicon.ico' |
| 118 | +html_favicon = "_static/favicon.ico" |
110 | 119 |
|
111 | 120 | # Output file base name for HTML help builder.
|
112 |
| -htmlhelp_basename = 'AdafruitNeopixel_spiLibrarydoc' |
| 121 | +htmlhelp_basename = "AdafruitNeopixel_spiLibrarydoc" |
113 | 122 |
|
114 | 123 | # -- Options for LaTeX output ---------------------------------------------
|
115 | 124 |
|
116 | 125 | latex_elements = {
|
117 |
| - # The paper size ('letterpaper' or 'a4paper'). |
118 |
| - # |
119 |
| - # 'papersize': 'letterpaper', |
120 |
| - |
121 |
| - # The font size ('10pt', '11pt' or '12pt'). |
122 |
| - # |
123 |
| - # 'pointsize': '10pt', |
124 |
| - |
125 |
| - # Additional stuff for the LaTeX preamble. |
126 |
| - # |
127 |
| - # 'preamble': '', |
128 |
| - |
129 |
| - # Latex figure (float) alignment |
130 |
| - # |
131 |
| - # 'figure_align': 'htbp', |
| 126 | + # The paper size ('letterpaper' or 'a4paper'). |
| 127 | + # |
| 128 | + # 'papersize': 'letterpaper', |
| 129 | + # The font size ('10pt', '11pt' or '12pt'). |
| 130 | + # |
| 131 | + # 'pointsize': '10pt', |
| 132 | + # Additional stuff for the LaTeX preamble. |
| 133 | + # |
| 134 | + # 'preamble': '', |
| 135 | + # Latex figure (float) alignment |
| 136 | + # |
| 137 | + # 'figure_align': 'htbp', |
132 | 138 | }
|
133 | 139 |
|
134 | 140 | # Grouping the document tree into LaTeX files. List of tuples
|
135 | 141 | # (source start file, target name, title,
|
136 | 142 | # author, documentclass [howto, manual, or own class]).
|
137 | 143 | latex_documents = [
|
138 |
| - (master_doc, 'AdafruitNeoPixel_SPILibrary.tex', u'AdafruitNeoPixel_SPI Library Documentation', |
139 |
| - author, 'manual'), |
| 144 | + ( |
| 145 | + master_doc, |
| 146 | + "AdafruitNeoPixel_SPILibrary.tex", |
| 147 | + u"AdafruitNeoPixel_SPI Library Documentation", |
| 148 | + author, |
| 149 | + "manual", |
| 150 | + ), |
140 | 151 | ]
|
141 | 152 |
|
142 | 153 | # -- Options for manual page output ---------------------------------------
|
143 | 154 |
|
144 | 155 | # One entry per manual page. List of tuples
|
145 | 156 | # (source start file, name, description, authors, manual section).
|
146 | 157 | man_pages = [
|
147 |
| - (master_doc, 'AdafruitNeoPixel_SPIlibrary', u'Adafruit NeoPixel_SPI Library Documentation', |
148 |
| - [author], 1) |
| 158 | + ( |
| 159 | + master_doc, |
| 160 | + "AdafruitNeoPixel_SPIlibrary", |
| 161 | + u"Adafruit NeoPixel_SPI Library Documentation", |
| 162 | + [author], |
| 163 | + 1, |
| 164 | + ) |
149 | 165 | ]
|
150 | 166 |
|
151 | 167 | # -- Options for Texinfo output -------------------------------------------
|
|
154 | 170 | # (source start file, target name, title, author,
|
155 | 171 | # dir menu entry, description, category)
|
156 | 172 | texinfo_documents = [
|
157 |
| - (master_doc, 'AdafruitNeoPixel_SPILibrary', u'Adafruit NeoPixel_SPI Library Documentation', |
158 |
| - author, 'AdafruitNeoPixel_SPILibrary', 'One line description of project.', |
159 |
| - 'Miscellaneous'), |
| 173 | + ( |
| 174 | + master_doc, |
| 175 | + "AdafruitNeoPixel_SPILibrary", |
| 176 | + u"Adafruit NeoPixel_SPI Library Documentation", |
| 177 | + author, |
| 178 | + "AdafruitNeoPixel_SPILibrary", |
| 179 | + "One line description of project.", |
| 180 | + "Miscellaneous", |
| 181 | + ), |
160 | 182 | ]
|
0 commit comments