Debian Codegraph @

docs/conf.py

raw ◀ ▶
1 Debian patch touch this file
1 # !/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
4 # complexity documentation build configuration file, created by
5 # sphinx-quickstart on Tue Jul 9 22:26:36 2013.
6 #
7 # This file is execfile()d with the current directory set to its containing
8 # dir.
9 #
10 # Note that not all possible configuration values are present in this
11 # autogenerated file.
12 #
13 # All configuration values have a default; values that are commented out
14 # serve to show the default.
15
16 import os
17 import sys
18
19 # If extensions (or modules to document with autodoc) are in another directory,
20 # add these directories to sys.path here. If the directory is relative to the
21 # documentation root, use os.path.abspath to make it absolute, like shown here.
22 # sys.path.insert(0, os.path.abspath('.'))
23
24 # Get the project root dir, which is the parent dir of this
25 docs_root = os.path.abspath(os.path.dirname(__file__))
26 project_root = os.path.join(docs_root, os.path.pardir)
27
28 # Insert the project root dir as the first element in the PYTHONPATH.
29 # This lets us ensure that the source package is imported, and that its
30 # version is used.
31 sys.path.insert(0, project_root)
32
33 # package data
34 about = {}
35 with open(os.path.join(project_root, 'mt940/__about__.py')) as fp:
36 exec(fp.read(), about)
37
38
39 import mt940
40 assert mt940
41
42 # -- General configuration ----------------------------------------------------
43
44 # If your documentation needs a minimal Sphinx version, state it here.
45 # needs_sphinx = '1.0'
46
47 # Add any Sphinx extension module names here, as strings. They can be
48 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
49 extensions = [
50 'sphinx.ext.autodoc',
51 'sphinx.ext.doctest',
52 'sphinx.ext.intersphinx',
53 'sphinx.ext.todo',
54 'sphinx.ext.coverage',
55 'sphinx.ext.mathjax',
56 'sphinx.ext.ifconfig',
57 'sphinx.ext.viewcode',
58 'sphinx.ext.napoleon',
59 ]
60
61 # Add any paths that contain templates here, relative to this directory.
62 templates_path = ['_templates']
63
64 # The suffix of source filenames.
65 source_suffix = '.rst'
66
67 # The encoding of source files.
68 # source_encoding = 'utf-8-sig'
69
70 # The master toctree document.
71 master_doc = 'index'
72
73 # General information about the project.
74 project = about['__title__']
75 copyright = '<a href="http://wol.ph/">%s</a>' % about['__copyright__']
76
77 # The version info for the project you're documenting, acts as replacement for
78 # |version| and |release|, also used in various other places throughout the
79 # built documents.
80 #
81 # The short X.Y version.
82 version = '%s' % ('.'.join(about['__version__'].split('.'))[:2])
83 # The full version, including alpha/beta/rc tags.
84 release = '%s' % (about['__version__'])
85
86 # The language for content autogenerated by Sphinx. Refer to documentation
87 # for a list of supported languages.
88 # language = None
89
90 # There are two options for replacing |today|: either, you set today to some
91 # non-false value, then it is used:
92 # today = ''
93 # Else, today_fmt is used as the format for a strftime call.
94 # today_fmt = '%B %d, %Y'
95
96 # List of patterns, relative to source directory, that match files and
97 # directories to ignore when looking for source files.
98 exclude_patterns = ['_build']
99
100 # The reST default role (used for this markup: `text`) to use for all
101 # documents.
102 # default_role = None
103
104 # If true, '()' will be appended to :func: etc. cross-reference text.
105 # add_function_parentheses = True
106
107 # If true, the current module name will be prepended to all description
108 # unit titles (such as .. function::).
109 # add_module_names = True
110
111 # If true, sectionauthor and moduleauthor directives will be shown in the
112 # output. They are ignored by default.
113 # show_authors = False
114
115 # The name of the Pygments (syntax highlighting) style to use.
116 pygments_style = 'sphinx'
117
118 # A list of ignored prefixes for module index sorting.
119 # modindex_common_prefix = []
120
121 # If true, keep warnings as "system message" paragraphs in the built documents.
122 # keep_warnings = False
123
124
125 # -- Options for HTML output --------------------------------------------------
126
127 # The theme to use for HTML and HTML Help pages. See the documentation for
128 # a list of builtin themes.
129 # html_theme = 'alabaster'
130
131 # Theme options are theme-specific and customize the look and feel of a theme
132 # further. For a list of options available for each theme, see the
133 # documentation.
134 # html_theme_options = {}
135
136 # Add any paths that contain custom themes here, relative to this directory.
137 # html_theme_path = []
138
139 # The name for this set of Sphinx documents. If None, it defaults to
140 # "<project> v<release> documentation".
141 # html_title = None
142
143 # A shorter title for the navigation bar. Default is the same as html_title.
144 # html_short_title = None
145
146 # The name of an image file (relative to this directory) to place at the top
147 # of the sidebar.
148 # html_logo = None
149
150 # The name of an image file (within the static path) to use as favicon of the
151 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
152 # pixels large.
153 # html_favicon = None
154
155 # Add any paths that contain custom static files (such as style sheets) here,
156 # relative to this directory. They are copied after the builtin static files,
157 # so a file named "default.css" will overwrite the builtin "default.css".
158 # html_static_path = ['_static']
159
160 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
161 # using the given strftime format.
162 # html_last_updated_fmt = '%b %d, %Y'
163
164 # If true, SmartyPants will be used to convert quotes and dashes to
165 # typographically correct entities.
166 # html_use_smartypants = True
167
168 # Custom sidebar templates, maps document names to template names.
169 # html_sidebars = {}
170
171 # Additional templates that should be rendered to pages, maps page names to
172 # template names.
173 # html_additional_pages = {}
174
175 # If false, no module index is generated.
176 # html_domain_indices = True
177
178 # If false, no index is generated.
179 # html_use_index = True
180
181 # If true, the index is split into individual pages for each letter.
182 # html_split_index = False
183
184 # If true, links to the reST sources are added to the pages.
185 # html_show_sourcelink = True
186
187 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
188 # html_show_sphinx = True
189
190 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
191 # html_show_copyright = True
192
193 # If true, an OpenSearch description file will be output, and all pages will
194 # contain a <link> tag referring to it. The value of this option must be the
195 # base URL from which the finished HTML is served.
196 # html_use_opensearch = ''
197
198 # This is the file name suffix for HTML files (e.g. ".xhtml").
199 # html_file_suffix = None
200
201 # Output file base name for HTML help builder.
202 htmlhelp_basename = '%sdoc' % about['__title__']
203
204
205 # -- Options for LaTeX output -------------------------------------------------
206
207 latex_elements = {
208 # The paper size ('letterpaper' or 'a4paper').
209 # 'papersize': 'letterpaper',
210
211 # The font size ('10pt', '11pt' or '12pt').
212 # 'pointsize': '10pt',
213
214 # Additional stuff for the LaTeX preamble.
215 # 'preamble': '',
216 }
217
218 # Grouping the document tree into LaTeX files. List of tuples (source start
219 # file, target name, title, author, documentclass [howto/manual]).
220 latex_documents = [(
221 'index',
222 '{0}.tex'.format(about['__package_name__']),
223 '{0} Documentation'.format(about['__title__']),
224 about['__author__'],
225 'manual'
226 ), ]
227
228 # The name of an image file (relative to this directory) to place at the top of
229 # the title page.
230 # latex_logo = None
231
232 # For "manual" documents, if this is true, then toplevel headings are parts,
233 # not chapters.
234 # latex_use_parts = False
235
236 # If true, show page references after internal links.
237 # latex_show_pagerefs = False
238
239 # If true, show URL addresses after external links.
240 # latex_show_urls = False
241
242 # Documents to append as an appendix to all manuals.
243 # latex_appendices = []
244
245 # If false, no module index is generated.
246 # latex_domain_indices = True
247
248
249 # -- Options for manual page output -------------------------------------------
250
251 # One entry per manual page. List of tuples
252 # (source start file, name, description, authors, manual section).
253 man_pages = [(
254 'index',
255 about['__package_name__'],
256 '{0} Documentation'.format(about['__title__']),
257 about['__author__'],
258 1,
259 ), ]
260
261 # If true, show URL addresses after external links.
262 # man_show_urls = False
263
264
265 # -- Options for Texinfo output -----------------------------------------------
266
267 # Grouping the document tree into Texinfo files. List of tuples
268 # (source start file, target name, title, author,
269 # dir menu entry, description, category)
270 texinfo_documents = [(
271 'index',
272 '{0}'.format(about['__package_name__']),
273 '{0} Documentation'.format(about['__title__']),
274 about['__author__'],
275 about['__package_name__'],
276 about['__description__'],
277 'Miscellaneous',
278 ), ]
279
280 # Documents to append as an appendix to all manuals.
281 # texinfo_appendices = []
282
283 # If false, no module index is generated.
284 # texinfo_domain_indices = True
285
286 # How to display URL addresses: 'footnote', 'no', or 'inline'.
287 # texinfo_show_urls = 'footnote'
288
289 # If true, do not generate a @detailmenu in the "Top" node's menu.
290 # texinfo_no_detailmenu = False
291
292 # Example configuration for intersphinx: refer to the Python standard library.
293 intersphinx_mapping = {
•294 'python': ('http://docs.python.org/3', None),
295 'pip': ('http://sphinx.readthedocs.org/en/master/', None),
296 }
297
298 # section names - optional
299 changelog_sections = ["general", "rendering", "tests", "docs"]
300
301 # tags to sort on inside of sections - also optional
302 changelog_inner_tag_sort = ["feature", "bug"]
303
304 # how to render changelog links - these are plain
305 # python string templates, ticket/pullreq/changeset number goes
306 # in "%s"
307 github_url = 'https://github.com/'
308 github_profile_url = github_url + 'WoLpH/'
309 github_project_url = github_profile_url + 'mt940/'
310 changelog_render_ticket = github_url + 'issues/%s'
311 changelog_render_pullreq = github_url + 'pulls/%s'
312 changelog_render_changeset = github_url + 'commit/%s'
313