Skip to content

Commit d3666f0

Browse files
committed
fix(docs): add index.html redirect to fix GitHub Pages 404 error
Creates a root index.html file that automatically redirects visitors from the GitHub Pages root URL to the actual Rust documentation at openprot/index.html. This resolves the 404 error when accessing the documentation site at https://openprot.github.io/openprot/
1 parent ff3fea6 commit d3666f0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/docs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@ jobs:
4343
- name: Build documentation
4444
run: cargo doc --all-features --no-deps --workspace
4545

46+
- name: Create index.html redirect for GitHub Pages
47+
run: |
48+
cat > target/doc/index.html << 'EOF'
49+
<!DOCTYPE html>
50+
<html>
51+
<head>
52+
<meta http-equiv="refresh" content="0; url=openprot/">
53+
<title>OpenProt Documentation</title>
54+
</head>
55+
<body>
56+
<p>Redirecting to <a href="openprot/">OpenProt Documentation</a>...</p>
57+
</body>
58+
</html>
59+
EOF
60+
4661
- name: Check for broken links in docs
4762
run: |
4863
cargo install cargo-deadlinks

0 commit comments

Comments
 (0)