|
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 | import os |
17 | | -import shlex |
| 16 | +import sys |
18 | 17 |
|
19 | 18 | # If extensions (or modules to document with autodoc) are in another directory, |
20 | 19 | # add these directories to sys.path here. If the directory is relative to the |
21 | 20 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
22 | | -sys.path.insert(0, os.path.abspath('../')) |
| 21 | +sys.path.insert(0, os.path.abspath("../")) |
23 | 22 |
|
24 | 23 | # -- General configuration ------------------------------------------------ |
25 | 24 |
|
26 | 25 | # If your documentation needs a minimal Sphinx version, state it here. |
27 | | -#needs_sphinx = '1.0' |
| 26 | +# needs_sphinx = '1.0' |
28 | 27 |
|
29 | 28 | # Add any Sphinx extension module names here, as strings. They can be |
30 | 29 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
31 | 30 | # ones. |
32 | 31 | extensions = [ |
33 | | - 'sphinx.ext.autodoc', |
34 | | - 'sphinx.ext.viewcode', |
| 32 | + "sphinx.ext.autodoc", |
| 33 | + "sphinx.ext.viewcode", |
35 | 34 | ] |
36 | 35 |
|
37 | 36 | # Add any paths that contain templates here, relative to this directory. |
38 | | -templates_path = ['_templates'] |
| 37 | +templates_path = ["_templates"] |
39 | 38 |
|
40 | 39 | # The suffix(es) of source filenames. |
41 | 40 | # You can specify multiple suffix as a list of string: |
42 | 41 | # source_suffix = ['.rst', '.md'] |
43 | | -source_suffix = '.rst' |
| 42 | +source_suffix = ".rst" |
44 | 43 |
|
45 | 44 | # The encoding of source files. |
46 | | -#source_encoding = 'utf-8-sig' |
| 45 | +# source_encoding = 'utf-8-sig' |
47 | 46 |
|
48 | 47 | # The master toctree document. |
49 | | -master_doc = 'index' |
| 48 | +master_doc = "index" |
50 | 49 |
|
51 | 50 | # General information about the project. |
52 | | -project = u'LeanCloud-Python-SDK' |
53 | | -copyright = u'2015, asaka' |
54 | | -author = u'asaka' |
| 51 | +project = u"LeanCloud-Python-SDK" |
| 52 | +copyright = u"2015, asaka" |
| 53 | +author = u"asaka" |
55 | 54 |
|
56 | 55 | # The version info for the project you're documenting, acts as replacement for |
57 | 56 | # |version| and |release|, also used in various other places throughout the |
58 | 57 | # built documents. |
59 | 58 | # |
60 | 59 | # The short X.Y version. |
61 | | -version = '1.0.0' |
| 60 | +version = "1.0.0" |
62 | 61 | # The full version, including alpha/beta/rc tags. |
63 | | -release = '1.0.0' |
| 62 | +release = "1.0.0" |
64 | 63 |
|
65 | 64 | # The language for content autogenerated by Sphinx. Refer to documentation |
66 | 65 | # for a list of supported languages. |
67 | 66 | # |
68 | 67 | # This is also used if you do content translation via gettext catalogs. |
69 | 68 | # Usually you set "language" from the command line for these cases. |
70 | | -language = 'zh_CN' |
| 69 | +language = "zh_CN" |
71 | 70 |
|
72 | 71 | # There are two options for replacing |today|: either, you set today to some |
73 | 72 | # non-false value, then it is used: |
74 | | -#today = '' |
| 73 | +# today = '' |
75 | 74 | # Else, today_fmt is used as the format for a strftime call. |
76 | | -#today_fmt = '%B %d, %Y' |
| 75 | +# today_fmt = '%B %d, %Y' |
77 | 76 |
|
78 | 77 | # List of patterns, relative to source directory, that match files and |
79 | 78 | # directories to ignore when looking for source files. |
80 | | -exclude_patterns = ['_build'] |
| 79 | +exclude_patterns = ["_build"] |
81 | 80 |
|
82 | 81 | # The reST default role (used for this markup: `text`) to use for all |
83 | 82 | # documents. |
84 | | -#default_role = None |
| 83 | +# default_role = None |
85 | 84 |
|
86 | 85 | # If true, '()' will be appended to :func: etc. cross-reference text. |
87 | | -#add_function_parentheses = True |
| 86 | +# add_function_parentheses = True |
88 | 87 |
|
89 | 88 | # If true, the current module name will be prepended to all description |
90 | 89 | # unit titles (such as .. function::). |
91 | | -#add_module_names = True |
| 90 | +# add_module_names = True |
92 | 91 |
|
93 | 92 | # If true, sectionauthor and moduleauthor directives will be shown in the |
94 | 93 | # output. They are ignored by default. |
95 | | -#show_authors = False |
| 94 | +# show_authors = False |
96 | 95 |
|
97 | 96 | # The name of the Pygments (syntax highlighting) style to use. |
98 | | -pygments_style = 'sphinx' |
| 97 | +pygments_style = "sphinx" |
99 | 98 |
|
100 | 99 | # A list of ignored prefixes for module index sorting. |
101 | | -#modindex_common_prefix = [] |
| 100 | +# modindex_common_prefix = [] |
102 | 101 |
|
103 | 102 | # If true, keep warnings as "system message" paragraphs in the built documents. |
104 | | -#keep_warnings = False |
| 103 | +# keep_warnings = False |
105 | 104 |
|
106 | 105 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
107 | 106 | todo_include_todos = False |
|
117 | 116 | # Theme options are theme-specific and customize the look and feel of a theme |
118 | 117 | # further. For a list of options available for each theme, see the |
119 | 118 | # documentation. |
120 | | -#html_theme_options = {} |
| 119 | +# html_theme_options = {} |
121 | 120 |
|
122 | 121 | # Add any paths that contain custom themes here, relative to this directory. |
123 | | -#html_theme_path = [] |
| 122 | +# html_theme_path = [] |
124 | 123 |
|
125 | 124 | # The name for this set of Sphinx documents. If None, it defaults to |
126 | 125 | # "<project> v<release> documentation". |
127 | | -#html_title = None |
| 126 | +# html_title = None |
128 | 127 |
|
129 | 128 | # A shorter title for the navigation bar. Default is the same as html_title. |
130 | | -#html_short_title = None |
| 129 | +# html_short_title = None |
131 | 130 |
|
132 | 131 | # The name of an image file (relative to this directory) to place at the top |
133 | 132 | # of the sidebar. |
134 | | -#html_logo = None |
| 133 | +# html_logo = None |
135 | 134 |
|
136 | 135 | # The name of an image file (within the static path) to use as favicon of the |
137 | 136 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
138 | 137 | # pixels large. |
139 | | -#html_favicon = None |
| 138 | +# html_favicon = None |
140 | 139 |
|
141 | 140 | # Add any paths that contain custom static files (such as style sheets) here, |
142 | 141 | # relative to this directory. They are copied after the builtin static files, |
143 | 142 | # so a file named "default.css" will overwrite the builtin "default.css". |
144 | | -html_static_path = ['_static'] |
| 143 | +html_static_path = ["_static"] |
145 | 144 |
|
146 | 145 | # Add any extra paths that contain custom files (such as robots.txt or |
147 | 146 | # .htaccess) here, relative to this directory. These files are copied |
148 | 147 | # directly to the root of the documentation. |
149 | | -#html_extra_path = [] |
| 148 | +# html_extra_path = [] |
150 | 149 |
|
151 | 150 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
152 | 151 | # using the given strftime format. |
153 | | -#html_last_updated_fmt = '%b %d, %Y' |
| 152 | +# html_last_updated_fmt = '%b %d, %Y' |
154 | 153 |
|
155 | 154 | # If true, SmartyPants will be used to convert quotes and dashes to |
156 | 155 | # typographically correct entities. |
157 | | -#html_use_smartypants = True |
| 156 | +# html_use_smartypants = True |
158 | 157 |
|
159 | 158 | # Custom sidebar templates, maps document names to template names. |
160 | | -#html_sidebars = {} |
| 159 | +# html_sidebars = {} |
161 | 160 |
|
162 | 161 | # Additional templates that should be rendered to pages, maps page names to |
163 | 162 | # template names. |
164 | | -#html_additional_pages = {} |
| 163 | +# html_additional_pages = {} |
165 | 164 |
|
166 | 165 | # If false, no module index is generated. |
167 | | -#html_domain_indices = True |
| 166 | +# html_domain_indices = True |
168 | 167 |
|
169 | 168 | # If false, no index is generated. |
170 | | -#html_use_index = True |
| 169 | +# html_use_index = True |
171 | 170 |
|
172 | 171 | # If true, the index is split into individual pages for each letter. |
173 | | -#html_split_index = False |
| 172 | +# html_split_index = False |
174 | 173 |
|
175 | 174 | # If true, links to the reST sources are added to the pages. |
176 | | -#html_show_sourcelink = True |
| 175 | +# html_show_sourcelink = True |
177 | 176 |
|
178 | 177 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
179 | | -#html_show_sphinx = True |
| 178 | +# html_show_sphinx = True |
180 | 179 |
|
181 | 180 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
182 | | -#html_show_copyright = True |
| 181 | +# html_show_copyright = True |
183 | 182 |
|
184 | 183 | # If true, an OpenSearch description file will be output, and all pages will |
185 | 184 | # contain a <link> tag referring to it. The value of this option must be the |
186 | 185 | # base URL from which the finished HTML is served. |
187 | | -#html_use_opensearch = '' |
| 186 | +# html_use_opensearch = '' |
188 | 187 |
|
189 | 188 | # This is the file name suffix for HTML files (e.g. ".xhtml"). |
190 | | -#html_file_suffix = None |
| 189 | +# html_file_suffix = None |
191 | 190 |
|
192 | 191 | # Language to be used for generating the HTML full-text search index. |
193 | 192 | # Sphinx supports the following languages: |
194 | 193 | # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' |
195 | 194 | # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' |
196 | | -#html_search_language = 'en' |
| 195 | +# html_search_language = 'en' |
197 | 196 |
|
198 | 197 | # A dictionary with options for the search language support, empty by default. |
199 | 198 | # Now only 'ja' uses this config value |
200 | | -#html_search_options = {'type': 'default'} |
| 199 | +# html_search_options = {'type': 'default'} |
201 | 200 |
|
202 | 201 | # The name of a javascript file (relative to the configuration directory) that |
203 | 202 | # implements a search results scorer. If empty, the default will be used. |
204 | | -#html_search_scorer = 'scorer.js' |
| 203 | +# html_search_scorer = 'scorer.js' |
205 | 204 |
|
206 | 205 | # Output file base name for HTML help builder. |
207 | | -htmlhelp_basename = 'LeanCloud-Python-SDKdoc' |
| 206 | +htmlhelp_basename = "LeanCloud-Python-SDKdoc" |
208 | 207 |
|
209 | 208 | # -- Options for LaTeX output --------------------------------------------- |
210 | 209 |
|
211 | 210 | latex_elements = { |
212 | | -# The paper size ('letterpaper' or 'a4paper'). |
213 | | -#'papersize': 'letterpaper', |
214 | | - |
215 | | -# The font size ('10pt', '11pt' or '12pt'). |
216 | | -#'pointsize': '10pt', |
217 | | - |
218 | | -# Additional stuff for the LaTeX preamble. |
219 | | -#'preamble': '', |
220 | | - |
221 | | -# Latex figure (float) alignment |
222 | | -#'figure_align': 'htbp', |
| 211 | + # The paper size ('letterpaper' or 'a4paper'). |
| 212 | + # 'papersize': 'letterpaper', |
| 213 | + # The font size ('10pt', '11pt' or '12pt'). |
| 214 | + # 'pointsize': '10pt', |
| 215 | + # Additional stuff for the LaTeX preamble. |
| 216 | + # 'preamble': '', |
| 217 | + # Latex figure (float) alignment |
| 218 | + # 'figure_align': 'htbp', |
223 | 219 | } |
224 | 220 |
|
225 | 221 | # Grouping the document tree into LaTeX files. List of tuples |
226 | 222 | # (source start file, target name, title, |
227 | 223 | # author, documentclass [howto, manual, or own class]). |
228 | 224 | latex_documents = [ |
229 | | - (master_doc, 'LeanCloud-Python-SDK.tex', u'LeanCloud-Python-SDK Documentation', |
230 | | - u'asaka', 'manual'), |
| 225 | + ( |
| 226 | + master_doc, |
| 227 | + "LeanCloud-Python-SDK.tex", |
| 228 | + u"LeanCloud-Python-SDK Documentation", |
| 229 | + u"asaka", |
| 230 | + "manual", |
| 231 | + ), |
231 | 232 | ] |
232 | 233 |
|
233 | 234 | # The name of an image file (relative to this directory) to place at the top of |
234 | 235 | # the title page. |
235 | | -#latex_logo = None |
| 236 | +# latex_logo = None |
236 | 237 |
|
237 | 238 | # For "manual" documents, if this is true, then toplevel headings are parts, |
238 | 239 | # not chapters. |
239 | | -#latex_use_parts = False |
| 240 | +# latex_use_parts = False |
240 | 241 |
|
241 | 242 | # If true, show page references after internal links. |
242 | | -#latex_show_pagerefs = False |
| 243 | +# latex_show_pagerefs = False |
243 | 244 |
|
244 | 245 | # If true, show URL addresses after external links. |
245 | | -#latex_show_urls = False |
| 246 | +# latex_show_urls = False |
246 | 247 |
|
247 | 248 | # Documents to append as an appendix to all manuals. |
248 | | -#latex_appendices = [] |
| 249 | +# latex_appendices = [] |
249 | 250 |
|
250 | 251 | # If false, no module index is generated. |
251 | | -#latex_domain_indices = True |
| 252 | +# latex_domain_indices = True |
252 | 253 |
|
253 | 254 |
|
254 | 255 | # -- Options for manual page output --------------------------------------- |
255 | 256 |
|
256 | 257 | # One entry per manual page. List of tuples |
257 | 258 | # (source start file, name, description, authors, manual section). |
258 | 259 | man_pages = [ |
259 | | - (master_doc, 'leancloud-python-sdk', u'LeanCloud-Python-SDK Documentation', |
260 | | - [author], 1) |
| 260 | + ( |
| 261 | + master_doc, |
| 262 | + "leancloud-python-sdk", |
| 263 | + u"LeanCloud-Python-SDK Documentation", |
| 264 | + [author], |
| 265 | + 1, |
| 266 | + ) |
261 | 267 | ] |
262 | 268 |
|
263 | 269 | # If true, show URL addresses after external links. |
264 | | -#man_show_urls = False |
| 270 | +# man_show_urls = False |
265 | 271 |
|
266 | 272 |
|
267 | 273 | # -- Options for Texinfo output ------------------------------------------- |
|
270 | 276 | # (source start file, target name, title, author, |
271 | 277 | # dir menu entry, description, category) |
272 | 278 | texinfo_documents = [ |
273 | | - (master_doc, 'LeanCloud-Python-SDK', u'LeanCloud-Python-SDK Documentation', |
274 | | - author, 'LeanCloud-Python-SDK', 'One line description of project.', |
275 | | - 'Miscellaneous'), |
| 279 | + ( |
| 280 | + master_doc, |
| 281 | + "LeanCloud-Python-SDK", |
| 282 | + u"LeanCloud-Python-SDK Documentation", |
| 283 | + author, |
| 284 | + "LeanCloud-Python-SDK", |
| 285 | + "One line description of project.", |
| 286 | + "Miscellaneous", |
| 287 | + ), |
276 | 288 | ] |
277 | 289 |
|
278 | 290 | # Documents to append as an appendix to all manuals. |
279 | | -#texinfo_appendices = [] |
| 291 | +# texinfo_appendices = [] |
280 | 292 |
|
281 | 293 | # If false, no module index is generated. |
282 | | -#texinfo_domain_indices = True |
| 294 | +# texinfo_domain_indices = True |
283 | 295 |
|
284 | 296 | # How to display URL addresses: 'footnote', 'no', or 'inline'. |
285 | | -#texinfo_show_urls = 'footnote' |
| 297 | +# texinfo_show_urls = 'footnote' |
286 | 298 |
|
287 | 299 | # If true, do not generate a @detailmenu in the "Top" node's menu. |
288 | | -#texinfo_no_detailmenu = False |
| 300 | +# texinfo_no_detailmenu = False |
0 commit comments