Skip to content

Commit

Permalink
Add netlify build file
Browse files Browse the repository at this point in the history
  • Loading branch information
froggleston committed Sep 17, 2024
1 parent f313907 commit cc58c85
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ serve :
## clean : clean up unneeded files.
clean :
@rm -rf _site
@rm -rf _gh-site
@find . -name '*~' -exec rm {} \;
@rm -rf _data/*

Expand Down
38 changes: 38 additions & 0 deletions _build_netlify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 sort-glossary
bundle exec jekyll build

0 comments on commit cc58c85

Please sign in to comment.