Skip to content

Instantly share code, notes, and snippets.

@zhouyl
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save zhouyl/3ae539e0c1631a62d7b6 to your computer and use it in GitHub Desktop.

Select an option

Save zhouyl/3ae539e0c1631a62d7b6 to your computer and use it in GitHub Desktop.
Generate phpdoc
#!/bin/bash
################################################
#
# phpDocumentor install:
#
# pear channel-discover pear.phpdoc.org
# pear install phpdoc/phpDocumentor
#
################################################
rootdir=$(cd "$(dirname "$0")"; cd ..; pwd)
### Generate phpDocument
codedir=app/bootstrap,app/config,app/controllers,app/functions,app/library,app/models/app/plugins/app/tasks
docdir=$rootdir/docs/phpdoc/
if [ ! -d $docdir ] ; then
mkdir -p $docdir
fi
cd $rootdir
phpdoc -d $codedir -t $docdir --encoding=utf-8 --sourcecode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment