# Command to build the html format of the report
HTML_BUILDER = 'sphinx-build -v -c . -a ' \
'-b html -E ' \
+ '-t html ' \
'-D release={release} ' \
'-D version="{release} report - {date}" ' \
'{working_dir} ' \
# Command to build the pdf format of the report
PDF_BUILDER = 'sphinx-build -v -c . -a ' \
'-b latex -E ' \
+ '-t latex ' \
'-D release={release} ' \
'-D version="{release} report - {date}" ' \
'{working_dir} ' \
convert_plots = "xvfb-run -a wkhtmltopdf {html} {pdf}.pdf"
# Convert PyPLOT graphs in HTML format to PDF.
- plots = get_files(spec.environment["paths"]["DIR[STATIC,VPP]"], "html")
+ plots = get_files(spec.environment["paths"]["DIR[STATIC,VPP]"], "html")
+ plots.extend(get_files(spec.environment["paths"]["DIR[STATIC,DPDK]"],
+ "html"))
for plot in plots:
file_name = "{0}".format(plot.rsplit(".", 1)[0])
cmd = convert_plots.format(html=plot, pdf=file_name)