iflrandevu/rsc/code-doc.sh

11 lines
459 B
Bash
Raw Normal View History

#!bin/bash
2015-01-22 00:17:16 +02:00
cd ${0%/*}
2015-01-22 00:17:16 +02:00
# Generate PHP Documentation (requires phpdoc in /usr/bin directory).
rm -rf "../doc/code/php/*"
phpdoc -d "../src/application/controllers,../src/application/models,../src/application/libraries" -t "../doc/code/php" -i "*libraries/external/*"
find "../doc/code/php" -name "phpdoc-cache*" -delete
2015-01-22 00:17:16 +02:00
# Generate JS Documentation (requires jsdoc in nodejs environment).
rm -rf "../doc/code/js/*"
jsdoc "../src/assets/js" -d "../doc/code/js"