Skip to content

Build your personal knowledge base with Trilium Notes

docs: Create home page with redirect

Elian Doran5db499cf565b
diff --git a/docs-new/prepare.sh b/docs-new/prepare.sh
index bc579ad280..09e8e686e8 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