Debian Codegraph @

docs/conf.py

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 #!/usr/bin/env python3
2 #
3 # aioftp documentation build configuration file, created by
4 # sphinx-quickstart on Fri Apr 17 16:21:03 2015.
5 #
6 # This file is execfile()d with the current directory set to its
7 # containing dir.
8 #
9 # Note that not all possible configuration values are present in this
10 # autogenerated file.
11 #
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
14
15 import os
16 import sys
17
18 import alabaster
19
20 # If extensions (or modules to document with autodoc) are in another directory,
21 # add these directories to sys.path here. If the directory is relative to the
22 # documentation root, use os.path.abspath to make it absolute, like shown here.
23 sys.path.insert(0, os.path.abspath(".."))
24
25 import aioftp # noqa
26
27 # -- General configuration ------------------------------------------------
28
29 # If your documentation needs a minimal Sphinx version, state it here.
30 # needs_sphinx = '1.0'
31
32 # Add any Sphinx extension module names here, as strings. They can be
33 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34 # ones.
35 extensions = [
36 "sphinx.ext.autodoc",
37 "sphinx.ext.intersphinx",
38 "alabaster",
39 ]
40
41 # Add any paths that contain templates here, relative to this directory.
42 templates_path = ["_templates"]
43
44 # The suffix(es) of source filenames.
45 # You can specify multiple suffix as a list of string:
46 # source_suffix = ['.rst', '.md']
47 source_suffix = ".rst"
48
49 # The encoding of source files.
50 # source_encoding = 'utf-8-sig'
51
52 # The master toctree document.
53 master_doc = "index"
54
55 # General information about the project.
56 project = "aioftp"
57 copyright = "2016, pohmelie"
58 author = "pohmelie"
59
60 # The version info for the project you're documenting, acts as replacement for
61 # |version| and |release|, also used in various other places throughout the
62 # built documents.
63 #
64 # The short X.Y version.
65 version = aioftp.__version__
66 # The full version, including alpha/beta/rc tags.
67 release = aioftp.__version__
68
69 # The language for content autogenerated by Sphinx. Refer to documentation
70 # for a list of supported languages.
71 #
72 # This is also used if you do content translation via gettext catalogs.
73 # Usually you set "language" from the command line for these cases.
74 language = None
75
76 # There are two options for replacing |today|: either, you set today to some
77 # non-false value, then it is used:
78 # today = ''
79 # Else, today_fmt is used as the format for a strftime call.
80 # today_fmt = '%B %d, %Y'
81
82 # List of patterns, relative to source directory, that match files and
83 # directories to ignore when looking for source files.
84 exclude_patterns = ["_build"]
85
86 # The reST default role (used for this markup: `text`) to use for all
87 # documents.
88 # default_role = None
89
90 # If true, '()' will be appended to :func: etc. cross-reference text.
91 # add_function_parentheses = True
92
93 # If true, the current module name will be prepended to all description
94 # unit titles (such as .. function::).
95 # add_module_names = True
96
97 # If true, sectionauthor and moduleauthor directives will be shown in the
98 # output. They are ignored by default.
99 # show_authors = False
100
101 # The name of the Pygments (syntax highlighting) style to use.
102 pygments_style = "sphinx"
103
104 # A list of ignored prefixes for module index sorting.
105 # modindex_common_prefix = []
106
107 # If true, keep warnings as "system message" paragraphs in the built documents.
108 # keep_warnings = False
109
110 # If true, `todo` and `todoList` produce output, else they produce nothing.
111 todo_include_todos = False
112
113
114 # -- Options for HTML output ----------------------------------------------
115
116 # The theme to use for HTML and HTML Help pages. See the documentation for
117 # a list of builtin themes.
118 html_theme = "alabaster"
119
120 # Theme options are theme-specific and customize the look and feel of a theme
121 # further. For a list of options available for each theme, see the
122 # documentation.
123 html_theme_options = {
124 "logo": "logo.png",
125 "description": "ftp client/server for asyncio",
126 "github_user": "pohmelie",
127 "github_repo": "aioftp",
128 "github_button": True,
129 "github_banner": True,
130 # 'travis_button': True,
131 "pre_bg": "#FFF6E5",
132 "note_bg": "#E5ECD1",
133 "note_border": "#BFCF8C",
134 "body_text": "#482C0A",
135 "sidebar_text": "#49443E",
136 "sidebar_header": "#4B4032",
137 "page_width": "90%",
138 }
139
140 # Add any paths that contain custom themes here, relative to this directory.
141 html_theme_path = [alabaster.get_path()]
142
143 # The name for this set of Sphinx documents. If None, it defaults to
144 # "<project> v<release> documentation".
145 # html_title = None
146
147 # A shorter title for the navigation bar. Default is the same as html_title.
148 # html_short_title = None
149
150 # The name of an image file (relative to this directory) to place at the top
151 # of the sidebar.
152 # html_logo = None
153
154 # The name of an image file (within the static path) to use as favicon of the
155 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
156 # pixels large.
157 html_favicon = "_static/logo.ico"
158
159 # Add any paths that contain custom static files (such as style sheets) here,
160 # relative to this directory. They are copied after the builtin static files,
161 # so a file named "default.css" will overwrite the builtin "default.css".
162 html_static_path = ["_static"]
163
164 # Add any extra paths that contain custom files (such as robots.txt or
165 # .htaccess) here, relative to this directory. These files are copied
166 # directly to the root of the documentation.
167 # html_extra_path = []
168
169 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
170 # using the given strftime format.
171 # html_last_updated_fmt = '%b %d, %Y'
172
173 # If true, SmartyPants will be used to convert quotes and dashes to
174 # typographically correct entities.
175 # html_use_smartypants = True
176
177 # Custom sidebar templates, maps document names to template names.
178 # html_sidebars = {}
179
180 # Additional templates that should be rendered to pages, maps page names to
181 # template names.
182 # html_additional_pages = {}
183
184 # If false, no module index is generated.
185 # html_domain_indices = True
186
187 # If false, no index is generated.
188 # html_use_index = True
189
190 # If true, the index is split into individual pages for each letter.
191 # html_split_index = False
192
193 # If true, links to the reST sources are added to the pages.
194 # html_show_sourcelink = True
195
196 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
197 # html_show_sphinx = True
198
199 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
200 # html_show_copyright = True
201
202 # If true, an OpenSearch description file will be output, and all pages will
203 # contain a <link> tag referring to it. The value of this option must be the
204 # base URL from which the finished HTML is served.
205 # html_use_opensearch = ''
206
207 # This is the file name suffix for HTML files (e.g. ".xhtml").
208 # html_file_suffix = None
209
210 # Language to be used for generating the HTML full-text search index.
211 # Sphinx supports the following languages:
212 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
213 # 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
214 # html_search_language = 'en'
215
216 # A dictionary with options for the search language support, empty by default.
217 # Now only 'ja' uses this config value
218 # html_search_options = {'type': 'default'}
219
220 # The name of a javascript file (relative to the configuration directory) that
221 # implements a search results scorer. If empty, the default will be used.
222 # html_search_scorer = 'scorer.js'
223
224 # Output file base name for HTML help builder.
225 htmlhelp_basename = "aioftpdoc"
226
227 # -- Options for LaTeX output ---------------------------------------------
228
229 latex_elements = {
230 # The paper size ('letterpaper' or 'a4paper').
231 #'papersize': 'letterpaper',
232 # The font size ('10pt', '11pt' or '12pt').
233 #'pointsize': '10pt',
234 # Additional stuff for the LaTeX preamble.
235 #'preamble': '',
236 # Latex figure (float) alignment
237 #'figure_align': 'htbp',
238 }
239
240 # Grouping the document tree into LaTeX files. List of tuples
241 # (source start file, target name, title,
242 # author, documentclass [howto, manual, or own class]).
243 latex_documents = [
244 (
245 master_doc,
246 "aioftp.tex",
247 "aioftp Documentation",
248 "pohmelie",
249 "manual",
250 ),
251 ]
252
253 # The name of an image file (relative to this directory) to place at the top of
254 # the title page.
255 # latex_logo = None
256
257 # For "manual" documents, if this is true, then toplevel headings are parts,
258 # not chapters.
259 # latex_use_parts = False
260
261 # If true, show page references after internal links.
262 # latex_show_pagerefs = False
263
264 # If true, show URL addresses after external links.
265 # latex_show_urls = False
266
267 # Documents to append as an appendix to all manuals.
268 # latex_appendices = []
269
270 # If false, no module index is generated.
271 # latex_domain_indices = True
272
273
274 # -- Options for manual page output ---------------------------------------
275
276 # One entry per manual page. List of tuples
277 # (source start file, name, description, authors, manual section).
278 man_pages = [
279 (
280 master_doc,
281 "aioftp",
282 "aioftp Documentation",
283 [author],
284 1,
285 ),
286 ]
287
288 # If true, show URL addresses after external links.
289 # man_show_urls = False
290
291
292 # -- Options for Texinfo output -------------------------------------------
293
294 # Grouping the document tree into Texinfo files. List of tuples
295 # (source start file, target name, title, author,
296 # dir menu entry, description, category)
297 texinfo_documents = [
298 (
299 master_doc,
300 "aioftp",
301 "aioftp Documentation",
302 author,
303 "aioftp",
304 "One line description of project.",
305 "Miscellaneous",
306 ),
307 ]
308
309 # Documents to append as an appendix to all manuals.
310 # texinfo_appendices = []
311
312 # If false, no module index is generated.
313 # texinfo_domain_indices = True
314
315 # How to display URL addresses: 'footnote', 'no', or 'inline'.
316 # texinfo_show_urls = 'footnote'
317
318 # If true, do not generate a @detailmenu in the "Top" node's menu.
319 # texinfo_no_detailmenu = False
320
321 intersphinx_mapping = {
322 "python": ("https://docs.python.org/3", None),
323 "aioftp": ("./_build/html", None),
324 }
325
326 html_logo = "_static/logo.png"