A Discrete-Event Network Simulator
API
conf.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 #
3 # test documentation build configuration file, created by
4 # sphinx-quickstart on Sun Jun 26 00:00:43 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 # If extensions (or modules to document with autodoc) are in another directory,
16 # add these directories to sys.path here. If the directory is relative to the
17 # documentation root, use os.path.abspath to make it absolute, like shown here.
18 #
19 # import os
20 # import sys
21 # sys.path.insert(0, os.path.abspath('.'))
22 
23 import sys, os
24 
25 # To change default code-block format in Latex to footnotesize (8pt)
26 # Tip from https://stackoverflow.com/questions/9899283/how-do-you-change-the-code-example-font-size-in-latex-pdf-output-with-sphinx/9955928
27 # Note: sizes are \footnotesize (8pt), \small (9pt), and \normalsize (10pt).
28 
29 #from sphinx.highlighting import PygmentsBridge
30 #from pygments.formatters.latex import LatexFormatter
31 #
32 #class CustomLatexFormatter(LatexFormatter):
33 # def __init__(self, **options):
34 # super(CustomLatexFormatter, self).__init__(**options)
35 # self.verboptions = r"formatcom=\footnotesize"
36 #
37 #PygmentsBridge.latex_formatter = CustomLatexFormatter
38 
39 # -- General configuration ------------------------------------------------
40 
41 # If your documentation needs a minimal Sphinx version, state it here.
42 #
43 # needs_sphinx = '1.0'
44 
45 # Add any Sphinx extension module names here, as strings. They can be
46 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
47 # ones.
48 extensions = ['sphinx.ext.imgmath']
49 
50 # Add any paths that contain templates here, relative to this directory.
51 templates_path = ['_templates']
52 
53 # The suffix(es) of source filenames.
54 # You can specify multiple suffix as a list of string:
55 #
56 # source_suffix = ['.rst', '.md']
57 source_suffix = '.rst'
58 
59 # The encoding of source files.
60 #
61 # source_encoding = 'utf-8-sig'
62 
63 # The master toctree document.
64 master_doc = 'ofswitch13'
65 
66 # General information about the project.
67 project = u'OFSwitch13'
68 author = u'Luciano Jerez Chaves'
69 copyright = u'2023 Computer Networks Laboratory'
70 
71 # The version info for the project you're documenting, acts as replacement for
72 # |version| and |release|, also used in various other places throughout the
73 # built documents.
74 #
75 # The short X.Y version.
76 version = u'5.2.1'
77 # The full version, including alpha/beta/rc tags.
78 release = u'5.2.1'
79 
80 # The language for content autogenerated by Sphinx. Refer to documentation
81 # for a list of supported languages.
82 #
83 # This is also used if you do content translation via gettext catalogs.
84 # Usually you set "language" from the command line for these cases.
85 # language = None
86 
87 # There are two options for replacing |today|: either, you set today to some
88 # non-false value, then it is used:
89 #
90 # today = ''
91 #
92 # Else, today_fmt is used as the format for a strftime call.
93 #
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 # These patterns also affect html_static_path and html_extra_path
99 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
100 
101 # The reST default role (used for this markup: `text`) to use for all
102 # documents.
103 #
104 # default_role = None
105 
106 # If true, '()' will be appended to :func: etc. cross-reference text.
107 #
108 # add_function_parentheses = True
109 
110 # If true, the current module name will be prepended to all description
111 # unit titles (such as .. function::).
112 #
113 # add_module_names = True
114 
115 # If true, sectionauthor and moduleauthor directives will be shown in the
116 # output. They are ignored by default.
117 #
118 # show_authors = False
119 
120 # The name of the Pygments (syntax highlighting) style to use.
121 pygments_style = 'sphinx'
122 
123 # A list of ignored prefixes for module index sorting.
124 # modindex_common_prefix = []
125 
126 # If true, keep warnings as "system message" paragraphs in the built documents.
127 # keep_warnings = False
128 
129 # If true, `todo` and `todoList` produce output, else they produce nothing.
130 todo_include_todos = False
131 
132 
133 # -- Options for HTML output ----------------------------------------------
134 
135 # The theme to use for HTML and HTML Help pages. See the documentation for
136 # a list of builtin themes.
137 #
138 html_theme = 'ns3_html_theme'
139 
140 # Theme options are theme-specific and customize the look and feel of a theme
141 # further. For a list of options available for each theme, see the
142 # documentation.
143 #
144 # html_theme_options = {}
145 
146 # Add any paths that contain custom themes here, relative to this directory.
147 html_theme_path = ['../../../../doc/']
148 
149 # The name for this set of Sphinx documents.
150 # "<project> v<release> documentation" by default.
151 #
152 # html_title = 'est vtest'
153 html_title = 'Manual'
154 
155 # A shorter title for the navigation bar. Default is the same as html_title.
156 #
157 # html_short_title = None
158 
159 # The name of an image file (relative to this directory) to place at the top
160 # of the sidebar.
161 #
162 # html_logo = None
163 
164 # The name of an image file (relative to this directory) to use as a favicon of
165 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
166 # pixels large.
167 #
168 # html_favicon = None
169 
170 # Add any paths that contain custom static files (such as style sheets) here,
171 # relative to this directory. They are copied after the builtin static files,
172 # so a file named "default.css" will overwrite the builtin "default.css".
173 # html_static_path = ['_static']
174 
175 # Add any extra paths that contain custom files (such as robots.txt or
176 # .htaccess) here, relative to this directory. These files are copied
177 # directly to the root of the documentation.
178 #
179 # html_extra_path = []
180 
181 # If not None, a 'Last updated on:' timestamp is inserted at every page
182 # bottom, using the given strftime format.
183 # The empty string is equivalent to '%b %d, %Y'.
184 #
185 html_last_updated_fmt = '%b %d, %Y %H:%M'
186 
187 # If true, SmartyPants will be used to convert quotes and dashes to
188 # typographically correct entities.
189 #
190 # html_use_smartypants = True
191 
192 # Custom sidebar templates, maps document names to template names.
193 #
194 # html_sidebars = {}
195 
196 # Additional templates that should be rendered to pages, maps page names to
197 # template names.
198 #
199 # html_additional_pages = {}
200 
201 # If false, no module index is generated.
202 #
203 # html_domain_indices = True
204 
205 # If false, no index is generated.
206 #
207 # html_use_index = True
208 
209 # If true, the index is split into individual pages for each letter.
210 #
211 # html_split_index = False
212 
213 # If true, links to the reST sources are added to the pages.
214 #
215 # html_show_sourcelink = True
216 
217 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
218 #
219 # html_show_sphinx = True
220 
221 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
222 #
223 # html_show_copyright = True
224 
225 # If true, an OpenSearch description file will be output, and all pages will
226 # contain a <link> tag referring to it. The value of this option must be the
227 # base URL from which the finished HTML is served.
228 #
229 # html_use_opensearch = ''
230 
231 # This is the file name suffix for HTML files (e.g. ".xhtml").
232 # html_file_suffix = None
233 
234 # Language to be used for generating the HTML full-text search index.
235 # Sphinx supports the following languages:
236 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
237 # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
238 #
239 # html_search_language = 'en'
240 
241 # A dictionary with options for the search language support, empty by default.
242 # 'ja' uses this config value.
243 # 'zh' user can custom change `jieba` dictionary path.
244 #
245 # html_search_options = {'type': 'default'}
246 
247 # The name of a javascript file (relative to the configuration directory) that
248 # implements a search results scorer. If empty, the default will be used.
249 #
250 # html_search_scorer = 'scorer.js'
251 
252 # Output file base name for HTML help builder.
253 htmlhelp_basename = 'ns-3doc'
254 
255 # -- Options for LaTeX output --------------------------------------------------
256 
257 latex_elements = {
258  # The paper size ('letterpaper' or 'a4paper').
259  #
260  # 'papersize': 'letterpaper',
261 
262  # The font size ('10pt', '11pt' or '12pt').
263  #
264  # 'pointsize': '10pt',
265 
266  # Additional stuff for the LaTeX preamble.
267  #
268  # VerbatimBorderColor: make the box around code samples blend into the background
269  # Tip from https://stackoverflow.com/questions/29403100/how-to-remove-the-box-around-the-code-block-in-restructuredtext-with-sphinx
270  #
271  # sphinxcode is the wrapper around \texttt that sphinx.sty provides.
272  # Redefine it here as needed to change the inline literal font size
273  # (double backquotes) to either \footnotesize (8pt) or \small (9pt)
274  #
275  # See above to change the font size of verbatim code blocks
276  #
277  # 'preamble': '',
278  'preamble': u'''\\usepackage{amssymb}
279  \\definecolor{VerbatimBorderColor}{rgb}{1,1,1}
280  \\renewcommand{\\sphinxcode}[1]{\\texttt{\\small{#1}}}
281 '''
282  # Latex figure (float) alignment
283  #
284  # 'figure_align': 'htbp',
285 }
286 
287 # Grouping the document tree into LaTeX files. List of tuples
288 # (source start file, target name, title,
289 # author, documentclass [howto, manual, or own class]).
290 latex_documents = [
291  ('ofswitch13', 'ofswitch13.tex', u'OFSwitch13 Module Documentation',
292  u'Computer Networks Laboratory at Unicamp, Brazil', 'manual'),
293 ]
294 
295 # The name of an image file (relative to this directory) to place at the top of
296 # the title page.
297 #
298 #latex_logo = None
299 
300 # If true, show page references after internal links.
301 #
302 # latex_show_pagerefs = False
303 
304 # If true, show URL addresses after external links.
305 #
306 # latex_show_urls = False
307 
308 # Documents to append as an appendix to all manuals.
309 #
310 # latex_appendices = []
311 
312 # If false, will not define \strong, \code, \titleref, \crossref ... but only
313 # \sphinxstrong, ..., \sphinxtitleref, ... to help avoid clash with user added
314 # packages.
315 #
316 # latex_keep_old_macro_names = True
317 
318 # If false, no module index is generated.
319 #
320 # latex_domain_indices = True
321 
322 # -- Options for manual page output ---------------------------------------
323 
324 # One entry per manual page. List of tuples
325 # (source start file, name, description, authors, manual section).
326 man_pages = [
327  ('index', 'ns-3-manual', u'ns-3 Manual',
328  [u'ns-3 project'], 1)
329 ]
330 
331 # If true, show URL addresses after external links.
332 #
333 # man_show_urls = False
334 
335 # -- Options for texinfo output ---------------------------------------
336 
337 #texinfo_documents = [
338 # (master_doc, 'test', u'test Documentation',
339 # author, 'test', 'One line description of project.',
340 # 'Miscellaneous'),
341 #]
342 
343 # Documents to append as an appendix to all manuals.
344 #
345 # texinfo_appendices = []
346 
347 # If false, no module index is generated.
348 #
349 # texinfo_domain_indices = True
350 
351 # How to display URL addresses: 'footnote', 'no', or 'inline'.
352 #
353 # texinfo_show_urls = 'footnote'
354 
355 # If true, do not generate a @detailmenu in the "Top" node's menu.
356 #
357 # texinfo_no_detailmenu = False