X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ed01680947eba9dd73cc9597b95f64552262a6e..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/docs/bin/makeapidocs diff --git a/wxPython/docs/bin/makeapidocs b/wxPython/docs/bin/makeapidocs index de3666f460..6f208fc975 100755 --- a/wxPython/docs/bin/makeapidocs +++ b/wxPython/docs/bin/makeapidocs @@ -7,9 +7,14 @@ if [ ! -d wxPython ]; then # TODO: make this test more robust 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 \ --html \ --output docs/api \ @@ -19,17 +24,39 @@ epydoc --name wxPython \ --no-private \ --css docs/wxPython-epydoc.css \ --docformat restructuredtext \ + --url http://wxPython.org/ \ + --no-frames \ $* \ - ./wx/__init__.py + wxversion/wxversion.py \ + wx + +# wx/__init__.py \ + +# wx/calendar.py wx/grid.py wx/html.py wx/wizard.py \ +# wx/gizmos.py wx/ogl.py wx/stc.py wx/xrc.py + # --no-frames \ # --docformat epytext \ # --debug \ +# --inheritance grouped \ # 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.gz +tar cf ../dist/wxPython-newdocs-$VERSION.tar $DEST +gzip -9 ../dist/wxPython-newdocs-$VERSION.tar + +# Cleanup +cd .. +rm -r _build_docs +