Skip to content

Commit a564d02

Browse files
committed
add rules for updating website
1 parent e733a71 commit a564d02

File tree

3 files changed

+17
-196
lines changed

3 files changed

+17
-196
lines changed

.hgignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ virtualenvwrapper.egg-info
66
trace.txt
77
dist
88
docs/build
9+
docs/website
910
*.pyc
1011
sphinx/web/templates/base.html
1112
tests/catch_output

Makefile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1+
# Get the version of the app. This is used in the doc build.
12
export VERSION=$(shell python setup.py --version)
23

4+
# Default target is to build the source distribution.
35
.PHONY: sdist
46
sdist: html
57
python setup.py sdist
68

9+
# Documentation
710
.PHONY: html
811
html:
912
rm -rf virtualenvwrapper/docs
10-
(cd docs && $(MAKE) html)
13+
(cd docs && $(MAKE) html SPHINXOPTS="-c sphinx/pkg")
1114
cp -r docs/build/html virtualenvwrapper/docs
1215

16+
# Website copy of documentation
1317
.PHONY: website
14-
website:
18+
website: docs/sphinx/web/templates/base.html
19+
rm -rf docs/website
20+
(cd docs && $(MAKE) html SPHINXOPTS="-c sphinx/web" BUILDDIR="website")
1521

22+
installwebsite: website
23+
(cd docs/website/html && rsync --rsh=ssh --archive --delete --verbose . www.doughellmann.com:/var/www/doughellmann/DocumentRoot/docs/virtualenvwrapper2/)
24+
25+
# Copy the base template from my website build directory
26+
docs/sphinx/web/templates/base.html: ~/Devel/doughellmann/doughellmann/templates/base.html
27+
cp $< $@
28+
29+
# Testing
1630
TEST_SCRIPTS=$(wildcard tests/test*.sh)
1731

1832
.PHONY: test test-bash test-sh test-zsh test-loop

docs/source/conf.py

Lines changed: 0 additions & 194 deletions
This file was deleted.

0 commit comments

Comments
 (0)