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