Skip to content

Commit dd56b87

Browse files
committed
Automate pages deployment
Assumes a git remote is set up named "pages". Do git remote add pages https://github.com/Python-Markdown/Python-Markdown.github.io.git ... before running `make deploy` the first time.
1 parent 87ca5f6 commit dd56b87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ install:
2222
deploy:
2323
python setup.py sdist --manifest-only
2424
python setup.py sdist --formats zip,gztar upload
25+
mkdocs gh-deploy -r pages -b master
2526

2627
.PHONY : build
2728
build:
@@ -36,7 +37,6 @@ build-win:
3637
.PHONY : docs
3738
docs:
3839
mkdocs build --clean
39-
cd site && zip -r ../docs.zip .
4040

4141
.PHONY : test
4242
test:
@@ -62,4 +62,5 @@ clean:
6262
rm -rf build
6363
rm -rf dist
6464
rm -rf tmp
65+
rm -rf site
6566
# git clean -dfx'

0 commit comments

Comments
 (0)