summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-08-31 19:40:22 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-08-31 19:40:22 -0700
commit4a87d4ab8ed873e6450df06512e09f815a276cd8 (patch)
tree4472dadfb724789fedd9b5ef7a293047b256b2ec /lib
parentbf8413379f479ab263748bddd4088b0968777e89 (diff)
downloadspack-4a87d4ab8ed873e6450df06512e09f815a276cd8.tar.gz
spack-4a87d4ab8ed873e6450df06512e09f815a276cd8.tar.bz2
spack-4a87d4ab8ed873e6450df06512e09f815a276cd8.tar.xz
spack-4a87d4ab8ed873e6450df06512e09f815a276cd8.zip
Make gh-pages redirect to readthedocs.io
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>