2015-10-18 19:27:10 +03:00
|
|
|
#!/bin/bash
|
2015-07-07 23:59:22 +03:00
|
|
|
|
2015-10-18 19:27:10 +03:00
|
|
|
#
|
2015-07-20 22:31:46 +03:00
|
|
|
# Bash script for the code documentation generation.
|
2015-10-18 19:27:10 +03:00
|
|
|
#
|
2015-07-07 23:59:22 +03:00
|
|
|
|
2015-10-18 19:27:10 +03:00
|
|
|
rm -rf doc
|
|
|
|
|
|
|
|
mkdir doc
|
2015-07-07 23:59:22 +03:00
|
|
|
mkdir doc/apigen
|
2015-07-07 23:59:49 +03:00
|
|
|
mkdir doc/jsdoc
|
2015-10-04 21:55:11 +03:00
|
|
|
mkdir doc/plato
|
2015-07-07 23:59:22 +03:00
|
|
|
|
2015-10-18 19:27:10 +03:00
|
|
|
php src/application/third_party/bin/apigen generate \
|
2015-07-07 23:59:22 +03:00
|
|
|
-s "src/application/controllers,src/application/models,src/application/libraries" \
|
2015-07-07 23:59:49 +03:00
|
|
|
-d "doc/apigen" --exclude "*external*" --tree --todo --template-theme "bootstrap"
|
|
|
|
|
2015-10-04 21:55:11 +03:00
|
|
|
node node_modules/.bin/jsdoc "src/assets/js" -d "doc/jsdoc"
|
|
|
|
|
2015-10-18 19:27:10 +03:00
|
|
|
node node_modules/.bin/plato -r -d "doc/plato" "src/assets/js"
|