зеркало из https://github.com/telerik/docs-seed.git
feat: Adding option for docker users
This commit is contained in:
Родитель
689788f26b
Коммит
596cb597bb
|
@ -15,6 +15,10 @@ case $i in
|
||||||
CONFIG="${i#*=}"
|
CONFIG="${i#*=}"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-d=*|--docker=*)
|
||||||
|
DOCKER="${i#*=}"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
--default)
|
--default)
|
||||||
DEFAULT=YES
|
DEFAULT=YES
|
||||||
shift
|
shift
|
||||||
|
@ -28,6 +32,7 @@ done
|
||||||
# echo "INCLUDE = ${INCLUDE}"
|
# echo "INCLUDE = ${INCLUDE}"
|
||||||
# echo "SERVE = ${SERVE}"
|
# echo "SERVE = ${SERVE}"
|
||||||
# echo "SECOND CONFIG = ${CONFIG}"
|
# echo "SECOND CONFIG = ${CONFIG}"
|
||||||
|
# echo "USING DOCKER = ${DOCKER}"
|
||||||
# exit
|
# exit
|
||||||
|
|
||||||
config_file="_config.yml"
|
config_file="_config.yml"
|
||||||
|
@ -51,6 +56,9 @@ echo "Using config_file: $config_file"
|
||||||
|
|
||||||
if [[ $SERVE == "true" ]];then
|
if [[ $SERVE == "true" ]];then
|
||||||
bundle exec jekyll serve --config=$config_file
|
bundle exec jekyll serve --config=$config_file
|
||||||
|
elif [[ $DOCKER == "true" ]]
|
||||||
|
then
|
||||||
|
sh start-docs.sh $tempconfig
|
||||||
else
|
else
|
||||||
bundle exec jekyll build --config=$config_file
|
bundle exec jekyll build --config=$config_file
|
||||||
fi
|
fi
|
||||||
|
|
Загрузка…
Ссылка в новой задаче