Skip to content

Commit d518536

Browse files
committed
Added a "make zipfile" target for pythonhosted.org doc hosting.
1 parent 6f11be6 commit d518536

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
_build/
2+
docs.zip

docs/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
PYTHON = python
9+
ZIP = zip
910
BUILDDIR = _build
1011

1112
# User-friendly check for sphinx-build
@@ -56,6 +57,9 @@ help:
5657
clean:
5758
rm -rf $(BUILDDIR)/*
5859

60+
zipfile:
61+
cd $(BUILDDIR)/dirhtml; $(ZIP) -r -D -o ../../docs.zip .
62+
5963
html:
6064
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
6165
@echo

0 commit comments

Comments
 (0)