Skip to content

Commit 78b5431

Browse files
author
y-p
committed
DOC: make zipped HTML docs available GH1876
1 parent e86e99c commit 78b5431

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

doc/make.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,14 @@ 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-
106+
try:
107+
print("\nZipping up HTML docs...")
108+
# just in case the wonky build box doesn't have zip
109+
# don't fail this.
110+
os.system('cd build; rm -f html/pandas.zip; zip html/pandas.zip -r -q html/* ')
111+
print("\n")
112+
except:
113+
pass
107114

108115
def latex():
109116
check_build()

doc/source/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ pandas: powerful Python data analysis toolkit
66

77
`PDF Version <pandas.pdf>`__
88

9+
`Zipped HTML <pandas.zip>`__
10+
911
.. module:: pandas
1012

1113
**Date**: |today| **Version**: |version|

0 commit comments

Comments
 (0)