-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1192 from Fryguy/upgrade_jekyll_ruby
Upgrade Ruby to 3.3 and Jekyll to 4.3
- Loading branch information
Showing
37 changed files
with
45 additions
and
9 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
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
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,18 @@ | ||
require "font-awesome-sass" | ||
|
||
class FontGenerator < Jekyll::Generator | ||
def generate(site) | ||
@site = site | ||
@site.static_files.concat(font_files) | ||
end | ||
|
||
def font_files | ||
source = FontAwesome::Sass.gem_path | ||
Dir.glob(File.join(source, "assets/fonts/font-awesome/*")).map do |font| | ||
font = font.sub(source, "") | ||
dir = File.dirname(font) | ||
file_name = File.basename(font) | ||
Jekyll::StaticFile.new(@site, source, dir, file_name) | ||
end | ||
end | ||
end |
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 @@ | ||
require "jekyll/converters/scss" | ||
require "bootstrap-sass" | ||
require "font-awesome-sass" | ||
|
||
# sass/load_paths configuration in _config.yml only supports hardcoded paths, | ||
# so we override to add in the paths from the gems dynamically. | ||
module SassLoader | ||
def user_sass_load_paths | ||
super + [ | ||
Bootstrap.stylesheets_path, | ||
FontAwesome::Sass.stylesheets_path | ||
] | ||
end | ||
end | ||
|
||
Jekyll::Converters::Scss.prepend(SassLoader) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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