/
githubmirror
/
jekyll
Обзор
Документация
Войти
/
githubmirror
/
jekyll
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
script/default-site
23 строки
765 B
Parker Moore
script/default-site: accept flags for `jekyll new` (#9259)
19 янв 2023, 10:05
Не верифицирован
19 янв 2023, 10:05
bf8d50e
Код
Авторство
О чём код?
#!/usr/bin/env bash # Runs the `jekyll new` command and builds the default site as a sanity check # Additional flags for `jekyll new` may be passed to this script. set -e TMP_SOURCE="tmp/default-site" echo "$0: setting up tmp directory" mkdir -p ./tmp rm -Rf "./$TMP_SOURCE" echo "$0: creating new default site" bundle exec jekyll new "$TMP_SOURCE" "$@" pushd "$TMP_SOURCE" echo "$0: respecifying the jekyll install location" ruby -e "contents = File.read('Gemfile'); File.write('Gemfile', contents.sub(/gem \"jekyll\".*\\n/, 'gem \"jekyll\", path: \"../../\"'))" echo "$0: installing default site dependencies" BUNDLE_GEMFILE=Gemfile bundle install echo "$0: building the default site" BUNDLE_GEMFILE=Gemfile bundle exec jekyll build --verbose --profile popd