Passed
Pull Request — master (#147)
by Italo Valcy
12:43 queued 05:51
created

conf   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 335
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 60
dl 0
loc 335
rs 10
c 0
b 0
f 0
wmc 0
1
# -*- coding: utf-8 -*-
2
#
3
# Kytos documentation build configuration file, created by
4
# sphinx-quickstart on Mon July 04 10:22:32 2016.
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 kytos_sphinx_theme
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
# -- General configuration ------------------------------------------------
26
27
# If your documentation needs a minimal Sphinx version, state it here.
28
#needs_sphinx = '1.0'
29
30
# Add any Sphinx extension module names here, as strings. They can be
31
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32
# ones.
33
extensions = [
34
    'sphinx.ext.autodoc',
35
    'sphinx.ext.napoleon',
36
    'sphinx.ext.doctest',
37
    'sphinx.ext.intersphinx',
38
    'sphinx.ext.coverage',
39
    'sphinx.ext.todo',
40
]
41
42
# Add any paths that contain templates here, relative to this directory.
43
templates_path = ['_templates']
44
45
# The suffix(es) of source filenames.
46
# You can specify multiple suffix as a list of string:
47
# source_suffix = ['.rst', '.md']
48
source_suffix = '.rst'
49
50
# The encoding of source files.
51
#source_encoding = 'utf-8-sig'
52
53
# The master toctree document.
54
master_doc = 'reference'
55
56
# General information about the project.
57
project_short_name = u'kytos'
58
project = u'Kytos SDN Platform'
59
copyright = u'2017-2019 Kytos Project'
60
author = u'Kytos Project'
61
62
# The version info for the project you're documenting, acts as replacement for
63
# |version| and |release|, also used in various other places throughout the
64
# built documents.
65
#
66
# The short X.Y version.
67
version = u'2021.1'
68
show_version = False
69
# The full version, including alpha/beta/rc tags.
70
release = u'2021.1'
71
72
# The language for content autogenerated by Sphinx. Refer to documentation
73
# for a list of supported languages.
74
#
75
# This is also used if you do content translation via gettext catalogs.
76
# Usually you set "language" from the command line for these cases.
77
language = None
78
79
# There are two options for replacing |today|: either, you set today to some
80
# non-false value, then it is used:
81
#today = ''
82
# Else, today_fmt is used as the format for a strftime call.
83
#today_fmt = '%B %d, %Y'
84
85
# List of patterns, relative to source directory, that match files and
86
# directories to ignore when looking for source files.
87
# This patterns also effect to html_static_path and html_extra_path
88
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'README.rst']
89
90
# The reST default role (used for this markup: `text`) to use for all
91
# documents.
92
#default_role = None
93
94
# If true, '()' will be appended to :func: etc. cross-reference text.
95
add_function_parentheses = True
96
97
# If true, the current module name will be prepended to all description
98
# unit titles (such as .. function::).
99
#add_module_names = True
100
101
# If true, sectionauthor and moduleauthor directives will be shown in the
102
# output. They are ignored by default.
103
# show_authors = False
104
105
# The name of the Pygments (syntax highlighting) style to use.
106
pygments_style = None
107
108
# A list of ignored prefixes for module index sorting.
109
#modindex_common_prefix = []
110
111
# If true, keep warnings as "system message" paragraphs in the built documents.
112
#keep_warnings = False
113
114
# Remove nonlocal_uri warnings
115
suppress_warnings = ['image.nonlocal_uri']
116
117
# If true, `todo` and `todoList` produce output, else they produce nothing.
118
todo_include_todos = False
119
120
121
# -- Options for HTML output ----------------------------------------------
122
123
# The theme to use for HTML and HTML Help pages.  See the documentation for
124
# a list of builtin themes.
125
# html_theme = 'alabaster'
126
# html_theme = 'sphinx_rtd_theme'
127
html_theme = 'kytos'
128
html_theme_path = kytos_sphinx_theme.get_html_theme_path()
129
130
# Theme options are theme-specific and customize the look and feel of a theme
131
# further.  For a list of options available for each theme, see the
132
# documentation.
133
# html_theme_options = {}
134
135
# Add any paths that contain custom themes here, relative to this directory.
136
#html_theme_path = []
137
138
# The name for this set of Sphinx documents.
139
# "<project> v<release> documentation" by default.
140
#html_title = u'Kytos v0.1.0'
141
142
# A shorter title for the navigation bar.  Default is the same as html_title.
143
#html_short_title = None
144
145
# The name of an image file (relative to this directory) to place at the top
146
# of the sidebar.
147
#html_logo = None
148
149
# The name of an image file (relative to this directory) to use as a favicon of
150
# the docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
151
# pixels large.
152
#html_favicon = None
153
154
# Add any paths that contain custom static files (such as style sheets) here,
155
# relative to this directory. They are copied after the builtin static files,
156
# so a file named "default.css" will overwrite the builtin "default.css".
157
html_static_path = ['_static']
158
159
# Add any extra paths that contain custom files (such as robots.txt or
160
# .htaccess) here, relative to this directory. These files are copied
161
# directly to the root of the documentation.
162
#html_extra_path = []
163
164
# If not None, a 'Last updated on:' timestamp is inserted at every page
165
# bottom, using the given strftime format.
166
# The empty string is equivalent to '%b %d, %Y'.
167
html_last_updated_fmt = None
168
169
# If true, SmartyPants will be used to convert quotes and dashes to
170
# typographically correct entities.
171
#html_use_smartypants = True
172
173
# Custom sidebar templates, maps document names to template names.
174
#html_sidebars = {}
175
# html_sidebars = {'**': ['custom_sidebar.html', 'searchbox.html']}
176
# html_sidebars = {'**': ['custom_sidebar.html']}
177
html_sidebars = {'**': ['globaltoc_sidebar.html']}
178
html_context = {
179
    'project_short_name': project_short_name,
180
    'css_files': [],
181
}
182
183
# Additional templates that should be rendered to pages, maps page names to
184
# template names.
185
#html_additional_pages = {}
186
187
# If false, no module index is generated.
188
#html_domain_indices = True
189
190
# If false, no index is generated.
191
#html_use_index = True
192
193
# If true, the index is split into individual pages for each letter.
194
#html_split_index = False
195
196
# If true, links to the reST sources are added to the pages.
197
html_show_sourcelink = False
198
199
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
200
#html_show_sphinx = True
201
202
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
203
#html_show_copyright = True
204
205
# If true, an OpenSearch description file will be output, and all pages will
206
# contain a <link> tag referring to it.  The value of this option must be the
207
# base URL from which the finished HTML is served.
208
#html_use_opensearch = ''
209
210
# This is the file name suffix for HTML files (e.g. ".xhtml").
211
#html_file_suffix = None
212
213
# Language to be used for generating the HTML full-text search index.
214
# Sphinx supports the following languages:
215
#   'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
216
#   'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
217
#html_search_language = 'en'
218
219
# A dictionary with options for the search language support, empty by default.
220
# 'ja' uses this config value.
221
# 'zh' user can custom change `jieba` dictionary path.
222
#html_search_options = {'type': 'default'}
223
224
# The name of a javascript file (relative to the configuration directory) that
225
# implements a search results scorer. If empty, the default will be used.
226
#html_search_scorer = 'scorer.js'
227
228
# Output file base name for HTML help builder.
229
htmlhelp_basename = 'kytosdoc'
230
231
# -- Options for LaTeX output ---------------------------------------------
232
233
latex_elements = {
234
# The paper size ('letterpaper' or 'a4paper').
235
#'papersize': 'letterpaper',
236
237
# The font size ('10pt', '11pt' or '12pt').
238
#'pointsize': '10pt',
239
240
# Additional stuff for the LaTeX preamble.
241
#'preamble': '',
242
243
# Latex figure (float) alignment
244
#'figure_align': 'htbp',
245
}
246
247
# Grouping the document tree into LaTeX files. List of tuples
248
# (source start file, target name, title,
249
#  author, documentclass [howto, manual, or own class]).
250
latex_documents = [
251
    (master_doc, 'kytos.tex', u'Kytos Documentation',
252
     u'Kytos\' Development Team', 'manual'),
253
]
254
255
# The name of an image file (relative to this directory) to place at the top of
256
# the title page.
257
#latex_logo = None
258
259
# For "manual" documents, if this is true, then toplevel headings are parts,
260
# not chapters.
261
#latex_use_parts = False
262
263
# If true, show page references after internal links.
264
#latex_show_pagerefs = False
265
266
# If true, show URL addresses after external links.
267
#latex_show_urls = False
268
269
# Documents to append as an appendix to all manuals.
270
#latex_appendices = []
271
272
# If false, no module index is generated.
273
#latex_domain_indices = True
274
275
276
# -- Options for manual page output ---------------------------------------
277
278
# One entry per manual page. List of tuples
279
# (source start file, name, description, authors, manual section).
280
man_pages = [
281
    (master_doc, 'kytos', u'Kytos Documentation',
282
     [author], 1)
283
]
284
285
# If true, show URL addresses after external links.
286
#man_show_urls = False
287
288
289
# -- Options for Texinfo output -------------------------------------------
290
291
# Grouping the document tree into Texinfo files. List of tuples
292
# (source start file, target name, title, author,
293
#  dir menu entry, description, category)
294
texinfo_documents = [
295
    (master_doc, 'Kytos', u'Kytos Documentation',
296
     author, 'kytos', 'One line description of project.',
297
     'Miscellaneous'),
298
]
299
300
# Documents to append as an appendix to all manuals.
301
#texinfo_appendices = []
302
303
# If false, no module index is generated.
304
#texinfo_domain_indices = True
305
306
# How to display URL addresses: 'footnote', 'no', or 'inline'.
307
#texinfo_show_urls = 'footnote'
308
309
# If true, do not generate a @detailmenu in the "Top" node's menu.
310
#texinfo_no_detailmenu = False
311
312
# Example configuration for intersphinx: refer to the Python standard library.
313
# Note: links to Python doc only work if you are online
314
intersphinx_mapping = {
315
    'python': ('https://docs.python.org/3', None),
316
    'tutorial': ('https://tutorials.kytos.io', None),
317
    'python-openflow': ('https://docs.kytos.io/python-openflow', None)}
318
319
320
# Napoleon settings from http://www.sphinx-doc.org/en/stable/ext/napoleon.html
321
napoleon_google_docstring = True
322
napoleon_numpy_docstring = False
323
napoleon_include_special_with_doc = False  # Sphinx's default
324
325
# As pylint warns when the public __init__ is not documented (according to a
326
# PEP), we should document __init__ and the option below appends its docstring
327
# to the class'.
328
autoclass_content = 'both'
329
330
# Order methods before attributes/properties on a class
331
autodoc_member_order = 'groupwise'
332
todo_include_todos = True
333
334
rst_epilog = """
335
.. |flow_mod| replace::
336
   :class:`~pyof.v0x01.controller2switch.flow_mod.FlowMod`
337
338
.. |flow_mod_command| replace::
339
   :class:`~pyof.v0x01.controller2switch.flow_mod.FlowModCommand`
340
341
.. |hw_address| replace::
342
   :class:`~pyof.foundation.basic_types.HWAddress`
343
344
.. |features_reply| replace::
345
   :class:`~pyof.v0x01.controller2switch.features_reply.FeaturesReply`
346
347
.. |ip_address| replace::
348
   :class:`~pyof.foundation.basic_types.IPAddress`
349
350
.. |DPID| replace::
351
   :class:`~pyof.foundation.basic_types.DPID`
352
353
.. |list_of_actions| replace::
354
   :class:`~pyof.v0x01.common.action.ListOfActions`
355
356
.. |stats_reply_v0x01| replace::
357
   :class:`~pyof.v0x01.controller2switch.stats_reply.StatsReply`
358
359
.. |action_output| replace::
360
   :class:`~pyof.v0x01.common.action.ActionOutput`
361
362
.. |ethernet| replace::
363
   :class:`~pyof.foundation.network_types.Ethernet`
364
365
.. |port_stats| replace::
366
   :class:`~pyof.v0x01.common.phy_port.PortState`
367
368
.. |port_features| replace::
369
   :class:`~pyof.v0x01.common.phy_port.PortFeatures`
370
371
.. |port_config| replace::
372
   :class:`~pyof.v0x01.common.phy_port.PortConfig`
373
374
.. |desc_stats| replace::
375
   :class:`~pyof.v0x01.controller2switch.common.DescStats`
376
377
.. |flow_wildcards| replace::
378
   :class:`~pyof.v0x01.common.flow_match.FlowWildCards`
379
"""
380