Created
April 19, 2015 05:30
-
-
Save adipriyantobpn/cc58ba782476932506ee to your computer and use it in GitHub Desktop.
Update Yii2 from public repo, then generate Guide & API documentation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apidoc=/home/adipriyanto/PhpstormProjects/yii2pg/vendor/bin/apidoc | |
par_interactive="--interactive=0" | |
yii_dir=/home/adipriyanto/Documents/sourceCode/repo/yiisoft/yii2 | |
curr_dir=`pwd` | |
echo "# -- Update Yii2 repo" | |
cd $yii_dir | |
echo "cd to " `pwd` | |
echo "git fetch" | |
git fetch | |
echo "git pull" | |
git pull | |
cd $curr_dir | |
echo "cd back to " `pwd` | |
echo "# -- GENERATE Yii2 API from downloaded vendor files" | |
doc_type=api | |
source_dir=/home/adipriyanto/PhpstormProjects/yii2pg/vendor/yiisoft | |
target_dir=/home/adipriyanto/PhpstormProjects/yii2pg/frontend/web/generated-docs/yiisoft_yii2 | |
par_guidePrefix="--guidePrefix=guide-" | |
$apidoc $doc_type $par_interactive $source_dir $target_dir $par_guidePrefix | |
echo "# -- GENERATE Yii2 GUIDE from Yii2 repo" | |
doc_type=guide | |
source_dir=/home/adipriyanto/Documents/sourceCode/repo/yiisoft/yii2/docs/guide/ | |
target_dir=/home/adipriyanto/PhpstormProjects/yii2pg/frontend/web/generated-docs/yiisoft_yii2 | |
par_apiDocs="--apiDocs=." | |
par_guidePrefix="--guidePrefix=guide-" | |
$apidoc $doc_type $par_interactive $source_dir $target_dir $par_apiDocs $par_guidePrefix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment