Commit 532a12c3 by Gabriel Falcão

automated docs deployment

parent 9e34bff4
...@@ -11,7 +11,22 @@ functional: ...@@ -11,7 +11,22 @@ functional:
doctest: doctest:
@cd docs && make doctest @cd docs && make doctest
documentation:
@cd docs && make html
clean: clean:
@echo -n "Cleaning up files that are already in .gitignore... " @echo -n "Cleaning up files that are already in .gitignore... "
@for pattern in `cat .gitignore`; do find . -name "$$pattern" -exec rm -rf {} \;; done @for pattern in `cat .gitignore`; do find . -name "$$pattern" -exec rm -rf {} \;; done
@echo "OK!" @echo "OK!"
deploy-documentation: documentation
@printf 'Removing current documentation ...'
@ssh gabrielfalcao@gabrielfalcao.com rm -rf lettuce.it/public/*
@echo "DONE!"
@printf 'Deploying documentation to http://lettuce.it ...'
@cd ./docs/_build/html && tar -zcp * | ssh gabrielfalcao@gabrielfalcao.com "tar zxp -C ./lettuce.it/public/"
@echo "DONE!"
deploy: deploy-documentation
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment