|
11 | 11 | # All configuration values have a default; values that are commented out
|
12 | 12 | # serve to show the default.
|
13 | 13 |
|
14 |
| -import sys, os |
15 |
| -import bt |
| 14 | +import sys |
| 15 | +import os |
16 | 16 |
|
17 | 17 | # If extensions (or modules to document with autodoc) are in another directory,
|
18 | 18 | # add these directories to sys.path here. If the directory is relative to the
|
19 | 19 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
20 |
| -sys.path.insert(0, os.path.abspath('../../bt')) |
21 |
| -sys.path.insert(0, os.path.abspath('_themes/klink')) |
| 20 | +sys.path.insert(0, os.path.abspath("../../")) |
| 21 | +sys.path.insert(0, os.path.abspath("../../bt")) |
| 22 | +sys.path.insert(0, os.path.abspath("_themes/klink")) |
| 23 | + |
| 24 | +import bt # noqa: E402 |
| 25 | +import klink # noqa: E402 |
22 | 26 |
|
23 |
| -import klink |
24 | 27 | klink.convert_notebooks()
|
25 | 28 |
|
26 |
| -html_theme_path = ['_themes/klink'] |
27 |
| -html_theme = 'klink' |
28 |
| -html_theme_options = { |
29 |
| - 'github': 'pmorissette/bt', |
30 |
| - 'analytics_id': 'UA-52308448-3' |
31 |
| -} |
| 29 | +html_theme_path = ["_themes/klink"] |
| 30 | +html_theme = "klink" |
| 31 | +html_theme_options = {"github": "pmorissette/bt", "analytics_id": "UA-52308448-3"} |
32 | 32 |
|
33 | 33 | # -- General configuration -----------------------------------------------------
|
34 | 34 |
|
35 | 35 | # If your documentation needs a minimal Sphinx version, state it here.
|
36 |
| -#needs_sphinx = '1.0' |
| 36 | +# needs_sphinx = '1.0' |
37 | 37 |
|
38 | 38 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
39 | 39 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
40 |
| -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.intersphinx'] |
| 40 | +extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.intersphinx"] |
41 | 41 |
|
42 |
| -intersphinx_mapping = {'ffn': ('http://pmorissette.github.io/ffn', None)} |
| 42 | +intersphinx_mapping = {"ffn": ("http://pmorissette.github.io/ffn", None)} |
43 | 43 |
|
44 | 44 | # Add any paths that contain templates here, relative to this directory.
|
45 |
| -templates_path = ['_templates'] |
| 45 | +templates_path = ["_templates"] |
46 | 46 |
|
47 | 47 | # The suffix of source filenames.
|
48 |
| -source_suffix = '.rst' |
| 48 | +source_suffix = ".rst" |
49 | 49 |
|
50 | 50 | # The encoding of source files.
|
51 |
| -#source_encoding = 'utf-8-sig' |
| 51 | +# source_encoding = 'utf-8-sig' |
52 | 52 |
|
53 | 53 | # The master toctree document.
|
54 |
| -master_doc = 'index' |
| 54 | +master_doc = "index" |
55 | 55 |
|
56 | 56 | # General information about the project.
|
57 |
| -project = 'bt' |
58 |
| -copyright = 'bt was created by Philippe Morissette. If you find a bug, please <a href="https://github.com/pmorissette/bt/issues/new" title="Open a new issue on Github">submit an issue</a> on Github.' |
| 57 | +project = "bt" |
| 58 | +copyright = """bt was created by Philippe Morissette. |
| 59 | +If you find a bug, please <a href="https://github.com/pmorissette/bt/issues/new" title="Open a new issue on Github">submit an issue</a> on Github. |
| 60 | +""" |
59 | 61 |
|
60 | 62 | # The version info for the project you're documenting, acts as replacement for
|
61 | 63 | # |version| and |release|, also used in various other places throughout the
|
62 | 64 | # built documents.
|
63 | 65 | #
|
64 | 66 | # The short X.Y version.
|
65 |
| -version = '.'.join([str(x) for x in bt.__version__]) |
| 67 | +version = ".".join([str(x) for x in bt.__version__]) |
66 | 68 | # The full version, including alpha/beta/rc tags.
|
67 | 69 | release = version
|
68 | 70 |
|
69 | 71 | # The language for content autogenerated by Sphinx. Refer to documentation
|
70 | 72 | # for a list of supported languages.
|
71 |
| -#language = None |
| 73 | +# language = None |
72 | 74 |
|
73 | 75 | # There are two options for replacing |today|: either, you set today to some
|
74 | 76 | # non-false value, then it is used:
|
75 |
| -#today = '' |
| 77 | +# today = '' |
76 | 78 | # Else, today_fmt is used as the format for a strftime call.
|
77 |
| -#today_fmt = '%B %d, %Y' |
| 79 | +# today_fmt = '%B %d, %Y' |
78 | 80 |
|
79 | 81 | # List of patterns, relative to source directory, that match files and
|
80 | 82 | # directories to ignore when looking for source files.
|
81 | 83 | exclude_patterns = []
|
82 | 84 |
|
83 | 85 | # The reST default role (used for this markup: `text`) to use for all documents.
|
84 |
| -#default_role = None |
| 86 | +# default_role = None |
85 | 87 |
|
86 | 88 | # If true, '()' will be appended to :func: etc. cross-reference text.
|
87 |
| -#add_function_parentheses = True |
| 89 | +# add_function_parentheses = True |
88 | 90 |
|
89 | 91 | # If true, the current module name will be prepended to all description
|
90 | 92 | # unit titles (such as .. function::).
|
91 |
| -#add_module_names = True |
| 93 | +# add_module_names = True |
92 | 94 |
|
93 | 95 | # If true, sectionauthor and moduleauthor directives will be shown in the
|
94 | 96 | # output. They are ignored by default.
|
95 |
| -#show_authors = False |
| 97 | +# show_authors = False |
96 | 98 |
|
97 | 99 | # The name of the Pygments (syntax highlighting) style to use.
|
98 |
| -pygments_style = 'sphinx' |
| 100 | +pygments_style = "sphinx" |
99 | 101 |
|
100 | 102 | # A list of ignored prefixes for module index sorting.
|
101 |
| -#modindex_common_prefix = [] |
| 103 | +# modindex_common_prefix = [] |
102 | 104 |
|
103 | 105 |
|
104 | 106 | # -- Options for HTML output ---------------------------------------------------
|
105 | 107 |
|
106 | 108 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
107 | 109 | # a list of builtin themes.
|
108 |
| -#html_theme = 'default' |
| 110 | +# html_theme = 'default' |
109 | 111 |
|
110 | 112 | # Theme options are theme-specific and customize the look and feel of a theme
|
111 | 113 | # further. For a list of options available for each theme, see the
|
112 | 114 | # documentation.
|
113 |
| -#html_theme_options = {} |
| 115 | +# html_theme_options = {} |
114 | 116 |
|
115 | 117 | # Add any paths that contain custom themes here, relative to this directory.
|
116 |
| -#html_theme_path = [] |
| 118 | +# html_theme_path = [] |
117 | 119 |
|
118 | 120 | # The name for this set of Sphinx documents. If None, it defaults to
|
119 | 121 | # "<project> v<release> documentation".
|
120 |
| -#html_title = None |
| 122 | +# html_title = None |
121 | 123 |
|
122 | 124 | # A shorter title for the navigation bar. Default is the same as html_title.
|
123 |
| -#html_short_title = None |
| 125 | +# html_short_title = None |
124 | 126 |
|
125 | 127 | # The name of an image file (relative to this directory) to place at the top
|
126 | 128 | # of the sidebar.
|
127 |
| -#html_logo = None |
| 129 | +# html_logo = None |
128 | 130 |
|
129 | 131 | # The name of an image file (within the static path) to use as favicon of the
|
130 | 132 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
131 | 133 | # pixels large.
|
132 |
| -html_favicon = 'favicon.ico' |
| 134 | +html_favicon = "favicon.ico" |
133 | 135 |
|
134 | 136 | # Add any paths that contain custom static files (such as style sheets) here,
|
135 | 137 | # relative to this directory. They are copied after the builtin static files,
|
136 | 138 | # so a file named "default.css" will overwrite the builtin "default.css".
|
137 |
| -html_static_path = ['_static'] |
| 139 | +html_static_path = ["_static"] |
138 | 140 |
|
139 | 141 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
140 | 142 | # using the given strftime format.
|
141 |
| -#html_last_updated_fmt = '%b %d, %Y' |
| 143 | +# html_last_updated_fmt = '%b %d, %Y' |
142 | 144 |
|
143 | 145 | # If true, SmartyPants will be used to convert quotes and dashes to
|
144 | 146 | # typographically correct entities.
|
145 |
| -#html_use_smartypants = True |
| 147 | +# html_use_smartypants = True |
146 | 148 |
|
147 | 149 | # Custom sidebar templates, maps document names to template names.
|
148 |
| -#html_sidebars = {} |
| 150 | +# html_sidebars = {} |
149 | 151 |
|
150 | 152 | # Additional templates that should be rendered to pages, maps page names to
|
151 | 153 | # template names.
|
152 |
| -#html_additional_pages = {} |
| 154 | +# html_additional_pages = {} |
153 | 155 |
|
154 | 156 | # If false, no module index is generated.
|
155 |
| -#html_domain_indices = True |
| 157 | +# html_domain_indices = True |
156 | 158 |
|
157 | 159 | # If false, no index is generated.
|
158 |
| -#html_use_index = True |
| 160 | +# html_use_index = True |
159 | 161 |
|
160 | 162 | # If true, the index is split into individual pages for each letter.
|
161 |
| -#html_split_index = False |
| 163 | +# html_split_index = False |
162 | 164 |
|
163 | 165 | # If true, links to the reST sources are added to the pages.
|
164 |
| -#html_show_sourcelink = True |
| 166 | +# html_show_sourcelink = True |
165 | 167 |
|
166 | 168 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
167 |
| -#html_show_sphinx = True |
| 169 | +# html_show_sphinx = True |
168 | 170 |
|
169 | 171 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
170 |
| -#html_show_copyright = True |
| 172 | +# html_show_copyright = True |
171 | 173 |
|
172 | 174 | # If true, an OpenSearch description file will be output, and all pages will
|
173 | 175 | # contain a <link> tag referring to it. The value of this option must be the
|
174 | 176 | # base URL from which the finished HTML is served.
|
175 |
| -#html_use_opensearch = '' |
| 177 | +# html_use_opensearch = '' |
176 | 178 |
|
177 | 179 | # This is the file name suffix for HTML files (e.g. ".xhtml").
|
178 |
| -#html_file_suffix = None |
| 180 | +# html_file_suffix = None |
179 | 181 |
|
180 | 182 | # Output file base name for HTML help builder.
|
181 |
| -htmlhelp_basename = 'btdoc' |
| 183 | +htmlhelp_basename = "btdoc" |
182 | 184 |
|
183 | 185 |
|
184 | 186 | # -- Options for LaTeX output --------------------------------------------------
|
185 | 187 |
|
186 | 188 | latex_elements = {
|
187 |
| -# The paper size ('letterpaper' or 'a4paper'). |
188 |
| -#'papersize': 'letterpaper', |
189 |
| - |
190 |
| -# The font size ('10pt', '11pt' or '12pt'). |
191 |
| -#'pointsize': '10pt', |
192 |
| - |
193 |
| -# Additional stuff for the LaTeX preamble. |
194 |
| -#'preamble': '', |
| 189 | + # The paper size ('letterpaper' or 'a4paper'). |
| 190 | + # 'papersize': 'letterpaper', |
| 191 | + # The font size ('10pt', '11pt' or '12pt'). |
| 192 | + # 'pointsize': '10pt', |
| 193 | + # Additional stuff for the LaTeX preamble. |
| 194 | + # 'preamble': '', |
195 | 195 | }
|
196 | 196 |
|
197 | 197 | # Grouping the document tree into LaTeX files. List of tuples
|
198 | 198 | # (source start file, target name, title, author, documentclass [howto/manual]).
|
199 | 199 | latex_documents = [
|
200 |
| - ('index', 'bt.tex', 'bt Documentation', |
201 |
| - 'Philippe Morissette', 'manual'), |
| 200 | + ("index", "bt.tex", "bt Documentation", "Philippe Morissette", "manual"), |
202 | 201 | ]
|
203 | 202 |
|
204 | 203 | # The name of an image file (relative to this directory) to place at the top of
|
205 | 204 | # the title page.
|
206 |
| -#latex_logo = None |
| 205 | +# latex_logo = None |
207 | 206 |
|
208 | 207 | # For "manual" documents, if this is true, then toplevel headings are parts,
|
209 | 208 | # not chapters.
|
210 |
| -#latex_use_parts = False |
| 209 | +# latex_use_parts = False |
211 | 210 |
|
212 | 211 | # If true, show page references after internal links.
|
213 |
| -#latex_show_pagerefs = False |
| 212 | +# latex_show_pagerefs = False |
214 | 213 |
|
215 | 214 | # If true, show URL addresses after external links.
|
216 |
| -#latex_show_urls = False |
| 215 | +# latex_show_urls = False |
217 | 216 |
|
218 | 217 | # Documents to append as an appendix to all manuals.
|
219 |
| -#latex_appendices = [] |
| 218 | +# latex_appendices = [] |
220 | 219 |
|
221 | 220 | # If false, no module index is generated.
|
222 |
| -#latex_domain_indices = True |
| 221 | +# latex_domain_indices = True |
223 | 222 |
|
224 | 223 |
|
225 | 224 | # -- Options for manual page output --------------------------------------------
|
226 | 225 |
|
227 | 226 | # One entry per manual page. List of tuples
|
228 | 227 | # (source start file, name, description, authors, manual section).
|
229 |
| -man_pages = [ |
230 |
| - ('index', 'bt', 'bt Documentation', |
231 |
| - ['Philippe Morissette'], 1) |
232 |
| -] |
| 228 | +man_pages = [("index", "bt", "bt Documentation", ["Philippe Morissette"], 1)] |
233 | 229 |
|
234 | 230 | # If true, show URL addresses after external links.
|
235 |
| -#man_show_urls = False |
| 231 | +# man_show_urls = False |
236 | 232 |
|
237 | 233 |
|
238 | 234 | # -- Options for Texinfo output ------------------------------------------------
|
|
241 | 237 | # (source start file, target name, title, author,
|
242 | 238 | # dir menu entry, description, category)
|
243 | 239 | texinfo_documents = [
|
244 |
| - ('index', 'bt', 'bt Documentation', |
245 |
| - 'Philippe Morissette', 'bt', 'One line description of project.', |
246 |
| - 'Miscellaneous'), |
| 240 | + ( |
| 241 | + "index", |
| 242 | + "bt", |
| 243 | + "bt Documentation", |
| 244 | + "Philippe Morissette", |
| 245 | + "bt", |
| 246 | + "One line description of project.", |
| 247 | + "Miscellaneous", |
| 248 | + ), |
247 | 249 | ]
|
248 | 250 |
|
249 | 251 | # Documents to append as an appendix to all manuals.
|
250 |
| -#texinfo_appendices = [] |
| 252 | +# texinfo_appendices = [] |
251 | 253 |
|
252 | 254 | # If false, no module index is generated.
|
253 |
| -#texinfo_domain_indices = True |
| 255 | +# texinfo_domain_indices = True |
254 | 256 |
|
255 | 257 | # How to display URL addresses: 'footnote', 'no', or 'inline'.
|
256 |
| -#texinfo_show_urls = 'footnote' |
| 258 | +# texinfo_show_urls = 'footnote' |
0 commit comments