|
10 | 10 | # |
11 | 11 | # All configuration values have a default; values that are commented out |
12 | 12 | # serve to show the default. |
13 | | - |
14 | | -import sys |
15 | 13 | import os |
| 14 | +import sys |
| 15 | + |
16 | 16 | # If extensions (or modules to document with autodoc) are in another directory, |
17 | 17 | # add these directories to sys.path here. If the directory is relative to the |
18 | 18 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
19 | 19 | sys.path.append(os.path.dirname(os.path.dirname(__file__))) |
20 | 20 |
|
| 21 | +from execnet._version import version |
| 22 | + |
| 23 | +release = ".".join(version.split(".")[:2]) |
| 24 | + |
21 | 25 | # -- General configuration ---------------------------------------------------- |
22 | 26 |
|
23 | 27 | # Add any Sphinx extension module names here, as strings. |
24 | 28 | # They can be extensions |
25 | 29 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
26 | | -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest'] |
| 30 | +extensions = ["sphinx.ext.autodoc", "sphinx.ext.doctest"] |
27 | 31 |
|
28 | 32 | # Add any paths that contain templates here, relative to this directory. |
29 | | -templates_path = ['_templates'] |
| 33 | +templates_path = ["_templates"] |
30 | 34 |
|
31 | 35 | # The suffix of source filenames. |
32 | | -source_suffix = '.rst' |
| 36 | +source_suffix = ".rst" |
33 | 37 |
|
34 | 38 | # The encoding of source files. |
35 | 39 | # source_encoding = 'utf-8' |
36 | 40 |
|
37 | 41 | # The master toctree document. |
38 | | -master_doc = 'index' |
| 42 | +master_doc = "index" |
39 | 43 |
|
40 | 44 | # General information about the project. |
41 | | -project = 'execnet' |
42 | | -copyright = '2012, holger krekel and others' |
43 | | - |
44 | | -# The version info for the project you're documenting, acts as replacement for |
45 | | -# |version| and |release|, also used in various other places throughout the |
46 | | -# built documents. |
47 | | -# |
48 | | -# The short X.Y version. |
49 | | -version = '1.4' |
50 | | -# The full version, inpipcluding alpha/beta/rc tags. |
51 | | -release = '1.4.0.dev1' |
| 45 | +project = "execnet" |
| 46 | +copyright = "2012, holger krekel and others" |
52 | 47 |
|
53 | 48 | # The language for content autogenerated by Sphinx. Refer to documentation |
54 | 49 | # for a list of supported languages. |
|
65 | 60 |
|
66 | 61 | # List of directories, relative to source directory, that shouldn't be searched |
67 | 62 | # for source files. |
68 | | -exclude_trees = ['_build'] |
| 63 | +exclude_trees = ["_build"] |
69 | 64 |
|
70 | 65 | # The reST default role (used for this markup: `text`) to use for all documents |
71 | 66 | # dfault_role = None |
|
84 | 79 | # show_authors = False |
85 | 80 |
|
86 | 81 | # The name of the Pygments (syntax highlighting) style to use. |
87 | | -pygments_style = 'sphinx' |
| 82 | +pygments_style = "sphinx" |
88 | 83 |
|
89 | 84 | # A list of ignored prefixes for module index sorting. |
90 | 85 | # modindex_common_prefix = [] |
|
94 | 89 |
|
95 | 90 | # The theme to use for HTML and HTML Help pages. Major themes that come with |
96 | 91 | # Sphinx are currently 'default' and 'sphinxdoc'. |
97 | | -html_theme = 'sphinxdoc' |
| 92 | +html_theme = "sphinxdoc" |
98 | 93 |
|
99 | 94 | # html_index = 'index.html' |
100 | | -html_sidebars = { |
101 | | - 'index': ['indexsidebar.html'], |
102 | | -} |
| 95 | +html_sidebars = {"index": ["indexsidebar.html"]} |
103 | 96 | # html_additional_pages = {'index': 'index.html'} |
104 | 97 |
|
105 | 98 | # Theme options are theme-specific and customize the look and feel of a theme |
|
129 | 122 | # Add any paths that contain custom static files (such as style sheets) here, |
130 | 123 | # relative to this directory. They are copied after the builtin static files, |
131 | 124 | # so a file named "default.css" will overwrite the builtin "default.css". |
132 | | -html_static_path = ['_static'] |
| 125 | +html_static_path = ["_static"] |
133 | 126 |
|
134 | 127 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
135 | 128 | # using the given strftime format. |
|
160 | 153 | # html_file_suffix = '' |
161 | 154 |
|
162 | 155 | # Output file base name for HTML help builder. |
163 | | -htmlhelp_basename = 'execnetdoc' |
| 156 | +htmlhelp_basename = "execnetdoc" |
164 | 157 |
|
165 | 158 |
|
166 | 159 | # -- Options for LaTeX output ------------------------------------------------- |
|
174 | 167 | # Grouping the document tree into LaTeX files. List of tuples |
175 | 168 | # (source start file, target name, title, author, documentclass [howto/manual]) |
176 | 169 | latex_documents = [ |
177 | | - ('index', 'execnet.tex', 'execnet Documentation', |
178 | | - 'holger krekel and others', 'manual'), |
| 170 | + ( |
| 171 | + "index", |
| 172 | + "execnet.tex", |
| 173 | + "execnet Documentation", |
| 174 | + "holger krekel and others", |
| 175 | + "manual", |
| 176 | + ) |
179 | 177 | ] |
180 | 178 |
|
181 | 179 | # The name of an image file (relative to this directory) to place at the top of |
|
0 commit comments