Skip to content

Commit edf7e4b

Browse files
fix: Add redirect from root to documentation page
Fix GitHub Pages main page 404 error by adding a redirect step that overwrites the root index.html with a simple redirect to /Flow/documentation/flow/. This ensures users accessing https://viewfeature.github.io/Flow/ are automatically redirected to the actual documentation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4867847 commit edf7e4b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,26 @@ jobs:
3333
--transform-for-static-hosting \
3434
--hosting-base-path Flow
3535
36+
- name: Fix root index.html redirect
37+
run: |
38+
cat > ./docs/index.html << 'EOF'
39+
<!doctype html>
40+
<html lang="en-US">
41+
<head>
42+
<meta charset="utf-8">
43+
<meta http-equiv="refresh" content="0; url=/Flow/documentation/flow/">
44+
<link rel="canonical" href="/Flow/documentation/flow/">
45+
<title>Redirecting to Flow Documentation</title>
46+
<script>
47+
window.location.href = "/Flow/documentation/flow/";
48+
</script>
49+
</head>
50+
<body>
51+
<p>If you are not redirected automatically, please <a href="/Flow/documentation/flow/">click here</a>.</p>
52+
</body>
53+
</html>
54+
EOF
55+
3656
- name: Upload artifact
3757
uses: actions/upload-pages-artifact@v3
3858
with:

0 commit comments

Comments
 (0)