From 1bda997a96051c75cb73d2e4d0f280f314aec5c0 Mon Sep 17 00:00:00 2001 From: karnem <mikhail.karnevskiy@desy.de> Date: Fri, 1 Feb 2019 14:50:44 +0100 Subject: [PATCH] Move Test Results from section to subsection. --- docs/source/conf.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 43dbf24bc..23b13656c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -438,7 +438,7 @@ with open("available_notebooks.rst", "w") as f: f.write("\n\n") # add test results -test_artifact_dir = os.path.realpath("../../tests/artifacts") +test_artefact_dir = os.path.realpath("../../tests/artefacts") from datetime import datetime from dateutil.parser import parse @@ -559,7 +559,7 @@ def sorted_dir(folder): header = """ Test Results -************ +++++++++++++ Results are organized by git commit, and sorted descending by date. @@ -575,7 +575,7 @@ if not os.path.exists("./test_rsts"): with open("test_results.rst", "w") as f: f.write(header) - for commit, modtime in sorted_dir(test_artifact_dir): + for commit, modtime in sorted_dir(test_artefact_dir): with open("./test_rsts/{}.rst".format(commit), "w") as fr: rst = [".. include:: roles.rst"] rst += [""] @@ -585,7 +585,7 @@ with open("test_results.rst", "w") as f: fr.write("\n".join(rst)) # copy reports - pdfs = glob.glob("{}/{}/*/*.pdf".format(test_artifact_dir, commit)) + pdfs = glob.glob("{}/{}/*/*.pdf".format(test_artefact_dir, commit)) if not os.path.exists("./_static/reports/{}".format(commit)): os.makedirs("./_static/reports/{}".format(commit)) reports = {} @@ -598,7 +598,7 @@ with open("test_results.rst", "w") as f: rlist.append((rname, "../_static/reports/{}".format(ppath))) reports[rloc] = rlist - xmls = glob.glob("{}/{}/*/TEST*.xml".format(test_artifact_dir, commit)) + xmls = glob.glob("{}/{}/*/TEST*.xml".format(test_artefact_dir, commit)) for xml in xmls: rloc = xml.split("/")[-2] with open(xml, "r") as xf: @@ -608,4 +608,4 @@ with open("test_results.rst", "w") as f: f.write(" test_rsts/{}\n".format(commit)) def setup(app): - app.add_stylesheet('css/test_decorators.css') \ No newline at end of file + app.add_stylesheet('css/test_decorators.css') -- GitLab