forked from carpentries/carpentries.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_build_netlify.sh
executable file
·38 lines (29 loc) · 983 Bytes
/
_build_netlify.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
URL="$1"
cat > _config_netlify.yml <<EOF
#
# This config-file is only needed for development. Instead of changing the url
# everytime you work locally on the project, you start both config-files, overwriting
# the first one with the development variables needed.
#
# Start development with › $ jekyll serve --config _config.yml,_config_dev.yml
url: '$URL'
baseurl: ''
filesurl: '$URL/files'
urlimg: '$URL/images'
# See › https://github.com/jekyll/jekyll-gist#disabling-noscript-support
gist:
noscript: false
sass:
# http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
style: :expanded
line_numbers: true
# trace_selectors: true
# debug_info: true
# FUTURE https://github.com/jekyll/jekyll-sass-converter/issues/12
sourcemap: true
# Disable when not in production
google_analytics_tracking_id: false
EOF
make get_remote
bundle exec jekyll build --config _config.yml,_config_netlify.yml --future --limit_posts 10