Skip to content
Snippets Groups Projects
Commit 4a87d4ab authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Make gh-pages redirect to readthedocs.io

parent bf841337
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,20 @@ gh-pages: _build/html ...@@ -40,9 +40,20 @@ gh-pages: _build/html
git push -f $$root master:gh-pages && \ git push -f $$root master:gh-pages && \
rm -rf .git 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: upload:
rsync -avz --rsh=ssh --delete _build/html/ cab:/usr/global/web-pages/lc/www/adept/docs/spack 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 git push -f github gh-pages
apidoc: apidoc:
......
<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment