Skip to content

Commit

Permalink
do not publish docs to gh-pages now that RTD is setup (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Nov 18, 2016
1 parent 522f8be commit b0b6403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion GeoHealthCheck/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
{% endblock %}
</div>
</div>
<footer><div class="footer text-center">{{ _('Powered by') }} <a href="http://geopython.github.io/GeoHealthCheck">GeoHealthCheck</a> {{ app_version }}</div></footer>
<footer><div class="footer text-center">{{ _('Powered by') }} <a href="http://geohealthcheck.org">GeoHealthCheck</a> {{ app_version }}</div></footer>
<script src="{{ url_for('static', filename='lib/vendor/jquery/jquery.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/vendor/bootstrap/js/bootstrap.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/vendor/raphael/raphael.min.js') }}"></script>
Expand Down
18 changes: 1 addition & 17 deletions pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from urllib2 import urlopen
import zipfile

from paver.easy import (Bunch, call_task, cmdopts, info, needs, options,
from paver.easy import (Bunch, call_task, cmdopts, info, options,
path, pushd, sh, task)

BASEDIR = os.path.abspath(os.path.dirname(__file__))
Expand Down Expand Up @@ -204,22 +204,6 @@ def refresh_docs():
options.base.static_docs))


@task
@needs('refresh_docs')
def publish_docs():
"""publish docs to http://www.geohealthcheck.org/docs via gh-pages"""

with pushd(options.base.tmp):
sh('git clone git@github.com:geopython/GeoHealthCheck.git')
with pushd('GeoHealthCheck'):
sh('git checkout gh-pages')
sh('cp -rp %s/docs/_build/html/* docs' % options.base.home)
sh('git add docs')
sh('git commit -am "update live docs [ci skip]"')
sh('git push origin gh-pages')
shutil.rmtree(options.base.tmp)


@task
def clean():
"""clean environment"""
Expand Down

0 comments on commit b0b6403

Please sign in to comment.