|
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 |
|
|
29 | 30 | # Add any Sphinx extension module names here, as strings. They can be
|
30 | 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
31 | 32 | # ones.
|
32 |
| -extensions = [ |
33 |
| - 'sphinx.ext.autodoc', |
34 |
| - 'sphinx.ext.todo', |
35 |
| - 'sphinx.ext.intersphinx' |
36 |
| -] |
| 33 | +extensions = ["sphinx.ext.autodoc", "sphinx.ext.todo", "sphinx.ext.intersphinx"] |
37 | 34 |
|
38 | 35 | # Uncomment the below if you use native CircuitPython modules such as
|
39 | 36 | # digitalio, micropython and busio. List the modules you use. Without it, the
|
40 | 37 | # autodoc module docs will fail to generate with a warning.
|
41 | 38 | # autodoc_mock_imports = ["adafruit_bus_device", "adafruit_register"]
|
42 | 39 |
|
43 | 40 | # Add any paths that contain templates here, relative to this directory.
|
44 |
| -templates_path = ['_templates'] |
| 41 | +templates_path = ["_templates"] |
45 | 42 |
|
46 | 43 | # The suffix(es) of source filenames.
|
47 | 44 | # You can specify multiple suffix as a list of string:
|
48 | 45 | #
|
49 |
| -source_suffix = ['.rst', '.md'] |
| 46 | +source_suffix = [".rst", ".md"] |
50 | 47 | # source_suffix = '.rst'
|
51 | 48 |
|
52 | 49 | # The encoding of source files.
|
53 | 50 | #
|
54 | 51 | # source_encoding = 'utf-8-sig'
|
55 | 52 |
|
56 | 53 | # The master toctree document.
|
57 |
| -master_doc = 'index' |
| 54 | +master_doc = "index" |
58 | 55 |
|
59 | 56 | # General information about the project.
|
60 |
| -project = u'Adafruit\'s PCF8523 RTC Library' |
61 |
| -copyright = u'2016, Philip Moyer' |
62 |
| -author = u'Philip Moyer' |
| 57 | +project = u"Adafruit's PCF8523 RTC Library" |
| 58 | +copyright = u"2016, Philip Moyer" |
| 59 | +author = u"Philip Moyer" |
63 | 60 |
|
64 | 61 | # The version info for the project you're documenting, acts as replacement for
|
65 | 62 | # |version| and |release|, also used in various other places throughout the
|
66 | 63 | # built documents.
|
67 | 64 | #
|
68 | 65 | # The short X.Y version.
|
69 |
| -version = u'1.0' |
| 66 | +version = u"1.0" |
70 | 67 | # The full version, including alpha/beta/rc tags.
|
71 |
| -release = u'1.0' |
| 68 | +release = u"1.0" |
72 | 69 |
|
73 | 70 | # The language for content autogenerated by Sphinx. Refer to documentation
|
74 | 71 | # for a list of supported languages.
|
|
89 | 86 | # List of patterns, relative to source directory, that match files and
|
90 | 87 | # directories to ignore when looking for source files.
|
91 | 88 | # 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'] |
| 89 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".env", "CODE_OF_CONDUCT.md"] |
93 | 90 |
|
94 | 91 | # The reST default role (used for this markup: `text`) to use for all
|
95 | 92 | # documents.
|
|
111 | 108 | # show_authors = False
|
112 | 109 |
|
113 | 110 | # The name of the Pygments (syntax highlighting) style to use.
|
114 |
| -pygments_style = 'sphinx' |
| 111 | +pygments_style = "sphinx" |
115 | 112 |
|
116 | 113 | # A list of ignored prefixes for module index sorting.
|
117 | 114 | # modindex_common_prefix = []
|
|
130 | 127 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
131 | 128 | # a list of builtin themes.
|
132 | 129 | #
|
133 |
| -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 130 | +on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
134 | 131 |
|
135 | 132 | if not on_rtd: # only import and set the theme if we're building docs locally
|
136 | 133 | try:
|
137 | 134 | import sphinx_rtd_theme
|
138 |
| - html_theme = 'sphinx_rtd_theme' |
139 |
| - html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), '.'] |
| 135 | + |
| 136 | + html_theme = "sphinx_rtd_theme" |
| 137 | + html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."] |
140 | 138 | except:
|
141 |
| - html_theme = 'default' |
142 |
| - html_theme_path = ['.'] |
| 139 | + html_theme = "default" |
| 140 | + html_theme_path = ["."] |
143 | 141 | else:
|
144 |
| - html_theme_path = ['.'] |
| 142 | + html_theme_path = ["."] |
145 | 143 |
|
146 | 144 | # Theme options are theme-specific and customize the look and feel of a theme
|
147 | 145 | # further. For a list of options available for each theme, see the
|
|
169 | 167 | # The name of an image file (within the static path) to use as favicon of the
|
170 | 168 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
171 | 169 | # pixels large.
|
172 |
| -html_favicon = '_static/favicon.ico' |
| 170 | +html_favicon = "_static/favicon.ico" |
173 | 171 |
|
174 | 172 | # Add any paths that contain custom static files (such as style sheets) here,
|
175 | 173 | # relative to this directory. They are copied after the builtin static files,
|
176 | 174 | # so a file named "default.css" will overwrite the builtin "default.css".
|
177 |
| -html_static_path = ['_static'] |
| 175 | +html_static_path = ["_static"] |
178 | 176 |
|
179 | 177 | # Add any extra paths that contain custom files (such as robots.txt or
|
180 | 178 | # .htaccess) here, relative to this directory. These files are copied
|
|
259 | 257 | # -- Options for LaTeX output ---------------------------------------------
|
260 | 258 |
|
261 | 259 | latex_elements = {
|
262 |
| - # The paper size ('letterpaper' or 'a4paper'). |
263 |
| - # |
264 |
| - # 'papersize': 'letterpaper', |
265 |
| - |
266 |
| - # The font size ('10pt', '11pt' or '12pt'). |
267 |
| - # |
268 |
| - # 'pointsize': '10pt', |
269 |
| - |
270 |
| - # Additional stuff for the LaTeX preamble. |
271 |
| - # |
272 |
| - # 'preamble': '', |
273 |
| - |
274 |
| - # Latex figure (float) alignment |
275 |
| - # |
276 |
| - # 'figure_align': 'htbp', |
| 260 | + # The paper size ('letterpaper' or 'a4paper'). |
| 261 | + # |
| 262 | + # 'papersize': 'letterpaper', |
| 263 | + # The font size ('10pt', '11pt' or '12pt'). |
| 264 | + # |
| 265 | + # 'pointsize': '10pt', |
| 266 | + # Additional stuff for the LaTeX preamble. |
| 267 | + # |
| 268 | + # 'preamble': '', |
| 269 | + # Latex figure (float) alignment |
| 270 | + # |
| 271 | + # 'figure_align': 'htbp', |
277 | 272 | }
|
278 | 273 |
|
279 | 274 | # Grouping the document tree into LaTeX files. List of tuples
|
280 | 275 | # (source start file, target name, title,
|
281 | 276 | # author, documentclass [howto, manual, or own class]).
|
282 | 277 | latex_documents = [
|
283 |
| - (master_doc, 'AdafruitsPCF8523RTCLibrary.tex', u'Adafruit\'s PCF8523 RTC Library Documentation', |
284 |
| - u'Philip Moyer', 'manual'), |
| 278 | + ( |
| 279 | + master_doc, |
| 280 | + "AdafruitsPCF8523RTCLibrary.tex", |
| 281 | + u"Adafruit's PCF8523 RTC Library Documentation", |
| 282 | + u"Philip Moyer", |
| 283 | + "manual", |
| 284 | + ), |
285 | 285 | ]
|
286 | 286 |
|
287 | 287 | # The name of an image file (relative to this directory) to place at the top of
|
|
322 | 322 | # One entry per manual page. List of tuples
|
323 | 323 | # (source start file, name, description, authors, manual section).
|
324 | 324 | man_pages = [
|
325 |
| - (master_doc, 'AdafruitsPCF8523RTCLibrary23rtclibrary', u'Adafruit\'s PCF8523 RTC Library Documentation', |
326 |
| - [author], 1) |
| 325 | + ( |
| 326 | + master_doc, |
| 327 | + "AdafruitsPCF8523RTCLibrary23rtclibrary", |
| 328 | + u"Adafruit's PCF8523 RTC Library Documentation", |
| 329 | + [author], |
| 330 | + 1, |
| 331 | + ) |
327 | 332 | ]
|
328 | 333 |
|
329 | 334 | # If true, show URL addresses after external links.
|
|
337 | 342 | # (source start file, target name, title, author,
|
338 | 343 | # dir menu entry, description, category)
|
339 | 344 | texinfo_documents = [
|
340 |
| - (master_doc, 'AdafruitsPCF8523RTCLibrary', u'Adafruit\'s PCF8523 RTC Library Documentation', |
341 |
| - author, 'AdafruitsPCF8523RTCLibrary', 'One line description of project.', |
342 |
| - 'Miscellaneous'), |
| 345 | + ( |
| 346 | + master_doc, |
| 347 | + "AdafruitsPCF8523RTCLibrary", |
| 348 | + u"Adafruit's PCF8523 RTC Library Documentation", |
| 349 | + author, |
| 350 | + "AdafruitsPCF8523RTCLibrary", |
| 351 | + "One line description of project.", |
| 352 | + "Miscellaneous", |
| 353 | + ), |
343 | 354 | ]
|
344 | 355 |
|
345 | 356 | # Documents to append as an appendix to all manuals.
|
|
358 | 369 | #
|
359 | 370 | # texinfo_no_detailmenu = False
|
360 | 371 |
|
361 |
| -intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None), |
362 |
| - 'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)} |
| 372 | +intersphinx_mapping = { |
| 373 | + "python": ("https://docs.python.org/3.4", None), |
| 374 | + "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None), |
| 375 | +} |
0 commit comments