Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a redirect for the base page rendering #145

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bin/update-gh-pages-documentation-site
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ swift package \
# Save the current commit we've just built documentation from in a variable
CURRENT_COMMIT_HASH=`git rev-parse --short HEAD`

# Copy the redirect file into the 'gh-pages' directory
cp lib/redirect.html gh-pages/docs/index.html

# Commit and push our changes to the gh-pages branch
cd gh-pages
git add docs
Expand Down
10 changes: 10 additions & 0 deletions lib/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>AsyncAlgorithms Documentation</title>
<meta http-equiv = "refresh" content = "0; url = https://apple.github.io/swift-async-algorithms/documentation/asyncalgorithms/" />
</head>
<body>
<p>Redirecting...</p>
</body>
</html>