Skip to content

Commit

Permalink
Add redirection HTML for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BojanSof committed May 11, 2024
1 parent 4f3f871 commit 6c79436
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Sphinx build
run: |
sphinx-multiversion docs _build
- name: Copy redirection index.html
run: |
cp docs/index.html _build/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || startsWith(github.ref, 'refs/tags/') }}
Expand Down
9 changes: 9 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Redirecting to main branch</title>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=./main/index.html">
<link rel="canonical" href="https://bojansof.github.io/pydevdtk/main/index.html">
</head>
</html>

0 comments on commit 6c79436

Please sign in to comment.