diff --git a/lib/spack/docs/Makefile b/lib/spack/docs/Makefile index b0842373ab274414330abfb06d53814b2bc5611b..95d26041b78aca24e764cae725a1edf0b9ae6ceb 100644 --- a/lib/spack/docs/Makefile +++ b/lib/spack/docs/Makefile @@ -40,9 +40,20 @@ gh-pages: _build/html git push -f $$root master:gh-pages && \ rm -rf .git +# This version makes gh-pages into a single page that redirects +# to spack.readthedocs.io +gh-pages-redirect: + root="$$(git rev-parse --show-toplevel)" && \ + cd _gh_pages_redirect && \ + rm -rf .git && \ + git init && \ + git add . && \ + git commit -m "Spack Documentation" && \ + git push -f $$root master:gh-pages && \ + rm -rf .git + upload: rsync -avz --rsh=ssh --delete _build/html/ cab:/usr/global/web-pages/lc/www/adept/docs/spack - git push -f origin gh-pages git push -f github gh-pages apidoc: diff --git a/lib/spack/docs/_gh_pages_redirect/.nojekyll b/lib/spack/docs/_gh_pages_redirect/.nojekyll new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/lib/spack/docs/_gh_pages_redirect/index.html b/lib/spack/docs/_gh_pages_redirect/index.html new file mode 100644 index 0000000000000000000000000000000000000000..9c456abdaa21cde1ecf910eaa2bc1133e54c9cc6 --- /dev/null +++ b/lib/spack/docs/_gh_pages_redirect/index.html @@ -0,0 +1,10 @@ +<html> + <head> + <meta http-equiv="refresh" content="0; url=http://spack.readthedocs.io/" /> + </head> + <body> + <p> + This page has moved to <a href="http://spack.readthedocs.io/">http://spack.readthedocs.io/</a> + </p> + </body> +</html>