/
githubmirror
/
jekyll
Обзор
Документация
Войти
/
githubmirror
/
jekyll
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v4.2.2
script/default-site
20 строк
672 B
ashmaroli
Change regex to sanitize and normalize filenames passed to LiquidRenderer (#6610)
10 мар 2018, 05:09
10 мар 2018, 05:09
e1b64f9
Код
Авторство
О чём код?
#!/usr/bin/env bash # Runs the `jekyll new` command and builds the default site as a sanity check set -e echo "$0: setting up tmp directory" mkdir -p ./tmp rm -Rf ./tmp/default-site echo "$0: creating new default site" bundle exec jekyll new tmp/default-site pushd tmp/default-site 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