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