Skip to content

Commit 0b9570a

Browse files
author
y-p
committed
BLD: add zip_html command to docs make.py
1 parent ae2dd93 commit 0b9570a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/make.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ def html():
103103
if os.system('sphinx-build -P -b html -d build/doctrees '
104104
'source build/html'):
105105
raise SystemExit("Building HTML failed.")
106+
try:
107+
# remove stale file
108+
os.system('cd build; rm -f html/pandas.zip;')
109+
except:
110+
pass
111+
112+
def zip_html():
106113
try:
107114
print("\nZipping up HTML docs...")
108115
# just in case the wonky build box doesn't have zip
@@ -242,6 +249,7 @@ def _get_config():
242249

243250
funcd = {
244251
'html': html,
252+
'zip_html': zip_html,
245253
'upload_dev': upload_dev,
246254
'upload_stable': upload_stable,
247255
'upload_dev_pdf': upload_dev_pdf,

0 commit comments

Comments
 (0)