Skip to content

Commit

Permalink
Fabfile tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed May 1, 2009
1 parent 3427553 commit e8c0ee6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions fabfile.py
Expand Up @@ -2,7 +2,8 @@
Fabric's own fabfile.
"""

from fabric.operations import local, require, prompt
from fabric.api import *
from fabric.contrib import rsync_project


#
Expand All @@ -18,15 +19,22 @@ def test():
print(local('nosetests -sv', show_stderr=True))


def make_docs():
def build_docs():
"""
Generate the Sphinx documentation
"""
print(local('cd docs && make clean html'))
print(local('cd docs && make clean html', show_stderr=True))


@hosts('jforcier@fabfile.org')
def push_docs():
build_docs()
rsync_project('/var/www/fabfile/', 'docs/_build/html/', delete=True)



#
# Older stuff that need to be updated or removed
# Older stuff that needs to be updated or removed
#


Expand Down

0 comments on commit e8c0ee6

Please sign in to comment.