diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-01-09 16:35:46 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-01-09 16:35:46 +0100 |
commit | ad746bd686c7dfe288760989755a261fe8bf2dc8 (patch) | |
tree | 9cf3566c63d814030bdad3fcbe2dd7c94b66ce97 | |
parent | 0b5d531f319ad05027d6c17f0b8bca2d5da572b5 (diff) | |
download | spack-ad746bd686c7dfe288760989755a261fe8bf2dc8.tar.gz spack-ad746bd686c7dfe288760989755a261fe8bf2dc8.tar.bz2 spack-ad746bd686c7dfe288760989755a261fe8bf2dc8.tar.xz spack-ad746bd686c7dfe288760989755a261fe8bf2dc8.zip |
Add a rule for automatically creating gh-pages from html docs.
-rw-r--r-- | lib/spack/docs/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/spack/docs/Makefile b/lib/spack/docs/Makefile index 0781fcb8ad..8762fa06b0 100644 --- a/lib/spack/docs/Makefile +++ b/lib/spack/docs/Makefile @@ -21,6 +21,20 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . all: html +# +# This creates a git repository and commits generated html docs. +# It them pushes the new branch into THIS repository as gh-pages. +# +gh-pages: _build/html + root="$$(git rev-parse --show-toplevel)" && \ + cd _build/html && \ + rm -rf .git && \ + git init && \ + git add . && \ + git commit -m "Initial commit" && \ + 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 |