Skip to content

Commit

Permalink
docs: Deploy .html files for GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 20, 2024
1 parent d381ef5 commit 4f5fa9f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs-new/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4f5fa9f

Please sign in to comment.