diff --git a/docs-new/prepare.sh b/docs-new/prepare.sh index 13819e8cb..e791434ed 100755 --- a/docs-new/prepare.sh +++ b/docs-new/prepare.sh @@ -21,6 +21,11 @@ wget -rp -e robots=off "$share_url" -P "$output_dir" mv "$output_dir/$SHARE_HOST"/* "$output_dir/" rmdir "$output_dir/$SHARE_HOST" +# Rename share/* to share/*.html because GitHub Pages will ask the client to download the files otherwise. +for file in "$output_dir/share"/*; do + mv "$file" "$file.html" +done + # Create home page with redirect index_dest_path="$output_dir/index.html" cp index.template.html "$index_dest_path" diff --git a/docs/share/4yYHqKbLovVX b/docs/share/4yYHqKbLovVX.html similarity index 100% rename from docs/share/4yYHqKbLovVX rename to docs/share/4yYHqKbLovVX.html diff --git a/docs/share/QXCi6Y1SYulw b/docs/share/QXCi6Y1SYulw.html similarity index 100% rename from docs/share/QXCi6Y1SYulw rename to docs/share/QXCi6Y1SYulw.html diff --git a/docs/share/VS22Hq5PBFNf b/docs/share/VS22Hq5PBFNf.html similarity index 100% rename from docs/share/VS22Hq5PBFNf rename to docs/share/VS22Hq5PBFNf.html diff --git a/docs/share/hkrBX8KE1HQl b/docs/share/hkrBX8KE1HQl.html similarity index 100% rename from docs/share/hkrBX8KE1HQl rename to docs/share/hkrBX8KE1HQl.html