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