Skip to content

Commit

Permalink
Merge pull request #1272 from swcarpentry/website-reorg-may2024
Browse files Browse the repository at this point in the history
Website reorganization
  • Loading branch information
maneesha authored Jul 29, 2024
2 parents 318b0bc + 2fe4d47 commit 04793e1
Show file tree
Hide file tree
Showing 696 changed files with 320 additions and 49,499 deletions.
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 get_remote
bundle exec jekyll build --config _config.yml,_config_netlify.yml --future --limit_posts 10
25 changes: 25 additions & 0 deletions _config_netlify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@


url: 'https://swcarpentry-website-preview.netlify.app/'
baseurl: ''
filesurl: 'https://swcarpentry-website-preview.netlify.app/files'
urlimg: 'https://swcarpentry-website-preview.netlify.app/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

# display future posts in PR previews
future: true
Loading

0 comments on commit 04793e1

Please sign in to comment.