|
12 | 12 | # All configuration values have a default; values that are commented out |
13 | 13 | # serve to show the default. |
14 | 14 |
|
| 15 | +import sys |
| 16 | + |
15 | 17 | # If extensions (or modules to document with autodoc) are in another directory, |
16 | 18 | # add these directories to sys.path here. If the directory is relative to the |
17 | 19 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
18 | 20 | # |
19 | 21 | from os import path |
20 | | -import sys |
21 | 22 |
|
22 | 23 | sys.path.insert(0, path.dirname(path.dirname(__file__))) |
23 | 24 |
|
|
34 | 35 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
35 | 36 | # ones. |
36 | 37 | extensions = [ |
37 | | - 'sphinx.ext.autosectionlabel', |
| 38 | + "sphinx.ext.autosectionlabel", |
38 | 39 | ] |
39 | 40 |
|
40 | 41 | # Add any paths that contain templates here, relative to this directory. |
41 | | -templates_path = ['_templates'] |
| 42 | +templates_path = ["_templates"] |
42 | 43 |
|
43 | 44 | # The suffix(es) of source filenames. |
44 | 45 | # You can specify multiple suffix as a list of string: |
45 | 46 | # |
46 | 47 | # source_suffix = ['.rst', '.md'] |
47 | | -source_suffix = {'.rst': 'restructuredtext'} |
| 48 | +source_suffix = {".rst": "restructuredtext"} |
48 | 49 |
|
49 | 50 | # The master toctree document. |
50 | | -master_doc = 'index' |
| 51 | +master_doc = "index" |
51 | 52 |
|
52 | 53 | # General information about the project. |
53 | | -project = u'scrapy-zyte-smartproxy' |
54 | | -copyright = u'2011-2021, Zyte Group Ltd' |
55 | | -author = u'Zyte' |
| 54 | +project = "scrapy-zyte-smartproxy" |
| 55 | +copyright = "2011-2021, Zyte Group Ltd" |
| 56 | +author = "Zyte" |
56 | 57 |
|
57 | 58 | # The version info for the project you're documenting, acts as replacement for |
58 | 59 | # |version| and |release|, also used in various other places throughout the |
|
61 | 62 |
|
62 | 63 | try: |
63 | 64 | import scrapy_zyte_smartproxy |
64 | | - version = '.'.join(scrapy_zyte_smartproxy.__version__.split('.')[:2]) |
| 65 | + |
| 66 | + version = ".".join(scrapy_zyte_smartproxy.__version__.split(".")[:2]) |
65 | 67 | release = scrapy_zyte_smartproxy.__version__ |
66 | 68 | except ImportError: |
67 | | - version = '' |
68 | | - release = '' |
| 69 | + version = "" |
| 70 | + release = "" |
69 | 71 |
|
70 | 72 | # List of patterns, relative to source directory, that match files and |
71 | 73 | # directories to ignore when looking for source files. |
72 | 74 | # This patterns also effect to html_static_path and html_extra_path |
73 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 75 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
74 | 76 |
|
75 | 77 | # The name of the Pygments (syntax highlighting) style to use. |
76 | | -pygments_style = 'sphinx' |
| 78 | +pygments_style = "sphinx" |
77 | 79 |
|
78 | 80 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
79 | 81 | todo_include_todos = False |
|
94 | 96 | # Add any paths that contain custom static files (such as style sheets) here, |
95 | 97 | # relative to this directory. They are copied after the builtin static files, |
96 | 98 | # so a file named "default.css" will overwrite the builtin "default.css". |
97 | | -#html_static_path = ['_static'] |
| 99 | +# html_static_path = ['_static'] |
98 | 100 |
|
99 | 101 |
|
100 | 102 | # -- Options for HTMLHelp output ------------------------------------------ |
101 | 103 |
|
102 | 104 | # Output file base name for HTML help builder. |
103 | | -htmlhelp_basename = 'scrapy-zyte-smartproxydoc' |
| 105 | +htmlhelp_basename = "scrapy-zyte-smartproxydoc" |
104 | 106 |
|
105 | 107 |
|
106 | 108 | # -- Options for LaTeX output --------------------------------------------- |
|
109 | 111 | # The paper size ('letterpaper' or 'a4paper'). |
110 | 112 | # |
111 | 113 | # 'papersize': 'letterpaper', |
112 | | - |
113 | 114 | # The font size ('10pt', '11pt' or '12pt'). |
114 | 115 | # |
115 | 116 | # 'pointsize': '10pt', |
116 | | - |
117 | 117 | # Additional stuff for the LaTeX preamble. |
118 | 118 | # |
119 | 119 | # 'preamble': '', |
120 | | - |
121 | 120 | # Latex figure (float) alignment |
122 | 121 | # |
123 | 122 | # 'figure_align': 'htbp', |
|
129 | 128 | latex_documents = [ |
130 | 129 | ( |
131 | 130 | master_doc, |
132 | | - 'scrapy-zyte-smartproxy.tex', |
133 | | - u'scrapy-zyte-smartproxy Documentation', |
134 | | - u'Zyte', |
135 | | - 'manual', |
| 131 | + "scrapy-zyte-smartproxy.tex", |
| 132 | + "scrapy-zyte-smartproxy Documentation", |
| 133 | + "Zyte", |
| 134 | + "manual", |
136 | 135 | ), |
137 | 136 | ] |
138 | 137 |
|
|
142 | 141 | # One entry per manual page. List of tuples |
143 | 142 | # (source start file, name, description, authors, manual section). |
144 | 143 | man_pages = [ |
145 | | - (master_doc, 'scrapy-zyte-smartproxy', u'scrapy-zyte-smartproxy Documentation', |
146 | | - [author], 1) |
| 144 | + ( |
| 145 | + master_doc, |
| 146 | + "scrapy-zyte-smartproxy", |
| 147 | + "scrapy-zyte-smartproxy Documentation", |
| 148 | + [author], |
| 149 | + 1, |
| 150 | + ) |
147 | 151 | ] |
148 | 152 |
|
149 | 153 |
|
|
153 | 157 | # (source start file, target name, title, author, |
154 | 158 | # dir menu entry, description, category) |
155 | 159 | texinfo_documents = [ |
156 | | - (master_doc, 'scrapy-zyte-smartproxy', u'scrapy-zyte-smartproxy Documentation', |
157 | | - author, 'scrapy-zyte-smartproxy', 'One line description of project.', |
158 | | - 'Miscellaneous'), |
| 160 | + ( |
| 161 | + master_doc, |
| 162 | + "scrapy-zyte-smartproxy", |
| 163 | + "scrapy-zyte-smartproxy Documentation", |
| 164 | + author, |
| 165 | + "scrapy-zyte-smartproxy", |
| 166 | + "One line description of project.", |
| 167 | + "Miscellaneous", |
| 168 | + ), |
159 | 169 | ] |
160 | | - |
161 | | - |
162 | | - |
|
0 commit comments