diff --git a/.gitignore b/.gitignore index 968dac8ffe376bfaee723495b019e2f2611d362d..e0414e68b011b661a5effeff635a2b45120e1750 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ docs/build docs/source/_notebooks/* docs/source/test_rsts/* docs/source/test_results.rst +docs/source/_static/reports diff --git a/docs/source/conf.py b/docs/source/conf.py index c7af5401aeb0d69d871a065aebc557ec14636535..43dbf24bc9cd9af94f2075165281ccd3d0028670 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -586,16 +586,16 @@ with open("test_results.rst", "w") as f: # copy reports pdfs = glob.glob("{}/{}/*/*.pdf".format(test_artifact_dir, commit)) - if not os.path.exists("./_static/{}".format(commit)): - os.makedirs("./_static/{}".format(commit)) + if not os.path.exists("./_static/reports/{}".format(commit)): + os.makedirs("./_static/reports/{}".format(commit)) reports = {} for pdf in pdfs: ppath = "{}/{}.pdf".format(commit, uuid4()) - shutil.copyfile(pdf, "./_static/{}".format(ppath)) + shutil.copyfile(pdf, "./_static/reports/{}".format(ppath)) rloc = pdf.split("/")[-2] rlist = reports.get(rloc, []) rname = os.path.basename(pdf).split(".")[0] - rlist.append((rname, ppath)) + rlist.append((rname, "../_static/reports/{}".format(ppath))) reports[rloc] = rlist xmls = glob.glob("{}/{}/*/TEST*.xml".format(test_artifact_dir, commit))