|
18 | 18 | #
|
19 | 19 | import os
|
20 | 20 | import sys
|
21 |
| -sys.path.insert(0, os.path.abspath('..')) |
| 21 | + |
| 22 | +sys.path.insert(0, os.path.abspath("..")) |
22 | 23 |
|
23 | 24 | # -- General configuration ------------------------------------------------
|
24 | 25 |
|
|
30 | 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
31 | 32 | # ones.
|
32 | 33 | extensions = [
|
33 |
| - 'sphinx.ext.autodoc', |
34 |
| - 'sphinx.ext.intersphinx', |
35 |
| - 'sphinx.ext.viewcode', |
| 34 | + "sphinx.ext.autodoc", |
| 35 | + "sphinx.ext.intersphinx", |
| 36 | + "sphinx.ext.viewcode", |
36 | 37 | ]
|
37 | 38 |
|
38 | 39 | # Uncomment the below if you use native CircuitPython modules such as
|
|
41 | 42 | # autodoc_mock_imports = ["adafruit_register", "adafruit_bus_device"]
|
42 | 43 |
|
43 | 44 | # Add any paths that contain templates here, relative to this directory.
|
44 |
| -templates_path = ['_templates'] |
| 45 | +templates_path = ["_templates"] |
45 | 46 |
|
46 | 47 | # The suffix(es) of source filenames.
|
47 | 48 | # You can specify multiple suffix as a list of string:
|
48 | 49 | #
|
49 | 50 | # source_suffix = ['.rst', '.md']
|
50 |
| -source_suffix = '.rst' |
| 51 | +source_suffix = ".rst" |
51 | 52 |
|
52 | 53 | # The encoding of source files.
|
53 | 54 | #
|
54 | 55 | # source_encoding = 'utf-8-sig'
|
55 | 56 |
|
56 | 57 | # The master toctree document.
|
57 |
| -master_doc = 'index' |
| 58 | +master_doc = "index" |
58 | 59 |
|
59 | 60 | # General information about the project.
|
60 |
| -project = u'Adafruit DS1307 Library' |
61 |
| -copyright = u'2016, Philip Moyer and Adafruit Industries' |
62 |
| -author = u'Philip Moyer' |
| 61 | +project = u"Adafruit DS1307 Library" |
| 62 | +copyright = u"2016, Philip Moyer and Adafruit Industries" |
| 63 | +author = u"Philip Moyer" |
63 | 64 |
|
64 | 65 | # The version info for the project you're documenting, acts as replacement for
|
65 | 66 | # |version| and |release|, also used in various other places throughout the
|
66 | 67 | # built documents.
|
67 | 68 | #
|
68 | 69 | # The short X.Y version.
|
69 |
| -version = u'1.0' |
| 70 | +version = u"1.0" |
70 | 71 | # The full version, including alpha/beta/rc tags.
|
71 |
| -release = u'1.0' |
| 72 | +release = u"1.0" |
72 | 73 |
|
73 | 74 | # The language for content autogenerated by Sphinx. Refer to documentation
|
74 | 75 | # for a list of supported languages.
|
|
89 | 90 | # List of patterns, relative to source directory, that match files and
|
90 | 91 | # directories to ignore when looking for source files.
|
91 | 92 | # This patterns also effect to html_static_path and html_extra_path
|
92 |
| -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md'] |
| 93 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".env", "CODE_OF_CONDUCT.md"] |
93 | 94 |
|
94 | 95 | # The reST default role (used for this markup: `text`) to use for all
|
95 | 96 | # documents.
|
|
111 | 112 | # show_authors = False
|
112 | 113 |
|
113 | 114 | # The name of the Pygments (syntax highlighting) style to use.
|
114 |
| -pygments_style = 'sphinx' |
| 115 | +pygments_style = "sphinx" |
115 | 116 |
|
116 | 117 | # A list of ignored prefixes for module index sorting.
|
117 | 118 | # modindex_common_prefix = []
|
|
131 | 132 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
132 | 133 | # a list of builtin themes.
|
133 | 134 | #
|
134 |
| -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 135 | +on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
135 | 136 |
|
136 | 137 | if not on_rtd: # only import and set the theme if we're building docs locally
|
137 | 138 | try:
|
138 | 139 | import sphinx_rtd_theme
|
139 |
| - html_theme = 'sphinx_rtd_theme' |
140 |
| - html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), '.'] |
| 140 | + |
| 141 | + html_theme = "sphinx_rtd_theme" |
| 142 | + html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."] |
141 | 143 | except:
|
142 |
| - html_theme = 'default' |
143 |
| - html_theme_path = ['.'] |
| 144 | + html_theme = "default" |
| 145 | + html_theme_path = ["."] |
144 | 146 | else:
|
145 |
| - html_theme_path = ['.'] |
| 147 | + html_theme_path = ["."] |
146 | 148 |
|
147 | 149 | # Theme options are theme-specific and customize the look and feel of a theme
|
148 | 150 | # further. For a list of options available for each theme, see the
|
|
176 | 178 | # Add any paths that contain custom static files (such as style sheets) here,
|
177 | 179 | # relative to this directory. They are copied after the builtin static files,
|
178 | 180 | # so a file named "default.css" will overwrite the builtin "default.css".
|
179 |
| -html_static_path = ['_static'] |
| 181 | +html_static_path = ["_static"] |
180 | 182 |
|
181 | 183 | # The name of an image file (relative to this directory) to use as a favicon of
|
182 | 184 | # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
183 | 185 | # pixels large.
|
184 | 186 | #
|
185 |
| -html_favicon = '_static/favicon.ico' |
| 187 | +html_favicon = "_static/favicon.ico" |
186 | 188 |
|
187 | 189 | # Add any extra paths that contain custom files (such as robots.txt or
|
188 | 190 | # .htaccess) here, relative to this directory. These files are copied
|
|
262 | 264 | # html_search_scorer = 'scorer.js'
|
263 | 265 |
|
264 | 266 | # Output file base name for HTML help builder.
|
265 |
| -htmlhelp_basename = 'AdafruitDS1307Librarydoc' |
| 267 | +htmlhelp_basename = "AdafruitDS1307Librarydoc" |
266 | 268 |
|
267 | 269 | # -- Options for LaTeX output ---------------------------------------------
|
268 | 270 |
|
269 | 271 | latex_elements = {
|
270 |
| - # The paper size ('letterpaper' or 'a4paper'). |
271 |
| - # |
272 |
| - # 'papersize': 'letterpaper', |
273 |
| - |
274 |
| - # The font size ('10pt', '11pt' or '12pt'). |
275 |
| - # |
276 |
| - # 'pointsize': '10pt', |
277 |
| - |
278 |
| - # Additional stuff for the LaTeX preamble. |
279 |
| - # |
280 |
| - # 'preamble': '', |
281 |
| - |
282 |
| - # Latex figure (float) alignment |
283 |
| - # |
284 |
| - # 'figure_align': 'htbp', |
| 272 | + # The paper size ('letterpaper' or 'a4paper'). |
| 273 | + # |
| 274 | + # 'papersize': 'letterpaper', |
| 275 | + # The font size ('10pt', '11pt' or '12pt'). |
| 276 | + # |
| 277 | + # 'pointsize': '10pt', |
| 278 | + # Additional stuff for the LaTeX preamble. |
| 279 | + # |
| 280 | + # 'preamble': '', |
| 281 | + # Latex figure (float) alignment |
| 282 | + # |
| 283 | + # 'figure_align': 'htbp', |
285 | 284 | }
|
286 | 285 |
|
287 | 286 | # Grouping the document tree into LaTeX files. List of tuples
|
288 | 287 | # (source start file, target name, title,
|
289 | 288 | # author, documentclass [howto, manual, or own class]).
|
290 | 289 | latex_documents = [
|
291 |
| - (master_doc, 'AdafruitDS1307Library.tex', u'Adafruit DS1307 Library Documentation', |
292 |
| - u'Phiilip Moyer', 'manual'), |
| 290 | + ( |
| 291 | + master_doc, |
| 292 | + "AdafruitDS1307Library.tex", |
| 293 | + u"Adafruit DS1307 Library Documentation", |
| 294 | + u"Phiilip Moyer", |
| 295 | + "manual", |
| 296 | + ), |
293 | 297 | ]
|
294 | 298 |
|
295 | 299 | # The name of an image file (relative to this directory) to place at the top of
|
|
330 | 334 | # One entry per manual page. List of tuples
|
331 | 335 | # (source start file, name, description, authors, manual section).
|
332 | 336 | man_pages = [
|
333 |
| - (master_doc, 'adafruitds1307library', u'Adafruit DS1307 Library Documentation', |
334 |
| - [author], 1) |
| 337 | + ( |
| 338 | + master_doc, |
| 339 | + "adafruitds1307library", |
| 340 | + u"Adafruit DS1307 Library Documentation", |
| 341 | + [author], |
| 342 | + 1, |
| 343 | + ) |
335 | 344 | ]
|
336 | 345 |
|
337 | 346 | # If true, show URL addresses after external links.
|
|
345 | 354 | # (source start file, target name, title, author,
|
346 | 355 | # dir menu entry, description, category)
|
347 | 356 | texinfo_documents = [
|
348 |
| - (master_doc, 'AdafruitDS1307Library', u'Adafruit DS1307 Library Documentation', |
349 |
| - author, 'AdafruitDS1307Library', 'One line description of project.', |
350 |
| - 'Miscellaneous'), |
| 357 | + ( |
| 358 | + master_doc, |
| 359 | + "AdafruitDS1307Library", |
| 360 | + u"Adafruit DS1307 Library Documentation", |
| 361 | + author, |
| 362 | + "AdafruitDS1307Library", |
| 363 | + "One line description of project.", |
| 364 | + "Miscellaneous", |
| 365 | + ), |
351 | 366 | ]
|
352 | 367 |
|
353 | 368 | # Documents to append as an appendix to all manuals.
|
|
366 | 381 | #
|
367 | 382 | # texinfo_no_detailmenu = False
|
368 | 383 |
|
369 |
| -intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None), |
370 |
| - 'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)} |
| 384 | +intersphinx_mapping = { |
| 385 | + "python": ("https://docs.python.org/3.4", None), |
| 386 | + "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None), |
| 387 | +} |
0 commit comments