From 571f6283016ae7721c7da2d2bc3447bc8f817ecc Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 10 Oct 2023 14:11:47 +0200 Subject: [PATCH] [T,web] ipynb notebooks to web conversion in build dir. Was done in source dir. Now is in line with jupytext notebooks. --- Tests/Data/Notebooks/testrunner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/Data/Notebooks/testrunner.py b/Tests/Data/Notebooks/testrunner.py index c6a2c62b688..d2a92a12a6f 100644 --- a/Tests/Data/Notebooks/testrunner.py +++ b/Tests/Data/Notebooks/testrunner.py @@ -36,6 +36,7 @@ def save_to_website(exec_notebook_file, web_path): "'web_subsection'!" ) output_path = os.path.join(output_path, parsed_frontmatter["web_subsection"]) + output_path = Path(build_dir) / (Path("web/content") / Path(output_path)) else: print( f"Warning: {exec_notebook_file} does not contain a RAW cell as its first " @@ -87,6 +88,7 @@ ogs_source_path = os.path.abspath(os.path.join(testrunner_script_path, "../../.. if "OGS_DATA_DIR" not in os.environ: os.environ["OGS_DATA_DIR"] = os.path.join(ogs_source_path, "Tests/Data") os.makedirs(args.out, exist_ok=True) +build_dir = Path(args.out).parent.parent success = True for notebook_file_path in args.notebooks: -- GitLab