From 4a87d4ab8ed873e6450df06512e09f815a276cd8 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Wed, 31 Aug 2016 19:40:22 -0700 Subject: Make gh-pages redirect to readthedocs.io --- lib/spack/docs/Makefile | 13 ++++++++++++- lib/spack/docs/_gh_pages_redirect/.nojekyll | 0 lib/spack/docs/_gh_pages_redirect/index.html | 10 ++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 lib/spack/docs/_gh_pages_redirect/.nojekyll create mode 100644 lib/spack/docs/_gh_pages_redirect/index.html diff --git a/lib/spack/docs/Makefile b/lib/spack/docs/Makefile index b0842373ab..95d26041b7 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 0000000000..e69de29bb2 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 0000000000..9c456abdaa --- /dev/null +++ b/lib/spack/docs/_gh_pages_redirect/index.html @@ -0,0 +1,10 @@ + + + + + +

+ This page has moved to http://spack.readthedocs.io/ +

+ + -- cgit v1.2.3-60-g2f50