diff --git a/docs/source/conf.py b/docs/source/conf.py index 43dbf24bc9cd9af94f2075165281ccd3d0028670..23b13656ce551cd19d13bcbc662a3e39dd5640af 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')