Skip to content

Commit 1569689

Browse files
authored
Merge pull request #468 from weakish/fix-doc
fix doc
2 parents 1a4fccd + c463530 commit 1569689

2 files changed

Lines changed: 91 additions & 79 deletions

File tree

.nojekyll

Whitespace-only changes.

apidoc/conf.py

Lines changed: 91 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -12,96 +12,95 @@
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
1414

15-
import sys
1615
import os
17-
import shlex
16+
import sys
1817

1918
# If extensions (or modules to document with autodoc) are in another directory,
2019
# add these directories to sys.path here. If the directory is relative to the
2120
# 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("../"))
2322

2423
# -- General configuration ------------------------------------------------
2524

2625
# If your documentation needs a minimal Sphinx version, state it here.
27-
#needs_sphinx = '1.0'
26+
# needs_sphinx = '1.0'
2827

2928
# Add any Sphinx extension module names here, as strings. They can be
3029
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3130
# ones.
3231
extensions = [
33-
'sphinx.ext.autodoc',
34-
'sphinx.ext.viewcode',
32+
"sphinx.ext.autodoc",
33+
"sphinx.ext.viewcode",
3534
]
3635

3736
# Add any paths that contain templates here, relative to this directory.
38-
templates_path = ['_templates']
37+
templates_path = ["_templates"]
3938

4039
# The suffix(es) of source filenames.
4140
# You can specify multiple suffix as a list of string:
4241
# source_suffix = ['.rst', '.md']
43-
source_suffix = '.rst'
42+
source_suffix = ".rst"
4443

4544
# The encoding of source files.
46-
#source_encoding = 'utf-8-sig'
45+
# source_encoding = 'utf-8-sig'
4746

4847
# The master toctree document.
49-
master_doc = 'index'
48+
master_doc = "index"
5049

5150
# 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"
5554

5655
# The version info for the project you're documenting, acts as replacement for
5756
# |version| and |release|, also used in various other places throughout the
5857
# built documents.
5958
#
6059
# The short X.Y version.
61-
version = '1.0.0'
60+
version = "2.6"
6261
# The full version, including alpha/beta/rc tags.
63-
release = '1.0.0'
62+
release = "2.6.1"
6463

6564
# The language for content autogenerated by Sphinx. Refer to documentation
6665
# for a list of supported languages.
6766
#
6867
# This is also used if you do content translation via gettext catalogs.
6968
# Usually you set "language" from the command line for these cases.
70-
language = 'zh_CN'
69+
language = "zh_CN"
7170

7271
# There are two options for replacing |today|: either, you set today to some
7372
# non-false value, then it is used:
74-
#today = ''
73+
# today = ''
7574
# Else, today_fmt is used as the format for a strftime call.
76-
#today_fmt = '%B %d, %Y'
75+
# today_fmt = '%B %d, %Y'
7776

7877
# List of patterns, relative to source directory, that match files and
7978
# directories to ignore when looking for source files.
80-
exclude_patterns = ['_build']
79+
exclude_patterns = ["_build", "docs"]
8180

8281
# The reST default role (used for this markup: `text`) to use for all
8382
# documents.
84-
#default_role = None
83+
# default_role = None
8584

8685
# If true, '()' will be appended to :func: etc. cross-reference text.
87-
#add_function_parentheses = True
86+
# add_function_parentheses = True
8887

8988
# If true, the current module name will be prepended to all description
9089
# unit titles (such as .. function::).
91-
#add_module_names = True
90+
# add_module_names = True
9291

9392
# If true, sectionauthor and moduleauthor directives will be shown in the
9493
# output. They are ignored by default.
95-
#show_authors = False
94+
# show_authors = False
9695

9796
# The name of the Pygments (syntax highlighting) style to use.
98-
pygments_style = 'sphinx'
97+
pygments_style = "sphinx"
9998

10099
# A list of ignored prefixes for module index sorting.
101-
#modindex_common_prefix = []
100+
# modindex_common_prefix = []
102101

103102
# If true, keep warnings as "system message" paragraphs in the built documents.
104-
#keep_warnings = False
103+
# keep_warnings = False
105104

106105
# If true, `todo` and `todoList` produce output, else they produce nothing.
107106
todo_include_todos = False
@@ -117,151 +116,158 @@
117116
# Theme options are theme-specific and customize the look and feel of a theme
118117
# further. For a list of options available for each theme, see the
119118
# documentation.
120-
#html_theme_options = {}
119+
# html_theme_options = {}
121120

122121
# Add any paths that contain custom themes here, relative to this directory.
123-
#html_theme_path = []
122+
# html_theme_path = []
124123

125124
# The name for this set of Sphinx documents. If None, it defaults to
126125
# "<project> v<release> documentation".
127-
#html_title = None
126+
# html_title = None
128127

129128
# A shorter title for the navigation bar. Default is the same as html_title.
130-
#html_short_title = None
129+
# html_short_title = None
131130

132131
# The name of an image file (relative to this directory) to place at the top
133132
# of the sidebar.
134-
#html_logo = None
133+
# html_logo = None
135134

136135
# The name of an image file (within the static path) to use as favicon of the
137136
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
138137
# pixels large.
139-
#html_favicon = None
138+
# html_favicon = None
140139

141140
# Add any paths that contain custom static files (such as style sheets) here,
142141
# relative to this directory. They are copied after the builtin static files,
143142
# so a file named "default.css" will overwrite the builtin "default.css".
144-
html_static_path = ['_static']
143+
html_static_path = ["_static"]
145144

146145
# Add any extra paths that contain custom files (such as robots.txt or
147146
# .htaccess) here, relative to this directory. These files are copied
148147
# directly to the root of the documentation.
149-
#html_extra_path = []
148+
# html_extra_path = []
150149

151150
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
152151
# using the given strftime format.
153-
#html_last_updated_fmt = '%b %d, %Y'
152+
# html_last_updated_fmt = '%b %d, %Y'
154153

155154
# If true, SmartyPants will be used to convert quotes and dashes to
156155
# typographically correct entities.
157-
#html_use_smartypants = True
156+
# html_use_smartypants = True
158157

159158
# Custom sidebar templates, maps document names to template names.
160-
#html_sidebars = {}
159+
# html_sidebars = {}
161160

162161
# Additional templates that should be rendered to pages, maps page names to
163162
# template names.
164-
#html_additional_pages = {}
163+
# html_additional_pages = {}
165164

166165
# If false, no module index is generated.
167-
#html_domain_indices = True
166+
# html_domain_indices = True
168167

169168
# If false, no index is generated.
170-
#html_use_index = True
169+
# html_use_index = True
171170

172171
# If true, the index is split into individual pages for each letter.
173-
#html_split_index = False
172+
# html_split_index = False
174173

175174
# If true, links to the reST sources are added to the pages.
176-
#html_show_sourcelink = True
175+
# html_show_sourcelink = True
177176

178177
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
179-
#html_show_sphinx = True
178+
# html_show_sphinx = True
180179

181180
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
182-
#html_show_copyright = True
181+
# html_show_copyright = True
183182

184183
# If true, an OpenSearch description file will be output, and all pages will
185184
# contain a <link> tag referring to it. The value of this option must be the
186185
# base URL from which the finished HTML is served.
187-
#html_use_opensearch = ''
186+
# html_use_opensearch = ''
188187

189188
# This is the file name suffix for HTML files (e.g. ".xhtml").
190-
#html_file_suffix = None
189+
# html_file_suffix = None
191190

192191
# Language to be used for generating the HTML full-text search index.
193192
# Sphinx supports the following languages:
194193
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
195194
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
196-
#html_search_language = 'en'
195+
# html_search_language = 'en'
197196

198197
# A dictionary with options for the search language support, empty by default.
199198
# Now only 'ja' uses this config value
200-
#html_search_options = {'type': 'default'}
199+
# html_search_options = {'type': 'default'}
201200

202201
# The name of a javascript file (relative to the configuration directory) that
203202
# implements a search results scorer. If empty, the default will be used.
204-
#html_search_scorer = 'scorer.js'
203+
# html_search_scorer = 'scorer.js'
205204

206205
# Output file base name for HTML help builder.
207-
htmlhelp_basename = 'LeanCloud-Python-SDKdoc'
206+
htmlhelp_basename = "LeanCloud-Python-SDKdoc"
208207

209208
# -- Options for LaTeX output ---------------------------------------------
210209

211210
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',
223219
}
224220

225221
# Grouping the document tree into LaTeX files. List of tuples
226222
# (source start file, target name, title,
227223
# author, documentclass [howto, manual, or own class]).
228224
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+
),
231232
]
232233

233234
# The name of an image file (relative to this directory) to place at the top of
234235
# the title page.
235-
#latex_logo = None
236+
# latex_logo = None
236237

237238
# For "manual" documents, if this is true, then toplevel headings are parts,
238239
# not chapters.
239-
#latex_use_parts = False
240+
# latex_use_parts = False
240241

241242
# If true, show page references after internal links.
242-
#latex_show_pagerefs = False
243+
# latex_show_pagerefs = False
243244

244245
# If true, show URL addresses after external links.
245-
#latex_show_urls = False
246+
# latex_show_urls = False
246247

247248
# Documents to append as an appendix to all manuals.
248-
#latex_appendices = []
249+
# latex_appendices = []
249250

250251
# If false, no module index is generated.
251-
#latex_domain_indices = True
252+
# latex_domain_indices = True
252253

253254

254255
# -- Options for manual page output ---------------------------------------
255256

256257
# One entry per manual page. List of tuples
257258
# (source start file, name, description, authors, manual section).
258259
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+
)
261267
]
262268

263269
# If true, show URL addresses after external links.
264-
#man_show_urls = False
270+
# man_show_urls = False
265271

266272

267273
# -- Options for Texinfo output -------------------------------------------
@@ -270,19 +276,25 @@
270276
# (source start file, target name, title, author,
271277
# dir menu entry, description, category)
272278
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+
),
276288
]
277289

278290
# Documents to append as an appendix to all manuals.
279-
#texinfo_appendices = []
291+
# texinfo_appendices = []
280292

281293
# If false, no module index is generated.
282-
#texinfo_domain_indices = True
294+
# texinfo_domain_indices = True
283295

284296
# How to display URL addresses: 'footnote', 'no', or 'inline'.
285-
#texinfo_show_urls = 'footnote'
297+
# texinfo_show_urls = 'footnote'
286298

287299
# 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

Comments
 (0)