Report: Add wireguard tests
[csit.git] / resources / tools / presentation / sphinx_conf / report / conf.py
1 # -*- coding: utf-8 -*-
2
3 """CSIT report documentation build configuration file
4
5 This file is execfile()d with the current directory set to its
6 containing dir.
7
8 Note that not all possible configuration values are present in this
9 autogenerated file.
10
11 All configuration values have a default; values that are commented out
12 serve to show the default.
13
14 If extensions (or modules to document with autodoc) are in another directory,
15 add these directories to sys.path here. If the directory is relative to the
16 documentation root, use os.path.abspath to make it absolute, like shown here.
17 """
18
19
20 import os
21 import sys
22 import sphinx_rtd_theme
23
24 sys.path.insert(0, os.path.abspath('.'))
25
26 # -- General configuration ------------------------------------------------
27
28 # If your documentation needs a minimal Sphinx version, state it here.
29 #
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     'sphinxcontrib.programoutput',
37     'sphinx.ext.ifconfig',
38     'sphinx_rtd_theme'
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 file names.
45 # You can specify multiple suffix as a list of string:
46 #
47 source_suffix = ['.rst', '.md']
48
49 # The master toctree document.
50 master_doc = 'index'
51
52 # General information about the project.
53 report_week = '46'
54 project = 'FD.io CSIT-2210.{week}'.format(week=report_week)
55 copyright = '2022, FD.io'
56 author = 'FD.io CSIT'
57
58 # The version info for the project yo're documenting, acts as replacement for
59 # |version| and |release|, also used in various other places throughout the
60 # built documents.
61 #
62 # The short X.Y version.
63 # version = ''
64 # The full version, including alpha/beta/rc tags.
65 # release = ''
66
67 rst_epilog = """
68 .. |release-1| replace:: {prev_release}
69 .. |srelease| replace:: {srelease}
70 .. |csit-release| replace:: CSIT-{csitrelease}
71 .. |csit-release-1| replace:: CSIT-{csit_prev_release}
72 .. |vpp-release| replace:: VPP-{vpprelease} release
73 .. |vpp-release-1| replace:: VPP-{vpp_prev_release} release
74 .. |dpdk-release| replace:: DPDK-{dpdkrelease}
75 .. |dpdk-release-1| replace:: DPDK-{dpdk_prev_release}
76 .. |trex-release| replace:: TRex {trex_version}
77
78 .. _pdf version of this report: https://s3-docs.fd.io/csit/{release}/report/_static/archive/csit_{release}.{report_week}.pdf
79 .. _tag documentation rst file: https://git.fd.io/csit/tree/docs/tag_documentation.rst?h={release}
80 .. _TRex driver: https://git.fd.io/csit/tree/GPL/tools/trex/trex_stl_profile.py?h={release}
81 .. _CSIT Performance Tests Documentation: https://s3-docs.fd.io/csit/{release}/docs/index.html
82 .. _VPP test framework documentation: https://docs.fd.io/vpp/{vpprelease}/vpp_make_test/html/
83 .. _FD.io CSIT testbeds - Atom Snowridge: https://git.fd.io/csit/tree/docs/lab/testbeds_sm_snr_hw_bios_cfg.md?h={release}
84 .. _FD.io CSIT testbeds - Atom Denverton: https://git.fd.io/csit/tree/docs/lab/testbeds_sm_dnv_hw_bios_cfg.md?h={release}
85 .. _FD.io CSIT testbeds - EPYC Zen2: https://git.fd.io/csit/tree/docs/lab/testbeds_sm_zn2_hw_bios_cfg.md?h={release}
86 .. _FD.io CSIT testbeds - Xeon Ice Lake: https://git.fd.io/csit/tree/docs/lab/testbeds_sm_icx_hw_bios_cfg.md?h={release}
87 .. _FD.io CSIT testbeds - Xeon Cascade Lake: https://git.fd.io/csit/tree/docs/lab/testbeds_sm_clx_hw_bios_cfg.md?h={release}
88 .. _Ansible inventory - hosts: https://git.fd.io/csit/tree/fdio.infra.ansible/inventories/lf_inventory/host_vars?h={release}
89 .. _build logs from FD.io trex performance job 1n-aws: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-trex-perf-report-iterative-{srelease}-1n-aws
90 .. _build logs from FD.io trex performance job 2n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-trex-perf-report-iterative-{srelease}-2n-icx
91 .. _build logs from FD.io dpdk performance job 2n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-iterative-{srelease}-2n-icx
92 .. _build logs from FD.io dpdk performance job 3n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-iterative-{srelease}-3n-icx
93 .. _build logs from FD.io dpdk performance job 2n-clx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-iterative-{srelease}-2n-clx
94 .. _build logs from FD.io dpdk performance job 2n-dnv: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-iterative-{srelease}-2n-dnv
95 .. _build logs from FD.io dpdk performance job 3n-dnv: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-iterative-{srelease}-3n-dnv
96 .. _build logs from FD.io dpdk performance job 3n-alt: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-iterative-{srelease}-3n-alt
97 .. _build logs from FD.io dpdk performance job 3n-tsh: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-iterative-{srelease}-3n-tsh
98 .. _build logs from FD.io dpdk performance job 2n-tx2: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-iterative-{srelease}-2n-tx2
99 .. _build logs from FD.io dpdk performance job 2n-zn2: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-iterative-{srelease}-2n-zn2
100 .. _build logs from FD.io vpp performance job 3n-alt: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-3n-alt
101 .. _build logs from FD.io vpp performance job 3n-tsh: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-3n-tsh
102 .. _build logs from FD.io vpp performance job 2n-tx2: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-2n-tx2
103 .. _build logs from FD.io vpp performance job 3n-dnv: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-3n-dnv
104 .. _build logs from FD.io vpp performance job 2n-dnv: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-2n-dnv
105 .. _build logs from FD.io vpp performance job 2n-clx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-2n-clx
106 .. _build logs from FD.io vpp performance job 2n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-2n-icx
107 .. _build logs from FD.io vpp performance job 3n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-3n-icx
108 .. _build logs from FD.io vpp performance job 2n-zn2: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-2n-zn2
109 .. _build logs from FD.io vpp performance job 3n-aws: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-3n-aws
110 .. _build logs from FD.io vpp performance job 2n-aws: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-iterative-{srelease}-2n-aws
111 .. _build logs from FD.io dpdk coverage job 2n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-coverage-{srelease}-2n-icx
112 .. _build logs from FD.io dpdk coverage job 3n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-coverage-{srelease}-3n-icx
113 .. _build logs from FD.io dpdk coverage job 2n-clx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-coverage-{srelease}-2n-clx
114 .. _build logs from FD.io dpdk coverage job 2n-dnv: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-coverage-{srelease}-2n-dnv
115 .. _build logs from FD.io dpdk coverage job 3n-dnv: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-coverage-{srelease}-3n-dnv
116 .. _build logs from FD.io dpdk coverage job 3n-alt: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-coverage-{srelease}-3n-alt
117 .. _build logs from FD.io dpdk coverage job 3n-tsh: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-coverage-{srelease}-3n-tsh
118 .. _build logs from FD.io dpdk coverage job 2n-tx2: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-coverage-{srelease}-2n-tx2
119 .. _build logs from FD.io dpdk coverage job 2n-zn2: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-dpdk-perf-report-coverage-{srelease}-2n-zn2
120 .. _build logs from FD.io trex coverage job 1n-aws: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-trex-perf-report-coverage-{srelease}-1n-aws
121 .. _build logs from FD.io trex coverage job 2n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-trex-perf-report-coverage-{srelease}-2n-icx
122 .. _build logs from FD.io vpp coverage job 3n-alt: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-3n-alt
123 .. _build logs from FD.io vpp coverage job 3n-tsh: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-3n-tsh
124 .. _build logs from FD.io vpp coverage job 2n-tx2: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-2n-tx2
125 .. _build logs from FD.io vpp coverage job 3n-dnv: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-3n-dnv
126 .. _build logs from FD.io vpp coverage job 2n-dnv: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-2n-dnv
127 .. _build logs from FD.io vpp coverage job 2n-clx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-2n-clx
128 .. _build logs from FD.io vpp coverage job 2n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-2n-icx
129 .. _build logs from FD.io vpp coverage job 3n-icx: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-3n-icx
130 .. _build logs from FD.io vpp coverage job 2n-zn2: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-2n-zn2
131 .. _build logs from FD.io vpp coverage job 3n-aws: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-3n-aws
132 .. _build logs from FD.io vpp coverage job 2n-aws: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-perf-report-coverage-{srelease}-2n-aws
133 .. _build logs from FD.io vpp device jobs using Ubuntu: https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-vpp-device-{srelease}-ubuntu2004-1n-skx
134 .. _FD.io VPP compile job: https://jenkins.fd.io/view/vpp/job/vpp-merge-{srelease}-ubuntu2004-x86_64/
135 .. _CSIT Testbed Setup: https://git.fd.io/csit/tree/fdio.infra.ansible?h={release}
136 .. _VPP startup.conf: https://git.fd.io/vpp/tree/src/vpp/conf/startup.conf?h=stable/{srelease}&id={vpp_release_commit_id}
137 """.format(release='rls2210',
138            report_week=report_week,
139            prev_release='rls2206',
140            srelease='2210',
141            csitrelease='2210',
142            csit_prev_release='2206',
143            vpprelease='22.10',
144            vpp_prev_release='22.06',
145            dpdkrelease='22.07',
146            dpdk_prev_release='22.03',
147            sdpdkrelease='22.07',
148            trex_version='v3.00',
149            vpp_release_commit_id='07e0c05e698cf5ffd1e2d2de0296d1907519dc3d')
150
151 # The language for content autogenerated by Sphinx. Refer to documentation
152 # for a list of supported languages.
153 #
154 # This is also used if you do content translation via gettext catalogs.
155 # Usually you set "language" from the command line for these cases.
156 language = 'en'
157
158 # List of patterns, relative to source directory, that match files and
159 # directories to ignore when looking for source files.
160 # This patterns also effect to html_static_path and html_extra_path
161 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
162
163 # The name of the Pygments (syntax highlighting) style to use.
164 pygments_style = 'sphinx'
165
166 # If true, `todo` and `todoList` produce output, else they produce nothing.
167 todo_include_todos = False
168
169 # -- Options for HTML output ----------------------------------------------
170
171 # The theme to use for HTML and HTML Help pages.  See the documentation for
172 # a list of builtin themes.
173 #
174 html_theme = 'sphinx_rtd_theme'
175
176 # Theme options are theme-specific and customize the look and feel of a theme
177 # further.  For a list of options available for each theme, see the
178 # documentation.
179 #
180 html_theme_options = {
181     'analytics_id': '',
182     'analytics_anonymize_ip': False,
183     'logo_only': False,
184     'display_version': True,
185     'prev_next_buttons_location': 'bottom',
186     'style_external_links': False,
187     'vcs_pageview_mode': '',
188     'style_nav_header_background': '#2980b9',
189     # Toc options
190     'collapse_navigation': True,
191     'sticky_navigation': True,
192     'navigation_depth': 4,
193     'includehidden': True,
194     'titles_only': False
195 }
196
197 # Add any paths that contain custom static files (such as style sheets) here,
198 # relative to this directory. They are copied after the builtin static files,
199 # so a file named "default.css" will overwrite the builtin "default.css".
200
201 html_static_path = ['_tmp/src/_static']
202
203 html_context = {
204     'css_files': [
205         '_static/css/theme.css',
206         '_static/css/badge_only.css',
207         # overrides for wide tables in RTD theme
208         '_static/theme_overrides.css',
209     ]
210 }
211
212 # If false, no module index is generated.
213 html_domain_indices = True
214
215 # If false, no index is generated.
216 html_use_index = True
217
218 # If true, the index is split into individual pages for each letter.
219 html_split_index = False
220
221 # -- Options for LaTeX output ---------------------------------------------
222
223 latex_engine = 'pdflatex'
224
225 latex_elements = {
226     # The paper size ('letterpaper' or 'a4paper').
227     #
228     'papersize': 'a4paper',
229
230     # The font size ('10pt', '11pt' or '12pt').
231     #
232     #'pointsize': '10pt',
233
234     # Additional stuff for the LaTeX preamble.
235     #
236     'preamble': r'''
237      \usepackage{pdfpages}
238      \usepackage{svg}
239      \usepackage{charter}
240      \usepackage[defaultsans]{lato}
241      \usepackage{inconsolata}
242      \usepackage{csvsimple}
243      \usepackage{longtable}
244      \usepackage{booktabs}
245     ''',
246
247     # Latex figure (float) alignment
248     #
249     'figure_align': 'H',
250
251     # Latex font setup
252     #
253     'fontpkg': r'''
254      \renewcommand{\familydefault}{\sfdefault}
255     ''',
256
257     # Latex other setup
258     #
259     'extraclassoptions': 'openany',
260     'sphinxsetup': r'''
261      TitleColor={RGB}{225,38,40},
262      InnerLinkColor={RGB}{62,62,63},
263      OuterLinkColor={RGB}{225,38,40},
264      shadowsep=0pt,
265      shadowsize=0pt,
266      shadowrule=0pt
267     '''
268 }
269
270 # Grouping the document tree into LaTeX files. List of tuples
271 # (source start file, target name, title,
272 #  author, documentclass [howto, manual, or own class]).
273 latex_documents = [
274     (master_doc, 'csit.tex', 'CSIT REPORT', '', 'manual'),
275 ]
276
277 # The name of an image file (relative to this directory) to place at the top of
278 # the title page.
279 #
280 # latex_logo = 'fdio.pdf'
281
282 # For "manual" documents, if this is true, then toplevel headings are parts,
283 # not chapters.
284 #
285 # latex_use_parts = True
286
287 # If true, show page references after internal links.
288 #
289 latex_show_pagerefs = True
290
291 # If true, show URL addresses after external links.
292 #
293 latex_show_urls = 'footnote'
294
295 # Documents to append as an appendix to all manuals.
296 #
297 # latex_appendices = []
298
299 # It false, will not define \strong, \code,     itleref, \crossref ... but only
300 # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
301 # packages.
302 #
303 # latex_keep_old_macro_names = True
304
305 # If false, no module index is generated.
306 #
307 # latex_domain_indices = True