-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
236 changed files
with
11,870 additions
and
4,144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
CHANGES=$(git diff --cached --name-only) | ||
CHANGED_GUIDE=$(echo $CHANGES | grep -c "guides/") | ||
|
||
if [ $CHANGED_GUIDE != "0" ]; then | ||
if [[ | ||
-z $(echo $CHANGES | grep "hugo.adoc") | ||
|| -z $(echo $CHANGES | grep "eleventy.adoc") | ||
|| -z $(echo $CHANGES | grep "jekyll.adoc") | ||
]]; then | ||
echo "One of the SSG guides was changed without updating the others." | ||
echo "Run ./scripts/build-guides.sh before comitting." | ||
exit 1 | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
generator-plugins/jekyll/cloudcannon-jekyll-bookshop/.rubocop.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
group :test do | ||
gem "rubocop" | ||
gem "hashdiff" | ||
gem "rake" | ||
gem "minitest" | ||
gem 'minitest-reporters' | ||
end |
16 changes: 0 additions & 16 deletions
16
generator-plugins/jekyll/cloudcannon-jekyll-bookshop/Rakefile
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 4 additions & 13 deletions
17
generator-plugins/jekyll/cloudcannon-jekyll-bookshop/lib/cloudcannon-jekyll-bookshop.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
require "jekyll" | ||
require_relative "./cloudcannon-jekyll-bookshop/output-site-data" | ||
require_relative "./cloudcannon-jekyll-bookshop/structures" | ||
require_relative "./cloudcannon-jekyll-bookshop/tags/live-tag" | ||
warn "CloudCannon Jekyll Bookshop has been removed in Bookshop 3.0" | ||
warn "This functionality is now provided by the npm package @bookshop/generate" | ||
warn "See the migration guide at https://github.com/cloudcannon/bookshop" | ||
|
||
Liquid::Template.register_tag("bookshop_live", CloudCannonJekyllBookshop::LiveTag) | ||
|
||
Jekyll::Hooks.register :site, :after_init do |site| | ||
CloudCannonJekyllBookshop::Structures.build_structures(site) | ||
end | ||
|
||
Jekyll::Hooks.register :site, :post_write do |site| | ||
CloudCannonJekyllBookshop::SiteData.output(site) | ||
end | ||
exit 1 |
34 changes: 0 additions & 34 deletions
34
...ns/jekyll/cloudcannon-jekyll-bookshop/lib/cloudcannon-jekyll-bookshop/output-site-data.rb
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...jekyll/cloudcannon-jekyll-bookshop/lib/cloudcannon-jekyll-bookshop/page-without-a-file.rb
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.