Skip to content

Tweak configuration for GitHub Pages #3045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
source "https://rubygems.org"

ruby "~> 3.2.2"

gem "rake"
gem "jekyll", "~> 4.2.0"
gem "jekyll"
gem "rouge"

gem "unicorn"
gem "lanyon"
gem "rack-rewrite"
gem "rack-ssl"
gem "rack-protection"

group :development do
gem "minitest"
gem "spidr", "~> 0.6"
gem "html-proofer"
gem "validate-website", "~> 1.6"
end
99 changes: 61 additions & 38 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,48 +1,70 @@
GEM
remote: https://rubygems.org/
specs:
Ascii85 (1.1.0)
addressable (2.8.4)
public_suffix (>= 2.0.2, < 6.0)
afm (0.2.2)
async (2.5.0)
console (~> 1.10)
io-event (~> 1.1)
timers (~> 4.1)
colorator (1.1.0)
concurrent-ruby (1.2.2)
console (1.16.2)
fiber-local
crass (1.0.6)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
ethon (0.16.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
ffi (1.15.5)
fiber-local (1.0.0)
forwardable-extended (2.6.0)
google-protobuf (3.22.3)
google-protobuf (3.22.3-arm64-darwin)
google-protobuf (3.22.3-x86_64-linux)
hashery (2.1.2)
html-proofer (5.0.7)
addressable (~> 2.3)
async (~> 2.1)
nokogiri (~> 1.13)
pdf-reader (~> 2.11)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
zeitwerk (~> 2.5)
http_parser.rb (0.8.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jekyll (4.2.2)
io-event (1.1.7)
jekyll (4.3.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
mercenary (>= 0.3.6, < 0.5)
pathutil (~> 0.9)
rouge (~> 3.0)
rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-watch (2.2.1)
listen (~> 3.0)
json (2.6.3)
kgio (2.11.4)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
lanyon (0.4.4)
jekyll (>= 2.0)
rack (>= 1.6, < 3.0)
liquid (4.0.4)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
Expand All @@ -60,35 +82,42 @@ GEM
paint (2.3.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
pdf-reader (2.11.0)
Ascii85 (~> 1.0)
afm (~> 0.2.1)
hashery (~> 2.0)
ruby-rc4
ttfunk
public_suffix (5.0.1)
racc (1.6.2)
rack (2.2.6.4)
rack-protection (3.0.6)
rack
rack-rewrite (1.5.1)
rack-ssl (1.4.1)
rack
raindrops (0.20.1)
rainbow (3.1.1)
rake (13.0.6)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.30.0)
rouge (4.1.0)
ruby-rc4 (0.1.5)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
sass-embedded (1.62.0)
google-protobuf (~> 3.21)
rake (>= 10.0.0)
sass-embedded (1.62.0-arm64-darwin)
google-protobuf (~> 3.21)
sass-embedded (1.62.0-x86_64-linux-gnu)
google-protobuf (~> 3.21)
slop (4.10.1)
spidr (0.7.0)
nokogiri (~> 1.3)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
tidy_ffi (1.0.1)
ffi (~> 1.2)
unicode-display_width (1.8.0)
unicorn (6.1.0)
kgio (~> 2.6)
raindrops (~> 0.7)
timers (4.3.5)
ttfunk (1.7.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
unicode-display_width (2.4.2)
validate-website (1.12.0)
crass (~> 1)
nokogiri (~> 1.12)
Expand All @@ -103,27 +132,21 @@ GEM
nokogiri (~> 1.6)
rexml (~> 3.2)
webrick (1.8.1)
yell (2.2.2)
zeitwerk (2.6.7)

PLATFORMS
arm64-darwin-22
ruby
x86_64-linux

DEPENDENCIES
jekyll (~> 4.2.0)
lanyon
html-proofer
jekyll
minitest
rack-protection
rack-rewrite
rack-ssl
rake
rouge
spidr (~> 0.6)
unicorn
validate-website (~> 1.6)

RUBY VERSION
ruby 3.2.2p53

BUNDLED WITH
2.4.10
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

55 changes: 20 additions & 35 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,16 @@ task test: %i[test-news-plugin test-linter lint build]

desc "Build the Jekyll site"
task :build do
require "lanyon"
require "jekyll"

Lanyon.build
end

namespace :build do

def build_subpage(lang)
require "yaml"
require "lanyon"

exclude_config = YAML.load_file(CONFIG)["exclude"]
exclude_langs = (LANGUAGES - [lang]).map {|x| "#{x}/" }

exclude = exclude_config + exclude_langs

Lanyon.build(exclude: exclude)
end

desc "Build the Jekyll site (`lang' language part only)"
task :lang do
puts "Please specify one of the valid language codes:"
puts LANGUAGES.join(", ") << "."
end

LANGUAGES.each do |lang|
task lang.to_sym do
build_subpage(lang)
end
end
Jekyll::Commands::Build.process({})
end

desc "Serve the Jekyll site locally"
task :serve do
sh "rackup config.ru"
require "jekyll"

Jekyll::Commands::Serve.process({})
end

namespace :new_post do
Expand Down Expand Up @@ -114,12 +89,22 @@ end

namespace :check do

localport = 9292

desc "Check for broken internal links on http://localhost:#{localport}/"
desc "Check for broken internal links"
task :links do
require_relative "lib/link_checker"
LinkChecker.new.check(localport: localport, languages: LANGUAGES)
require "html-proofer"
options = {
checks: [
'Links',
'Images',
'Scripts',
],
ignore_empty_alt: true,
ignore_missing_alt: true,
check_external_hash: false,
check_internal_hash: false,
}

HTMLProofer.check_directory('_site', options).run
end

desc "Validate _site markup with validate-website"
Expand Down
3 changes: 0 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ kramdown:
auto_ids: false

exclude:
- config.ru
- Gemfile
- Gemfile.lock
- Procfile
- Rakefile
- README.md
- unicorn.rb
- lib
- test
- vendor
Expand Down
98 changes: 0 additions & 98 deletions config.ru

This file was deleted.

Loading