Make gh-pages redirect to readthedocs.io
This commit is contained in:
parent
bf8413379f
commit
4a87d4ab8e
@ -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:
|
||||||
|
0
lib/spack/docs/_gh_pages_redirect/.nojekyll
Normal file
0
lib/spack/docs/_gh_pages_redirect/.nojekyll
Normal file
10
lib/spack/docs/_gh_pages_redirect/index.html
Normal file
10
lib/spack/docs/_gh_pages_redirect/index.html
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user