Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 5db499c

Browse files
committed
docs: Create home page with redirect
1 parent bfab6b4 commit 5db499c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs-new/prepare.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ wget -rp -e robots=off "$share_url" -P "$output_dir"
1515

1616
# Get rid of the domain in the output folder
1717
mv "$output_dir/$SHARE_HOST"/* "$output_dir/"
18-
rmdir "$output_dir/$SHARE_HOST"
18+
rmdir "$output_dir/$SHARE_HOST"
19+
20+
# Create home page with redirect
21+
index_dest_path="$output_dir/index.html"
22+
cp index.template.html "$index_dest_path"
23+
sed -i "s/{{ROOT_NOTE_ID}}/$ROOT_NOTE_ID/g" "$index_dest_path"

0 commit comments

Comments
 (0)