From 5db499cf565b898e93fc05db20152ce26f56911b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 20 Jul 2024 12:40:03 +0300 Subject: [PATCH] docs: Create home page with redirect --- docs-new/prepare.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs-new/prepare.sh b/docs-new/prepare.sh index bc579ad28..09e8e686e 100755 --- a/docs-new/prepare.sh +++ b/docs-new/prepare.sh @@ -15,4 +15,9 @@ wget -rp -e robots=off "$share_url" -P "$output_dir" # Get rid of the domain in the output folder mv "$output_dir/$SHARE_HOST"/* "$output_dir/" -rmdir "$output_dir/$SHARE_HOST" \ No newline at end of file +rmdir "$output_dir/$SHARE_HOST" + +# Create home page with redirect +index_dest_path="$output_dir/index.html" +cp index.template.html "$index_dest_path" +sed -i "s/{{ROOT_NOTE_ID}}/$ROOT_NOTE_ID/g" "$index_dest_path" \ No newline at end of file