summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/Makefile13
-rw-r--r--lib/spack/docs/_gh_pages_redirect/.nojekyll0
-rw-r--r--lib/spack/docs/_gh_pages_redirect/index.html10
3 files changed, 22 insertions, 1 deletions
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
--- /dev/null
+++ b/lib/spack/docs/_gh_pages_redirect/.nojekyll
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 @@
+<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>