summaryrefslogtreecommitdiff
path: root/regen-docs
diff options
context:
space:
mode:
authormatt <matt@xcolour.net>2013-01-28 11:32:18 -0500
committermatt <matt@xcolour.net>2013-01-28 11:32:18 -0500
commit1afcb52d73271bbbd78f885451aa1b0e78c09871 (patch)
tree9145840d6036fcbc0b6647c88f679a567fa8c54d /regen-docs
downloadpaste-git-1afcb52d73271bbbd78f885451aa1b0e78c09871.tar.gz
Import StringIO so it can be used.stringio
Diffstat (limited to 'regen-docs')
-rwxr-xr-xregen-docs9
1 files changed, 9 insertions, 0 deletions
diff --git a/regen-docs b/regen-docs
new file mode 100755
index 0000000..c98763d
--- /dev/null
+++ b/regen-docs
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+mkdir -p docs/_static docs/_build
+sphinx-build -E -b html docs/ docs/_build || exit 1
+if [ "$1" = "publish" ] ; then
+ cd docs/
+ echo "Uploading files..."
+ scp -r _build/* ianb@webwareforpython.org:/home/paste/htdocs/
+fi