|
20 | 20 | import os |
21 | 21 | import sys |
22 | 22 |
|
23 | | -sys.path.insert(0, os.path.abspath('.')) |
| 23 | +sys.path.insert(0, os.path.abspath(".")) |
24 | 24 |
|
25 | | -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 25 | +on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
26 | 26 |
|
27 | 27 | # -- General configuration ------------------------------------------------ |
28 | 28 |
|
|
33 | 33 | # Add any Sphinx extension module names here, as strings. They can be |
34 | 34 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
35 | 35 | # ones. |
36 | | -extensions = [ |
37 | | - 'sphinx.ext.autodoc', |
38 | | - 'usage', |
39 | | -] |
| 36 | +extensions = ["sphinx.ext.autodoc", "usage"] |
40 | 37 |
|
41 | 38 | # Add any paths that contain templates here, relative to this directory. |
42 | | -templates_path = ['_templates'] |
| 39 | +templates_path = ["_templates"] |
43 | 40 |
|
44 | 41 | # The suffix(es) of source filenames. |
45 | 42 | # You can specify multiple suffix as a list of string: |
46 | 43 | # |
47 | 44 | # source_suffix = ['.rst', '.md'] |
48 | | -source_suffix = '.rst' |
| 45 | +source_suffix = ".rst" |
49 | 46 |
|
50 | 47 | # The encoding of source files. |
51 | 48 | # |
52 | 49 | # source_encoding = 'utf-8-sig' |
53 | 50 |
|
54 | 51 | # The master toctree document. |
55 | | -master_doc = 'index' |
| 52 | +master_doc = "index" |
56 | 53 |
|
57 | 54 | # General information about the project. |
58 | | -project = 'Borg - Import' |
59 | | -copyright = '2016-2017 The Borg Collective (see AUTHORS file)' |
60 | | -author = 'The Borg Collective' |
| 55 | +project = "Borg - Import" |
| 56 | +copyright = "2016-2025 The Borg Collective (see AUTHORS file)" |
| 57 | +author = "The Borg Collective" |
61 | 58 |
|
62 | 59 | # The version info for the project you're documenting, acts as replacement for |
63 | 60 | # |version| and |release|, also used in various other places throughout the |
64 | 61 | # built documents. |
65 | 62 | # |
66 | 63 | # The short X.Y version. |
67 | | -version = '0.0' |
| 64 | +version = "0.0" |
68 | 65 | # The full version, including alpha/beta/rc tags. |
69 | | -release = '0.0.0' |
| 66 | +release = "0.0.0" |
70 | 67 |
|
71 | 68 | # The language for content autogenerated by Sphinx. Refer to documentation |
72 | 69 | # for a list of supported languages. |
|
83 | 80 | # Else, today_fmt is used as the format for a strftime call. |
84 | 81 | # |
85 | 82 | # today_fmt = '%B %d, %Y' |
86 | | -today_fmt = '%Y-%m-%d' |
| 83 | +today_fmt = "%Y-%m-%d" |
87 | 84 |
|
88 | 85 | # List of patterns, relative to source directory, that match files and |
89 | 86 | # directories to ignore when looking for source files. |
90 | 87 | # This patterns also effect to html_static_path and html_extra_path |
91 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 88 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
92 | 89 |
|
93 | 90 | # The reST default role (used for this markup: `text`) to use for all |
94 | 91 | # documents. |
|
110 | 107 | # show_authors = False |
111 | 108 |
|
112 | 109 | # The name of the Pygments (syntax highlighting) style to use. |
113 | | -pygments_style = 'sphinx' |
| 110 | +pygments_style = "sphinx" |
114 | 111 |
|
115 | 112 | # A list of ignored prefixes for module index sorting. |
116 | 113 | # modindex_common_prefix = [] |
|
129 | 126 | # |
130 | 127 | if not on_rtd: # only import and set the theme if we're building docs locally |
131 | 128 | import sphinx_rtd_theme |
132 | | - html_theme = 'sphinx_rtd_theme' |
| 129 | + |
| 130 | + html_theme = "sphinx_rtd_theme" |
133 | 131 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
134 | | - html_style = 'css/borg.css' |
| 132 | + html_style = "css/borg.css" |
135 | 133 | else: |
136 | 134 | html_context = { |
137 | | - 'css_files': [ |
138 | | - 'https://media.readthedocs.org/css/sphinx_rtd_theme.css', |
139 | | - 'https://media.readthedocs.org/css/readthedocs-doc-embed.css', |
140 | | - '_static/css/borg.css', |
141 | | - ], |
| 135 | + "css_files": [ |
| 136 | + "https://media.readthedocs.org/css/sphinx_rtd_theme.css", |
| 137 | + "https://media.readthedocs.org/css/readthedocs-doc-embed.css", |
| 138 | + "_static/css/borg.css", |
| 139 | + ] |
142 | 140 | } |
143 | 141 |
|
144 | 142 | # Theme options are theme-specific and customize the look and feel of a theme |
|
163 | 161 | # of the sidebar. |
164 | 162 | # |
165 | 163 | # html_logo = None |
166 | | -html_logo = '_static/logo.png' |
| 164 | +html_logo = "_static/logo.png" |
167 | 165 |
|
168 | 166 | # The name of an image file (relative to this directory) to use as a favicon of |
169 | 167 | # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
170 | 168 | # pixels large. |
171 | 169 | # |
172 | 170 | # html_favicon = None |
173 | | -html_favicon = '_static/favicon.ico' |
| 171 | +html_favicon = "_static/favicon.ico" |
174 | 172 |
|
175 | 173 | # Add any paths that contain custom static files (such as style sheets) here, |
176 | 174 | # relative to this directory. They are copied after the builtin static files, |
177 | 175 | # so a file named "default.css" will overwrite the builtin "default.css". |
178 | | -#html_static_path = ['_static'] |
179 | | -html_static_path = ['borg_theme'] |
| 176 | +# html_static_path = ['_static'] |
| 177 | +html_static_path = ["borg_theme"] |
180 | 178 |
|
181 | 179 | # Add any extra paths that contain custom files (such as robots.txt or |
182 | 180 | # .htaccess) here, relative to this directory. These files are copied |
|
189 | 187 | # The empty string is equivalent to '%b %d, %Y'. |
190 | 188 | # |
191 | 189 | # html_last_updated_fmt = None |
192 | | -html_last_updated_fmt = '%Y-%m-%d' |
| 190 | +html_last_updated_fmt = "%Y-%m-%d" |
193 | 191 |
|
194 | 192 | # If true, SmartyPants will be used to convert quotes and dashes to |
195 | 193 | # typographically correct entities. |
|
201 | 199 | # html_sidebars = {} |
202 | 200 | # Custom sidebar templates, maps document names to template names. |
203 | 201 | html_sidebars = { |
204 | | - 'index': ['sidebarlogo.html', 'sidebarusefullinks.html', 'searchbox.html'], |
205 | | - '**': ['sidebarlogo.html', 'relations.html', 'searchbox.html', 'localtoc.html', 'sidebarusefullinks.html'] |
| 202 | + "index": ["sidebarlogo.html", "sidebarusefullinks.html", "searchbox.html"], |
| 203 | + "**": ["sidebarlogo.html", "relations.html", "searchbox.html", "localtoc.html", "sidebarusefullinks.html"], |
206 | 204 | } |
207 | 205 |
|
208 | 206 | # Additional templates that should be rendered to pages, maps page names to |
|
262 | 260 | # html_search_scorer = 'scorer.js' |
263 | 261 |
|
264 | 262 | # Output file base name for HTML help builder. |
265 | | -htmlhelp_basename = 'borg-importdoc' |
| 263 | +htmlhelp_basename = "borg-importdoc" |
266 | 264 |
|
267 | 265 | # -- Options for LaTeX output --------------------------------------------- |
268 | 266 |
|
269 | 267 | 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', |
| 268 | + # The paper size ('letterpaper' or 'a4paper'). |
| 269 | + # |
| 270 | + # 'papersize': 'letterpaper', |
| 271 | + # The font size ('10pt', '11pt' or '12pt'). |
| 272 | + # |
| 273 | + # 'pointsize': '10pt', |
| 274 | + # Additional stuff for the LaTeX preamble. |
| 275 | + # |
| 276 | + # 'preamble': '', |
| 277 | + # Latex figure (float) alignment |
| 278 | + # |
| 279 | + # 'figure_align': 'htbp', |
285 | 280 | } |
286 | 281 |
|
287 | 282 | # Grouping the document tree into LaTeX files. List of tuples |
288 | 283 | # (source start file, target name, title, |
289 | 284 | # author, documentclass [howto, manual, or own class]). |
290 | | -latex_documents = [ |
291 | | - (master_doc, 'borg-import.tex', 'borg-import Documentation', |
292 | | - 'The Borg Collective', 'manual'), |
293 | | -] |
| 285 | +latex_documents = [(master_doc, "borg-import.tex", "borg-import Documentation", "The Borg Collective", "manual")] |
294 | 286 |
|
295 | 287 | # The name of an image file (relative to this directory) to place at the top of |
296 | 288 | # the title page. |
|
329 | 321 |
|
330 | 322 | # One entry per manual page. List of tuples |
331 | 323 | # (source start file, name, description, authors, manual section). |
332 | | -man_pages = [ |
333 | | - (master_doc, 'borg-import', 'borg-import Documentation', |
334 | | - [author], 1) |
335 | | -] |
| 324 | +man_pages = [(master_doc, "borg-import", "borg-import Documentation", [author], 1)] |
336 | 325 |
|
337 | 326 | # If true, show URL addresses after external links. |
338 | 327 | # |
|
345 | 334 | # (source start file, target name, title, author, |
346 | 335 | # dir menu entry, description, category) |
347 | 336 | texinfo_documents = [ |
348 | | - (master_doc, 'borg-import', 'borg-import Documentation', |
349 | | - author, 'borg-import', 'One line description of project.', |
350 | | - 'Miscellaneous'), |
| 337 | + ( |
| 338 | + master_doc, |
| 339 | + "borg-import", |
| 340 | + "borg-import Documentation", |
| 341 | + author, |
| 342 | + "borg-import", |
| 343 | + "One line description of project.", |
| 344 | + "Miscellaneous", |
| 345 | + ) |
351 | 346 | ] |
352 | 347 |
|
353 | 348 | # Documents to append as an appendix to all manuals. |
|
0 commit comments