Revision dc0671c0 fabfile.py
b/fabfile.py | ||
---|---|---|
225 | 225 |
def uploadtars(): |
226 | 226 |
put("packages/*.tar.gz", 'www/pypi/') |
227 | 227 |
|
228 |
|
|
229 |
def cleandocs(): |
|
230 |
""" |
|
231 |
Remove _build directories for each doc project |
|
232 |
""" |
|
233 |
|
|
234 |
# snf-docs contains conf.py in root directory |
|
235 |
if os.path.exists("snf-docs/docs/_build"): |
|
236 |
local("rm -r snf-docs/docs/_build") |
|
237 |
|
|
238 |
for p in env.packages: |
|
239 |
buildpth = os.path.join(package_root(p), 'docs', '_build') |
|
240 |
if os.path.exists(buildpth): |
|
241 |
local('rm -r %s' % buildpth) |
|
242 |
|
|
243 |
|
|
244 |
def builddocs(): |
|
245 |
""" |
|
246 |
Run sphinx builder for each project separately |
|
247 |
""" |
|
248 |
builddocs_cmd = "sphinx-build -b html -d _build/doctrees . _build/html" |
|
249 |
|
|
250 |
# snf-docs contains conf.py in root directory |
|
251 |
with lcd("snf-docs"): |
|
252 |
local(builddocs_cmd) |
|
253 |
|
|
254 |
for p in env.packages: |
|
255 |
info("Building %s docs" % p) |
|
256 |
docspth = os.path.join(package_root(p), 'docs') |
|
257 |
if os.path.exists(docspth): |
|
258 |
with lcd(docspth): |
|
259 |
local(builddocs_cmd) |
|
260 |
|
Also available in: Unified diff