forked from softlayer/softlayer-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfabfile.py
More file actions
25 lines (21 loc) · 763 Bytes
/
fabfile.py
File metadata and controls
25 lines (21 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from fabric.api import local, lcd, settings
def publish_docs():
" Publishes docs to github via github pages. "
with lcd('docs'):
with settings(warn_only=True):
local('rm -rf _build/html')
local('mkdir -p _build/html')
local('git clone -b gh-pages '
'[email protected]:softlayer/softlayer-api-python-client.git '
'_build/html')
local('make html')
with lcd('_build/html'):
local('touch .nojekyll')
local('git add .nojekyll')
local('git add -A')
local('git commit -m "Documentation Build"')
local('git push origin gh-pages')
def make_html():
"Build HTML docs"
with lcd('docs'):
local('make html')