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

Commit 4f5fa9f

Browse files
committed
docs: Deploy .html files for GitHub Pages
1 parent d381ef5 commit 4f5fa9f

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

docs-new/prepare.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ wget -rp -e robots=off "$share_url" -P "$output_dir"
2121
mv "$output_dir/$SHARE_HOST"/* "$output_dir/"
2222
rmdir "$output_dir/$SHARE_HOST"
2323

24+
# Rename share/* to share/*.html because GitHub Pages will ask the client to download the files otherwise.
25+
for file in "$output_dir/share"/*; do
26+
mv "$file" "$file.html"
27+
done
28+
2429
# Create home page with redirect
2530
index_dest_path="$output_dir/index.html"
2631
cp index.template.html "$index_dest_path"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)