Explorar el Código

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

Jan Holthuis hace 5 años
padre
commit
2147202940
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  1. 3 0
      .travis.yml
  2. 9 0
      assets/gh-pages-redirect.html

+ 3 - 0
.travis.yml

@@ -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

+ 9 - 0
assets/gh-pages-redirect.html

@@ -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>