|
5 | 5 |
|
6 | 6 | import concurrency
|
7 | 7 |
|
8 |
| -src = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'src')) |
| 8 | +src = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, "src")) |
9 | 9 | sys.path.insert(0, src)
|
10 | 10 |
|
11 | 11 |
|
|
27 | 27 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
28 | 28 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
29 | 29 | sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "_ext")))
|
30 |
| -extensions = ['sphinx.ext.autodoc', |
31 |
| - 'sphinx.ext.todo', |
32 |
| - 'sphinx.ext.graphviz', |
33 |
| - 'sphinx.ext.intersphinx', |
34 |
| - 'sphinx.ext.doctest', |
35 |
| - 'sphinx.ext.extlinks', |
36 |
| - 'sphinx.ext.autosummary', |
37 |
| - 'sphinx.ext.coverage', |
38 |
| - 'sphinx.ext.viewcode', |
39 |
| - 'sphinx_issues', |
40 |
| - 'version' |
41 |
| - ] |
| 30 | +extensions = [ |
| 31 | + "sphinx.ext.autodoc", |
| 32 | + "sphinx.ext.todo", |
| 33 | + "sphinx.ext.graphviz", |
| 34 | + "sphinx.ext.intersphinx", |
| 35 | + "sphinx.ext.doctest", |
| 36 | + "sphinx.ext.extlinks", |
| 37 | + "sphinx.ext.autosummary", |
| 38 | + "sphinx.ext.coverage", |
| 39 | + "sphinx.ext.viewcode", |
| 40 | + "sphinx_issues", |
| 41 | + "version", |
| 42 | +] |
42 | 43 |
|
43 | 44 | intersphinx_mapping = {
|
44 |
| - 'python': ('https://docs.python.org/2.7/', None), |
45 |
| - 'django': ('http://django.readthedocs.org/en/latest/', None), |
46 |
| - 'sphinx': ('http://sphinx.readthedocs.org/en/latest/', None), |
| 45 | + "python": ("https://docs.python.org/2.7/", None), |
| 46 | + "django": ("http://django.readthedocs.org/en/latest/", None), |
| 47 | + "sphinx": ("http://sphinx.readthedocs.org/en/latest/", None), |
| 48 | +} |
| 49 | +extlinks = { |
| 50 | + "issue": ("https://github.com/saxix/django-concurrency/issues/%s", "issue #%s"), |
| 51 | + "django_issue": ("https://code.djangoproject.com/ticket/%s", "issue #%s"), |
47 | 52 | }
|
48 |
| -extlinks = {'issue': ('https://github.com/saxix/django-concurrency/issues/%s', 'issue #%s'), |
49 |
| - 'django_issue': ('https://code.djangoproject.com/ticket/%s', 'issue #%s'), |
50 |
| - |
51 |
| - } |
52 | 53 |
|
53 |
| -github_project_url = 'https://github.com/saxix/django-concurrency' |
| 54 | +github_project_url = "https://github.com/saxix/django-concurrency" |
54 | 55 |
|
55 | 56 | todo_include_todos = True
|
56 | 57 |
|
57 | 58 | # Add any paths that contain templates here, relative to this directory.
|
58 |
| -templates_path = ['_templates'] |
| 59 | +templates_path = ["_templates"] |
59 | 60 |
|
60 | 61 | # The suffix of source filenames.
|
61 |
| -source_suffix = '.rst' |
| 62 | +source_suffix = ".rst" |
62 | 63 |
|
63 | 64 | # The encoding of source files.
|
64 | 65 | # source_encoding = 'utf-8-sig'
|
65 | 66 |
|
66 | 67 | # The master toctree document.
|
67 |
| -master_doc = 'index' |
| 68 | +master_doc = "index" |
68 | 69 |
|
69 | 70 | # HTML translator class for the builder
|
70 | 71 | html_translator_class = "version.DjangoHTMLTranslator"
|
71 | 72 |
|
72 | 73 | # General information about the project.
|
73 |
| -project = u'Django Concurrency' |
74 |
| -copyright = u'2012-2019, Stefano Apostolico' |
| 74 | +project = "Django Concurrency" |
| 75 | +copyright = "2012-2019, Stefano Apostolico" |
75 | 76 |
|
76 | 77 | # The version info for the project you're documenting, acts as replacement for
|
77 | 78 | # |version| and |release|, also used in various other places throughout the
|
|
81 | 82 | version = concurrency.VERSION
|
82 | 83 | # The full version, including alpha/beta/rc tags.
|
83 | 84 | release = concurrency.VERSION
|
84 |
| -next_version = '2.6' |
| 85 | +next_version = "2.6" |
85 | 86 |
|
86 | 87 | # The language for content autogenerated by Sphinx. Refer to documentation
|
87 | 88 | # for a list of supported languages.
|
|
95 | 96 |
|
96 | 97 | # List of patterns, relative to source directory, that match files and
|
97 | 98 | # directories to ignore when looking for source files.
|
98 |
| -exclude_patterns = ['_build'] |
| 99 | +exclude_patterns = ["_build"] |
99 | 100 |
|
100 | 101 | # The reST default role (used for this markup: `text`) to use for all documents.
|
101 | 102 | # default_role = None
|
|
112 | 113 | # show_authors = False
|
113 | 114 |
|
114 | 115 | # The name of the Pygments (syntax highlighting) style to use.
|
115 |
| -pygments_style = 'sphinx' |
| 116 | +pygments_style = "sphinx" |
116 | 117 |
|
117 | 118 | # A list of ignored prefixes for module index sorting.
|
118 | 119 | # modindex_common_prefix = []
|
|
195 | 196 | # html_file_suffix = None
|
196 | 197 |
|
197 | 198 | # Output file base name for HTML help builder.
|
198 |
| -htmlhelp_basename = 'djangoconcurrencydoc' |
| 199 | +htmlhelp_basename = "djangoconcurrencydoc" |
199 | 200 |
|
200 | 201 | # -- Options for LaTeX output --------------------------------------------------
|
201 | 202 |
|
|
208 | 209 | # Grouping the document tree into LaTeX files. List of tuples
|
209 | 210 | # (source start file, target name, title, author, documentclass [howto/manual]).
|
210 | 211 | latex_documents = [
|
211 |
| - ('index', 'DjangoConcurrency.tex', u'Django Concurrency Documentation', |
212 |
| - u'Stefano Apostolico', 'manual'), |
| 212 | + ( |
| 213 | + "index", |
| 214 | + "DjangoConcurrency.tex", |
| 215 | + "Django Concurrency Documentation", |
| 216 | + "Stefano Apostolico", |
| 217 | + "manual", |
| 218 | + ), |
213 | 219 | ]
|
214 | 220 |
|
215 | 221 | # The name of an image file (relative to this directory) to place at the top of
|
|
241 | 247 | # One entry per manual page. List of tuples
|
242 | 248 | # (source start file, name, description, authors, manual section).
|
243 | 249 | man_pages = [
|
244 |
| - ('index', 'djangoconcurrency', u'Django Concurrency Documentation', |
245 |
| - [u'Stefano Apostolico'], 1) |
| 250 | + ( |
| 251 | + "index", |
| 252 | + "djangoconcurrency", |
| 253 | + "Django Concurrency Documentation", |
| 254 | + ["Stefano Apostolico"], |
| 255 | + 1, |
| 256 | + ) |
246 | 257 | ]
|
0 commit comments