]>
Commit | Line | Data |
---|---|---|
9ed01680 RD |
1 | #!/bin/bash |
2 | ||
3 | #---------------------------------------------------------------------- | |
4 | ||
e78e8fdb RD |
5 | set -o xtrace |
6 | ||
9ed01680 RD |
7 | if [ ! -d wxPython ]; then # TODO: make this test more robust |
8 | echo "Please run this script from the root wxPython directory." | |
9 | exit 1 | |
10 | fi | |
11 | ||
bc182509 | 12 | VERSION=`python -c "import setup;print setup.VERSION"` |
9ed01680 | 13 | |
bc182509 RD |
14 | |
15 | # cleanup old build | |
9ed01680 RD |
16 | rm -r docs/api/* |
17 | ||
bc182509 | 18 | # build the docs |
77d4f443 | 19 | export PTYHONPATH=$PWD |
039550b0 | 20 | /opt/python/bin/epydoc --name "wxPython $VERSION" \ |
9ed01680 RD |
21 | --html \ |
22 | --output docs/api \ | |
23 | --ignore-param-mismatch \ | |
24 | --inheritance none \ | |
25 | --no-expand-subpackages \ | |
26 | --no-private \ | |
27 | --css docs/wxPython-epydoc.css \ | |
28 | --docformat restructuredtext \ | |
77d4f443 RD |
29 | --url http://wxPython.org/ \ |
30 | --no-frames \ | |
9ed01680 | 31 | $* \ |
6c75a4cf | 32 | wxversion/wxversion.py \ |
77d4f443 RD |
33 | wx |
34 | ||
35 | # wx/__init__.py \ | |
36 | ||
37 | # wx/calendar.py wx/grid.py wx/html.py wx/wizard.py \ | |
38 | # wx/gizmos.py wx/ogl.py wx/stc.py wx/xrc.py | |
39 | ||
9ed01680 RD |
40 | |
41 | # --no-frames \ | |
42 | # --docformat epytext \ | |
43 | # --debug \ | |
77d4f443 | 44 | # --inheritance grouped \ |
e78e8fdb RD |
45 | # --inheritance none \ |
46 | ||
039550b0 RD |
47 | |
48 | ||
e78e8fdb | 49 | python docs/bin/BuildAPIHelpBook.py wxpyapi docs/api |
9ed01680 RD |
50 | |
51 | ||
52 | # TODO: | |
53 | # 1. Should rebuild the top-level docs too (but we need more of them first!) | |
9ed01680 RD |
54 | |
55 | ||
bc182509 RD |
56 | |
57 | # bundle it all up into a tarball | |
58 | DEST=wxPython-$VERSION/docs | |
59 | mkdir -p _build_docs/$DEST | |
60 | cp -R --link docs/api _build_docs/$DEST | |
61 | cd _build_docs | |
9f4cc34f | 62 | rm -f ../dist/wxPython-newdocs-$VERSION.tar.bz2 |
cb56afc4 | 63 | tar cf ../dist/wxPython-newdocs-$VERSION.tar $DEST |
9f4cc34f | 64 | bzip2 -9 ../dist/wxPython-newdocs-$VERSION.tar |
bc182509 RD |
65 | |
66 | # Cleanup | |
67 | cd .. | |
68 | rm -r _build_docs | |
69 |