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