add ghp-import features to push to github pages easily

This commit is contained in:
Alexis Metaireau 2011-08-19 23:01:01 +02:00
commit 100d94cd12
3 changed files with 39 additions and 1 deletions

View file

@ -55,7 +55,11 @@ ssh_upload: $$(OUTPUTDIR)/index.html
ftp_upload: $$(OUTPUTDIR)/index.html
\tlftp ftp://$$(FTP_USER)@$$(FTP_HOST) -e "mirror -R $$(OUTPUT_DIR)/* $$(FTP_TARGET_DIR) ; quit"
.PHONY: html help clean ftp_upload ssh_upload dropbox_upload
github: $$(OUTPUTDIR)/index.html
\tghp-import $$(OUTPUTDIR)
\tgit push origin gh-pages
.PHONY: html help clean ftp_upload ssh_upload dropbox_upload github
''',
'pelican.conf.py': '''#!/usr/bin/env python