From b876dec125eff539f016156a44f62b72e6485b68 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Fri, 9 Dec 2022 17:48:38 +0100
Subject: [PATCH] [nb,web] Small fixes.

---
 Tests/Data/Notebooks/testrunner.py         | 7 ++++---
 web/content/docs/benchmarks/th2m/_index.md | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Tests/Data/Notebooks/testrunner.py b/Tests/Data/Notebooks/testrunner.py
index 90adb61ae34..2c0186145e2 100644
--- a/Tests/Data/Notebooks/testrunner.py
+++ b/Tests/Data/Notebooks/testrunner.py
@@ -4,6 +4,7 @@ from nbclient.exceptions import DeadKernelError
 from nbconvert import HTMLExporter
 import argparse
 import os
+import shutil
 import sys
 from timeit import default_timer as timer
 from datetime import timedelta
@@ -52,14 +53,14 @@ def save_to_website(exec_notebook_file, web_path):
             web_path,
             "content",
             output_path,
-            os.path.splitext(os.path.basename(exec_notebook_file))[0],
+            os.path.splitext(os.path.basename(exec_notebook_file))[0].lower(),
             subfolder,
         )
         if os.path.exists(figures_path) and not os.path.exists(symlink_figures_path):
             print(
-                f"{subfolder} folder detected, symlink {figures_path} to {symlink_figures_path}"
+                f"{subfolder} folder detected, copying {figures_path} to {symlink_figures_path}"
             )
-            os.symlink(figures_path, symlink_figures_path)
+            shutil.copytree(figures_path, symlink_figures_path)
 
 
 # Script arguments
diff --git a/web/content/docs/benchmarks/th2m/_index.md b/web/content/docs/benchmarks/th2m/_index.md
index 29e5bb4fb5d..a9508abfe86 100644
--- a/web/content/docs/benchmarks/th2m/_index.md
+++ b/web/content/docs/benchmarks/th2m/_index.md
@@ -9,5 +9,5 @@ featured = true
 
 ## Benchmark hierarchy
 
-Some of the collected benchmarks for the TH2M process can be accessed here. Since fully coupled benchmarks are very rare, and since the TH2M process is rather complex, part of the benchmark hierarchy presented and described in Grunwald et al [2020]({{< relref "publications/paper.md#grunwald2020">}}) and [2022]({{< relref "publications/paper.md#grunwald2020">}}) is provided here.
+Some of the collected benchmarks for the TH2M process can be accessed here. Since fully coupled benchmarks are very rare, and since the TH2M process is rather complex, part of the benchmark hierarchy presented and described in Grunwald et al [2020]({{< relref "publications/paper.md#grunwald2020">}}) and [2022]({{< relref "publications/paper.md#grunwald2022">}}) is provided here.
 This hierarchical ordering of test examples reduces the complex system of equations to simpler combinations of the individual physical processes. Each of the reasonable subsets of process combinations is tested against closed-form solutions, the results of physical experiments, or by comparison with other codes.
-- 
GitLab