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