.travis.yml: Add redirect for GitHub Pages to deployment

This commit is contained in:
Jan Holthuis 2020-03-11 14:17:11 +01:00
parent 235c84d5b2
commit 2147202940
2 changed files with 12 additions and 0 deletions

View file

@ -18,6 +18,9 @@ script:
- python setup.py build sdist bdist_wheel
# Deployment
before_deploy:
- touch html/.nojekyll
- cp assets/gh-pages-redirect.html html/index.html
deploy:
# Deploy documentation
- provider: pages

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Redirecting to https://holzhaus.github.io/sphinx-multiversion/master/</title>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; URL=https://holzhaus.github.io/sphinx-multiversion/master/">
<link rel="canonical" href="https://holzhaus.github.io/sphinx-multiversion/master/">
</head>
</html>