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