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