X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77d4f4438608f5a4aac6a30ef317f6d654710351..6caa0f5cd18fe9fb39c207d5f31fa5633479a822:/wxPython/docs/bin/makeapidocs diff --git a/wxPython/docs/bin/makeapidocs b/wxPython/docs/bin/makeapidocs index 27e3d6713a..0daabadb34 100755 --- a/wxPython/docs/bin/makeapidocs +++ b/wxPython/docs/bin/makeapidocs @@ -2,17 +2,22 @@ #---------------------------------------------------------------------- +set -o xtrace + if [ ! -d wxPython ]; then # TODO: make this test more robust echo "Please run this script from the root wxPython directory." exit 1 fi +VERSION=`python -c "import setup;print setup.VERSION"` + +# cleanup old build rm -r docs/api/* +# build the docs export PTYHONPATH=$PWD - -epydoc --name wxPython \ +/opt/python/bin/epydoc --name "wxPython $VERSION" \ --html \ --output docs/api \ --ignore-param-mismatch \ @@ -24,6 +29,7 @@ epydoc --name wxPython \ --url http://wxPython.org/ \ --no-frames \ $* \ + wxversion/wxversion.py \ wx # wx/__init__.py \ @@ -36,11 +42,28 @@ epydoc --name wxPython \ # --docformat epytext \ # --debug \ # --inheritance grouped \ +# --inheritance none \ + + + +python docs/bin/BuildAPIHelpBook.py wxpyapi docs/api # TODO: # 1. Should rebuild the top-level docs too (but we need more of them first!) -# 2. bundle it all up into a tarball -# 3. etc. + +# bundle it all up into a tarball +DEST=wxPython-$VERSION/docs +mkdir -p _build_docs/$DEST +cp -R --link docs/api _build_docs/$DEST +cd _build_docs +rm -f ../dist/wxPython-newdocs-$VERSION.tar.bz2 +tar cf ../dist/wxPython-newdocs-$VERSION.tar $DEST +bzip2 -9 ../dist/wxPython-newdocs-$VERSION.tar + +# Cleanup +cd .. +rm -r _build_docs +