Skip to content

Commit

Permalink
added extension documentation to offline docs
Browse files Browse the repository at this point in the history
issue #275
  • Loading branch information
cebe committed Mar 29, 2018
1 parent f3e4247 commit f090733
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ download-%: DOC_DIR=yii-docs-$(subst download-,,$@)
download-%: LANGUAGES=en $(shell find ${SOURCE_DIR}/docs/ | grep -ioP 'guide-[a-z-]+$$' | cut -c 7-)
download-%: yii-%
cd ${SOURCE_DIR}/docs && ln -sf guide guide-en
vendor/bin/apidoc api ${SOURCE_DIR}/framework ${TARGET_DIR}/${DOC_DIR} --interactive=0
vendor/bin/apidoc api ${SOURCE_DIR}/framework,${SOURCE_DIR}/extensions ${TARGET_DIR}/${DOC_DIR} --interactive=0
for l in ${LANGUAGES} ; do \
echo "" ; \
echo "building guide and api package for language $$l..." ; \
Expand All @@ -57,6 +57,7 @@ download-%: yii-%
test -f ${TARGET_DIR}/${DOC_DIR}-$$l.tar.bz2 && rm ${TARGET_DIR}/${DOC_DIR}-$$l.tar.bz2 ; \
cp -ar ${TARGET_DIR}/${DOC_DIR} ${TARGET_DIR}/${DOC_DIR}-$$l ; \
vendor/bin/apidoc guide ${SOURCE_DIR}/docs/guide-$$l ${TARGET_DIR}/${DOC_DIR}-$$l --interactive=0 ; \
vendor/bin/apidoc api ${SOURCE_DIR}/framework,${SOURCE_DIR}/extensions ${TARGET_DIR}/${DOC_DIR}-$$l --interactive=0 ; \
rm -r ${TARGET_DIR}/${DOC_DIR}-$$l/cache ; \
cd ${TARGET_DIR} && tar czf ${DOC_DIR}-$$l.tar.gz ${DOC_DIR}-$$l ; cd - ; \
cd ${TARGET_DIR} && tar cjf ${DOC_DIR}-$$l.tar.bz2 ${DOC_DIR}-$$l ; cd - ; \
Expand All @@ -74,10 +75,16 @@ yii-1.1: composer
cd data/yii-1.1 && git pull
cd data/yii-1.1 && (grep "phpunit/phpunit" composer.lock > /dev/null || php ../composer.phar require --dev --prefer-dist "phpunit/phpunit:~3.7" "phpunit/phpunit-selenium:~1.4.0")

yii-2.0:
yii-2.0: yii-2.0-git yii-2.0-ext-apidoc yii-2.0-ext-authclient yii-2.0-ext-bootstrap yii-2.0-ext-debug yii-2.0-ext-elasticsearch yii-2.0-ext-faker yii-2.0-ext-gii yii-2.0-ext-httpclient yii-2.0-ext-imagine yii-2.0-ext-jui yii-2.0-ext-mongodb yii-2.0-ext-redis yii-2.0-ext-shell yii-2.0-ext-smarty yii-2.0-ext-sphinx yii-2.0-ext-swiftmailer yii-2.0-ext-twig

yii-2.0-git:
test -d data/yii-2.0 || git clone https://github.com/yiisoft/yii2.git data/yii-2.0
cd data/yii-2.0 && git pull

yii-2.0-ext-%:
test -d data/yii-2.0/extensions/$(subst yii-2.0-ext-,,$@) || git clone https://github.com/yiisoft/yii2-$(subst yii-2.0-ext-,,$@).git data/yii-2.0/extensions/$(subst yii-2.0-ext-,,$@)
cd data/yii-2.0/extensions/$(subst yii-2.0-ext-,,$@) && git pull

# the following targets are internal only

composer:
Expand Down

0 comments on commit f090733

Please sign in to comment.