|
13 | 13 |
|
14 | 14 | from datetime import date |
15 | 15 |
|
16 | | -import sys, os |
| 16 | +import sys |
| 17 | +import os |
17 | 18 |
|
18 | | -sys.path.insert(0, os.path.abspath('..')) |
| 19 | +sys.path.insert(0, os.path.abspath("..")) |
19 | 20 | import uncertainties |
20 | 21 |
|
21 | 22 | # If extensions (or modules to document with autodoc) are in another directory, |
22 | 23 | # add these directories to sys.path here. If the directory is relative to the |
23 | 24 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
24 | | -#sys.path.append(os.path.abspath('.')) |
| 25 | +# sys.path.append(os.path.abspath('.')) |
25 | 26 |
|
26 | 27 | # -- General configuration ----------------------------------------------------- |
27 | 28 |
|
28 | 29 | # Add any Sphinx extension module names here, as strings. They can be extensions |
29 | 30 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
30 | | -extensions = ['sphinx.ext.autodoc', 'sphinx_copybutton'] |
| 31 | +extensions = ["sphinx.ext.autodoc", "sphinx_copybutton"] |
31 | 32 |
|
32 | 33 | # Add any paths that contain templates here, relative to this directory. |
33 | | -templates_path = ['_templates'] |
| 34 | +templates_path = ["_templates"] |
34 | 35 |
|
35 | 36 | # The suffix of source filenames. |
36 | | -source_suffix = '.rst' |
| 37 | +source_suffix = ".rst" |
37 | 38 |
|
38 | 39 | # The encoding of source files. |
39 | | -#source_encoding = 'utf-8' |
| 40 | +# source_encoding = 'utf-8' |
40 | 41 |
|
41 | 42 | # The master toctree document. |
42 | | -master_doc = 'index' |
| 43 | +master_doc = "index" |
43 | 44 |
|
44 | 45 | # General information about the project. |
45 | | -project = u'uncertainties' |
46 | | -copyright = f'2010–{date.today().year}, Eric O. LEBIGOT (EOL)' |
| 46 | +project = "uncertainties" |
| 47 | +copyright = f"2010–{date.today().year}, Eric O. LEBIGOT (EOL)" |
47 | 48 |
|
48 | 49 | # The version info for the project you're documenting, acts as replacement for |
49 | 50 | # |version| and |release|, also used in various other places throughout the |
50 | 51 | # built documents. |
51 | 52 | # |
52 | 53 | # The short X.Y version. |
53 | | -version = '1' |
| 54 | +version = "1" |
54 | 55 | # The full version, including alpha/beta/rc tags. |
55 | 56 | release = uncertainties.__version__ |
56 | 57 |
|
57 | 58 | # The language for content autogenerated by Sphinx. Refer to documentation |
58 | 59 | # for a list of supported languages. |
59 | | -#language = None |
| 60 | +# language = None |
60 | 61 |
|
61 | 62 | # There are two options for replacing |today|: either, you set today to some |
62 | 63 | # non-false value, then it is used: |
63 | | -#today = '' |
| 64 | +# today = '' |
64 | 65 | # Else, today_fmt is used as the format for a strftime call. |
65 | | -#today_fmt = '%B %d, %Y' |
| 66 | +# today_fmt = '%B %d, %Y' |
66 | 67 |
|
67 | 68 | # List of documents that shouldn't be included in the build. |
68 | | -#unused_docs = [] |
| 69 | +# unused_docs = [] |
69 | 70 |
|
70 | 71 | # List of directories, relative to source directory, that shouldn't be searched |
71 | 72 | # for source files. |
72 | | -exclude_trees = ['_build'] |
| 73 | +exclude_trees = ["_build"] |
73 | 74 |
|
74 | 75 | # The reST default role (used for this markup: `text`) to use for all documents. |
75 | | -#default_role = None |
| 76 | +# default_role = None |
76 | 77 |
|
77 | 78 | # If true, '()' will be appended to :func: etc. cross-reference text. |
78 | | -#add_function_parentheses = True |
| 79 | +# add_function_parentheses = True |
79 | 80 |
|
80 | 81 | # If true, the current module name will be prepended to all description |
81 | 82 | # unit titles (such as .. function::). |
82 | | -#add_module_names = True |
| 83 | +# add_module_names = True |
83 | 84 |
|
84 | 85 | # If true, sectionauthor and moduleauthor directives will be shown in the |
85 | 86 | # output. They are ignored by default. |
86 | | -#show_authors = False |
| 87 | +# show_authors = False |
87 | 88 |
|
88 | 89 | # The name of the Pygments (syntax highlighting) style to use. |
89 | | -pygments_style = 'sphinx' |
| 90 | +pygments_style = "sphinx" |
90 | 91 |
|
91 | 92 | # A list of ignored prefixes for module index sorting. |
92 | | -#modindex_common_prefix = [] |
| 93 | +# modindex_common_prefix = [] |
93 | 94 |
|
94 | 95 |
|
95 | 96 | # -- Options for HTML output --------------------------------------------------- |
96 | 97 |
|
97 | 98 | # The theme to use for HTML and HTML Help pages. Major themes that come with |
98 | 99 | # Sphinx are currently 'default' and 'sphinxdoc'. |
99 | 100 | # html_theme = 'sphinxdoc' |
100 | | -html_theme = 'bizstyle' |
| 101 | +html_theme = "bizstyle" |
101 | 102 | # html_theme = 'cloud' |
102 | | -html_theme = 'python_docs_theme' |
| 103 | +html_theme = "python_docs_theme" |
103 | 104 | # html_theme = "pydata_sphinx_theme" |
104 | 105 |
|
105 | 106 | # Theme options are theme-specific and customize the look and feel of a theme |
|
108 | 109 | # html_theme_options = {} |
109 | 110 |
|
110 | 111 | # Add any paths that contain custom themes here, relative to this directory. |
111 | | -#html_theme_path = [] |
| 112 | +# html_theme_path = [] |
112 | 113 |
|
113 | 114 | # The name for this set of Sphinx documents. If None, it defaults to |
114 | 115 | # "<project> v<release> documentation". |
115 | 116 | html_title = "uncertainties" |
116 | 117 |
|
117 | 118 | # A shorter title for the navigation bar. Default is the same as html_title. |
118 | | -#html_short_title = None |
| 119 | +# html_short_title = None |
119 | 120 |
|
120 | 121 | # The name of an image file (relative to this directory) to place at the top |
121 | 122 | # of the sidebar. |
122 | | -#html_logo = None |
| 123 | +# html_logo = None |
123 | 124 |
|
124 | 125 | # The name of an image file (within the static path) to use as favicon of the |
125 | 126 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
126 | 127 | # pixels large. |
127 | | -html_favicon = '_static/favicon.ico' |
| 128 | +html_favicon = "_static/favicon.ico" |
128 | 129 |
|
129 | 130 | # Add any paths that contain custom static files (such as style sheets) here, |
130 | 131 | # relative to this directory. They are copied after the builtin static files, |
131 | 132 | # so a file named "default.css" will overwrite the builtin "default.css". |
132 | | -html_static_path = ['_static'] |
| 133 | +html_static_path = ["_static"] |
133 | 134 |
|
134 | 135 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
135 | 136 | # using the given strftime format. |
136 | | -#html_last_updated_fmt = '%b %d, %Y' |
| 137 | +# html_last_updated_fmt = '%b %d, %Y' |
137 | 138 |
|
138 | 139 | # If true, SmartyPants will be used to convert quotes and dashes to |
139 | 140 | # typographically correct entities. |
140 | | -#html_use_smartypants = True |
| 141 | +# html_use_smartypants = True |
141 | 142 |
|
142 | 143 | # Custom sidebar templates, maps document names to template names. |
143 | | -html_sidebars = {'index': ['indexsidebar.html', 'searchbox.html', 'globaltoc.html']} |
| 144 | +html_sidebars = {"index": ["indexsidebar.html", "searchbox.html", "globaltoc.html"]} |
144 | 145 |
|
145 | 146 | # Additional templates that should be rendered to pages, maps page names to |
146 | 147 | # template names. |
147 | | -#html_additional_pages = {} |
| 148 | +# html_additional_pages = {} |
148 | 149 |
|
149 | 150 | # If false, no module index is generated. |
150 | | -#html_use_modindex = True |
| 151 | +# html_use_modindex = True |
151 | 152 |
|
152 | 153 | # If false, no index is generated. |
153 | | -#html_use_index = True |
| 154 | +# html_use_index = True |
154 | 155 |
|
155 | 156 | # If true, the index is split into individual pages for each letter. |
156 | | -#html_split_index = False |
| 157 | +# html_split_index = False |
157 | 158 |
|
158 | 159 | # If true, links to the reST sources are added to the pages. |
159 | 160 | html_show_sourcelink = False |
160 | 161 |
|
161 | 162 | # If true, an OpenSearch description file will be output, and all pages will |
162 | 163 | # contain a <link> tag referring to it. The value of this option must be the |
163 | 164 | # base URL from which the finished HTML is served. |
164 | | -#html_use_opensearch = '' |
| 165 | +# html_use_opensearch = '' |
165 | 166 |
|
166 | 167 | # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). |
167 | | -#html_file_suffix = '' |
| 168 | +# html_file_suffix = '' |
168 | 169 |
|
169 | 170 | # Output file base name for HTML help builder. |
170 | | -htmlhelp_basename = 'uncertainties' |
| 171 | +htmlhelp_basename = "uncertainties" |
171 | 172 |
|
172 | 173 |
|
173 | 174 | # -- Options for LaTeX output -------------------------------------------------- |
174 | 175 |
|
175 | 176 | # The paper size ('letter' or 'a4'). |
176 | | -#latex_paper_size = 'letter' |
| 177 | +# latex_paper_size = 'letter' |
177 | 178 |
|
178 | 179 | # The font size ('10pt', '11pt' or '12pt'). |
179 | | -#latex_font_size = '10pt' |
| 180 | +# latex_font_size = '10pt' |
180 | 181 |
|
181 | 182 | # Grouping the document tree into LaTeX files. List of tuples |
182 | 183 | # (source start file, target name, title, author, documentclass [howto/manual]). |
183 | 184 | latex_documents = [ |
184 | | - ('index', 'uncertainties.tex', u'uncertainties Python package Documentation', |
185 | | - u'Eric O. LEBIGOT (EOL)', 'manual'), |
| 185 | + ( |
| 186 | + "index", |
| 187 | + "uncertainties.tex", |
| 188 | + "uncertainties Python package Documentation", |
| 189 | + "Eric O. LEBIGOT (EOL)", |
| 190 | + "manual", |
| 191 | + ), |
186 | 192 | ] |
187 | 193 |
|
188 | | -#latex_engine = "xelatex" # Not recognized by readthedocs.io as of 2018-04-08 |
| 194 | +# latex_engine = "xelatex" # Not recognized by readthedocs.io as of 2018-04-08 |
189 | 195 |
|
190 | 196 | # The name of an image file (relative to this directory) to place at the top of |
191 | 197 | # the title page. |
192 | | -#latex_logo = None |
| 198 | +# latex_logo = None |
193 | 199 |
|
194 | 200 | # For "manual" documents, if this is true, then toplevel headings are parts, |
195 | 201 | # not chapters. |
196 | | -#latex_use_parts = False |
| 202 | +# latex_use_parts = False |
197 | 203 |
|
198 | 204 | # Additional stuff for the LaTeX preamble. |
199 | | -#latex_preamble = r'\DeclareUnicodeCharacter{207B}{$^-$}' |
| 205 | +# latex_preamble = r'\DeclareUnicodeCharacter{207B}{$^-$}' |
200 | 206 | latex_elements = { |
201 | 207 | # Superscript -, etc. for pdflatex (unnecessary, with xelatex): |
202 | | - 'preamble': r''' |
| 208 | + "preamble": r""" |
203 | 209 | \DeclareUnicodeCharacter{207B}{$^-$} |
204 | 210 | \DeclareUnicodeCharacter{22C5}{$\cdot$} |
205 | | -''' |
| 211 | +""" |
206 | 212 | } |
207 | 213 |
|
208 | 214 | # Documents to append as an appendix to all manuals. |
209 | | -#latex_appendices = [] |
| 215 | +# latex_appendices = [] |
210 | 216 |
|
211 | 217 | # If false, no module index is generated. |
212 | | -#latex_use_modindex = True |
| 218 | +# latex_use_modindex = True |
0 commit comments