|
1 | | -# -*- coding: utf-8 -*- |
2 | 1 | # |
3 | 2 | # django-treebeard documentation build configuration file, created by |
4 | 3 | # sphinx-quickstart on Tue Nov 22 00:05:34 2016. |
|
14 | 13 |
|
15 | 14 | import os |
16 | 15 | import sys |
| 16 | + |
17 | 17 | import django |
18 | 18 | from django.conf import settings |
19 | 19 |
|
20 | 20 | # If extensions (or modules to document with autodoc) are in another directory, |
21 | 21 | # add these directories to sys.path here. If the directory is relative to the |
22 | 22 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
23 | | -sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '_ext'))) |
| 23 | +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "_ext"))) |
24 | 24 |
|
25 | 25 | settings.configure( |
26 | | - INSTALLED_APPS=['treebeard'], |
| 26 | + INSTALLED_APPS=["treebeard"], |
27 | 27 | ) |
28 | 28 | django.setup() |
29 | 29 |
|
|
36 | 36 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
37 | 37 | # ones. |
38 | 38 | extensions = [ |
39 | | - 'djangodocs', |
40 | | - 'sphinx.ext.autodoc', |
41 | | - 'sphinx.ext.coverage', |
42 | | - 'sphinx.ext.graphviz', |
43 | | - 'sphinx.ext.inheritance_diagram', |
44 | | - 'sphinx.ext.todo', |
45 | | - 'sphinx.ext.intersphinx', |
| 39 | + "djangodocs", |
| 40 | + "sphinx.ext.autodoc", |
| 41 | + "sphinx.ext.coverage", |
| 42 | + "sphinx.ext.graphviz", |
| 43 | + "sphinx.ext.inheritance_diagram", |
| 44 | + "sphinx.ext.todo", |
| 45 | + "sphinx.ext.intersphinx", |
46 | 46 | ] |
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' |
| 54 | +source_suffix = ".rst" |
55 | 55 |
|
56 | 56 | # The encoding of source files. |
57 | 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 = u'django-treebeard' |
64 | | -copyright = u'2016, Gustavo Picón' |
65 | | -author = u'Gustavo Picón' |
| 63 | +project = "django-treebeard" |
| 64 | +copyright = "2016, Gustavo Picón" |
| 65 | +author = "Gustavo Picón" |
66 | 66 |
|
67 | 67 | # The version info for the project you're documenting, acts as replacement for |
68 | 68 | # |version| and |release|, also used in various other places throughout the |
69 | 69 | # built documents. |
70 | 70 | # |
71 | 71 | # The short X.Y version. |
72 | | -version = '4' |
| 72 | +version = "4" |
73 | 73 | # The full version, including alpha/beta/rc tags. |
74 | | -release = '4.7' |
| 74 | +release = "4.7" |
75 | 75 |
|
76 | 76 | # The language for content autogenerated by Sphinx. Refer to documentation |
77 | 77 | # for a list of supported languages. |
|
106 | 106 | # show_authors = False |
107 | 107 |
|
108 | 108 | # The name of the Pygments (syntax highlighting) style to use. |
109 | | -pygments_style = 'sphinx' |
| 109 | +pygments_style = "sphinx" |
110 | 110 |
|
111 | 111 | # A list of ignored prefixes for module index sorting. |
112 | 112 | # modindex_common_prefix = [] |
|
122 | 122 |
|
123 | 123 | # The theme to use for HTML and HTML Help pages. See the documentation for |
124 | 124 | # a list of builtin themes. |
125 | | -html_theme = 'default' |
| 125 | +html_theme = "default" |
126 | 126 |
|
127 | 127 | # Theme options are theme-specific and customize the look and feel of a theme |
128 | 128 | # further. For a list of options available for each theme, see the |
|
151 | 151 | # Add any paths that contain custom static files (such as style sheets) here, |
152 | 152 | # relative to this directory. They are copied after the builtin static files, |
153 | 153 | # so a file named "default.css" will overwrite the builtin "default.css". |
154 | | -html_static_path = ['_static'] |
| 154 | +html_static_path = ["_static"] |
155 | 155 |
|
156 | 156 | # Add any extra paths that contain custom files (such as robots.txt or |
157 | 157 | # .htaccess) here, relative to this directory. These files are copied |
|
214 | 214 | # html_search_scorer = 'scorer.js' |
215 | 215 |
|
216 | 216 | # Output file base name for HTML help builder. |
217 | | -htmlhelp_basename = 'django-treebearddoc' |
| 217 | +htmlhelp_basename = "django-treebearddoc" |
218 | 218 |
|
219 | 219 | # -- Options for LaTeX output --------------------------------------------- |
220 | 220 |
|
221 | 221 | latex_elements = { |
222 | | -# The paper size ('letterpaper' or 'a4paper'). |
223 | | -# 'papersize': 'letterpaper', |
224 | | - |
225 | | -# The font size ('10pt', '11pt' or '12pt'). |
226 | | -# 'pointsize': '10pt', |
227 | | - |
228 | | -# Additional stuff for the LaTeX preamble. |
229 | | -# 'preamble': '', |
230 | | - |
231 | | -# Latex figure (float) alignment |
232 | | -# 'figure_align': 'htbp', |
| 222 | + # The paper size ('letterpaper' or 'a4paper'). |
| 223 | + # 'papersize': 'letterpaper', |
| 224 | + # The font size ('10pt', '11pt' or '12pt'). |
| 225 | + # 'pointsize': '10pt', |
| 226 | + # Additional stuff for the LaTeX preamble. |
| 227 | + # 'preamble': '', |
| 228 | + # Latex figure (float) alignment |
| 229 | + # 'figure_align': 'htbp', |
233 | 230 | } |
234 | 231 |
|
235 | 232 | # Grouping the document tree into LaTeX files. List of tuples |
236 | 233 | # (source start file, target name, title, |
237 | 234 | # author, documentclass [howto, manual, or own class]). |
238 | 235 | latex_documents = [ |
239 | | - (master_doc, 'django-treebeard.tex', u'django-treebeard Documentation', |
240 | | - u'Gustavo Picón', 'manual'), |
| 236 | + (master_doc, "django-treebeard.tex", "django-treebeard Documentation", "Gustavo Picón", "manual"), |
241 | 237 | ] |
242 | 238 |
|
243 | 239 | # The name of an image file (relative to this directory) to place at the top of |
|
265 | 261 |
|
266 | 262 | # One entry per manual page. List of tuples |
267 | 263 | # (source start file, name, description, authors, manual section). |
268 | | -man_pages = [ |
269 | | - (master_doc, 'django-treebeard', u'django-treebeard Documentation', |
270 | | - [author], 1) |
271 | | -] |
| 264 | +man_pages = [(master_doc, "django-treebeard", "django-treebeard Documentation", [author], 1)] |
272 | 265 |
|
273 | 266 | # If true, show URL addresses after external links. |
274 | 267 | # man_show_urls = False |
|
280 | 273 | # (source start file, target name, title, author, |
281 | 274 | # dir menu entry, description, category) |
282 | 275 | texinfo_documents = [ |
283 | | - (master_doc, 'django-treebeard', u'django-treebeard Documentation', |
284 | | - author, 'django-treebeard', 'One line description of project.', |
285 | | - 'Miscellaneous'), |
| 276 | + ( |
| 277 | + master_doc, |
| 278 | + "django-treebeard", |
| 279 | + "django-treebeard Documentation", |
| 280 | + author, |
| 281 | + "django-treebeard", |
| 282 | + "One line description of project.", |
| 283 | + "Miscellaneous", |
| 284 | + ), |
286 | 285 | ] |
287 | 286 |
|
288 | 287 | # Documents to append as an appendix to all manuals. |
|
298 | 297 | # texinfo_no_detailmenu = False |
299 | 298 |
|
300 | 299 | intersphinx_mapping = { |
301 | | - 'django': ('https://docs.djangoproject.com/en/stable/', 'https://docs.djangoproject.com/en/stable/_objects/'), |
302 | | - 'python': ('https://docs.python.org/3.13', None), |
| 300 | + "django": ("https://docs.djangoproject.com/en/stable/", "https://docs.djangoproject.com/en/stable/_objects/"), |
| 301 | + "python": ("https://docs.python.org/3.13", None), |
303 | 302 | } |
0 commit comments