Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/0.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
SkypLabs committed Aug 21, 2020
2 parents 08c2e59 + d6a03b6 commit bcb9993
Show file tree
Hide file tree
Showing 50 changed files with 812 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ _site/
.jekyll-cache/
.jekyll-metadata

# Ignore Node modules
node_modules/

# Ignore folders generated by Bundler
.bundle/
vendor/
Expand Down
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: ruby

rvm:
- 2.7.1

env:
global:
# Speeds up installation of html-proofer.
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true

# Use Bundler 2.0.
# See https://docs.travis-ci.com/user/languages/ruby/#bundler-20.
before_install:
- yes | gem update --system --force
- gem install bundler

script: bundle exec rake

notifications:
email:
on_success: never
20 changes: 19 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem 'github-pages', group: :jekyll_plugins
# Fix CVE-2020-7595.
# https://github.com/advisories/GHSA-7553-jr98-vx47
gem 'nokogiri', '>= 1.10.8'

group :production do
# Latest version available:
# https://pages.github.com/versions/
gem 'github-pages', '~> 207', group: :jekyll_plugins
end

group :development do
gem 'rake', group: :test
end

group :test do
gem 'html-proofer', '~> 3.15'
end
77 changes: 52 additions & 25 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.2.1)
activesupport (6.0.3.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
coffee-script (2.4.1)
Expand All @@ -16,24 +16,24 @@ GEM
colorator (1.1.0)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.6)
dnsruby (1.61.3)
addressable (~> 2.5)
concurrent-ruby (1.1.7)
dnsruby (1.61.4)
simpleidn (~> 0.1)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
ethon (0.12.0)
ffi (>= 1.3.0)
eventmachine (1.2.7)
execjs (2.7.0)
faraday (1.0.0)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
ffi (1.12.2)
ffi (1.13.1)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (204)
github-pages (207)
github-pages-health-check (= 1.16.1)
jekyll (= 3.8.5)
jekyll (= 3.9.0)
jekyll-avatar (= 0.7.0)
jekyll-coffeescript (= 1.1.1)
jekyll-commonmark-ghpages (= 0.1.6)
Expand Down Expand Up @@ -67,33 +67,42 @@ GEM
jekyll-theme-time-machine (= 0.1.1)
jekyll-titles-from-headings (= 0.5.3)
jemoji (= 0.11.1)
kramdown (= 1.17.0)
kramdown (= 2.3.0)
kramdown-parser-gfm (= 1.1.0)
liquid (= 4.0.3)
mercenary (~> 0.3)
minima (= 2.5.1)
nokogiri (>= 1.10.4, < 2.0)
rouge (= 3.13.0)
rouge (= 3.19.0)
terminal-table (~> 1.4)
github-pages-health-check (1.16.1)
addressable (~> 2.3)
dnsruby (~> 1.60)
octokit (~> 4.0)
public_suffix (~> 3.0)
typhoeus (~> 1.3)
html-pipeline (2.12.3)
html-pipeline (2.14.0)
activesupport (>= 2)
nokogiri (>= 1.4)
html-proofer (3.15.3)
addressable (~> 2.3)
mercenary (~> 0.3)
nokogumbo (~> 2.0)
parallel (~> 1.3)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.5)
jekyll (3.9.0)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
kramdown (>= 1.17, < 3)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
Expand Down Expand Up @@ -191,7 +200,10 @@ GEM
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (1.17.0)
kramdown (2.3.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.2.1)
rb-fsevent (~> 0.10, >= 0.10.3)
Expand All @@ -202,21 +214,27 @@ GEM
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.14.0)
minitest (5.14.1)
multipart-post (2.1.1)
nokogiri (1.10.9)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
octokit (4.17.0)
nokogumbo (2.0.2)
nokogiri (~> 1.8, >= 1.8.4)
octokit (4.18.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.19.2)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.1.1)
rb-fsevent (0.10.3)
rainbow (3.0.0)
rake (13.0.1)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rouge (3.13.0)
ruby-enum (0.7.2)
rexml (3.2.4)
rouge (3.19.0)
ruby-enum (0.8.0)
i18n
rubyzip (2.3.0)
safe_yaml (1.0.5)
Expand All @@ -228,21 +246,30 @@ GEM
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
simpleidn (0.1.1)
unf (~> 0.1.4)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
typhoeus (1.3.1)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (1.7.0)
zeitwerk (2.3.0)
yell (2.2.2)
zeitwerk (2.4.0)

PLATFORMS
ruby

DEPENDENCIES
github-pages
github-pages (~> 207)
html-proofer (~> 3.15)
nokogiri (>= 1.10.8)
rake

BUNDLED WITH
2.1.4
140 changes: 140 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# frozen_string_literal: true

task default: ['build', 'test:run']

# ------------------------------ #
# Dependencies
# ------------------------------ #

desc 'Install all the dependencies'
task install: ['bundle:unset_deployment_mode', 'bundle:unset_without'] do
Rake::Task['bundle:install'].execute
Rake::Task['yarn:install'].execute
end

desc 'Install only the production dependencies'
task install_prod: ['bundle:set_deployment_mode', 'bundle:without_non_prod'] do
Rake::Task['bundle:install'].execute
Rake::Task['yarn:install_prod'].execute
end

desc 'Upgrade all the dependencies'
task :upgrade do
Rake::Task['bundle:update'].execute
Rake::Task['yarn:upgrade'].execute
end

namespace :bundle do
desc 'Install Ruby dependencies using Bundler'
task :install do
sh 'bundle install'
end

desc 'Update Ruby dependencies using Bundler'
task :update do
sh 'bundle update'
end

desc 'Enable deployment mode in Bundler'
task :set_deployment_mode do
sh 'bundle config set deployment \'true\''
end

desc 'Disable deployment mode in Bundler'
task :unset_deployment_mode do
sh 'bundle config unset deployment'
end

desc 'Set the \'without\' option in Bundler for non-production ' \
'dependencies'
task :without_non_prod do
sh 'bundle config set without \'deployment test\''
end

desc 'Unset the \'without\' option in Bundler'
task :unset_without do
sh 'bundle config unset without'
end
end

namespace :yarn do
desc 'Install all the JavaScript dependencies using Yarn'
task :install do
sh 'yarn install'
end

desc 'Install only the production JavaScript dependencies using Yarn'
task :install_prod do
sh 'yarn install --production'
end

desc 'Upgrade the JavaScript dependencies using Yarn'
task :upgrade do
sh 'yarn upgrade'
end
end

# ------------------------------ #
# Build
# ------------------------------ #

desc 'Build the website'
task build: ['install'] do
Rake::Task['jekyll:build'].execute
end

desc 'Build the production-ready website'
task deploy: ['install_prod'] do
Rake::Task['jekyll:build'].execute
end

namespace :jekyll do
desc 'Build the Jekyll website'
task :build do
sh 'bundle exec jekyll build'
end

desc 'Clean the Jekyll website'
task :clean do
sh 'bundle exec jekyll clean'
end

desc 'Serve the Jekyll website locally'
task :serve do
sh 'bundle exec jekyll serve --future --drafts --incremental'
end
end

# ------------------------------ #
# Test
# ------------------------------ #

namespace :test do
desc 'Run all tests'
task :run do
Rake::Task['test:check_html'].execute
end

desc 'Check the HTML syntax'
task :check_html do
require 'html-proofer'

options = {
assume_extension: true,
check_favicon: true,
check_opengraph: true,
only_4xx: true
}

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

# ------------------------------ #
# Clean up
# ------------------------------ #

desc 'Delete the build artifacts'
task :cleanup do
Rake::Task['jekyll:clean'].execute
end
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,23 @@ favicon_img_path: /assets/images/favicon.ico
# Plugins
plugins:
- jekyll-feed
- jekyll-paginate
- jekyll-sitemap

# Build settings
markdown: kramdown
excerpt_separator: "<!--more-->"

include:
- _pages

sass:
style: compressed

# Outputting
permalink: :year/:month/:day/:title/
timezone: Europe/Paris

# Pagination
paginate: 5
paginate_path: "/page:num"
Loading

0 comments on commit bcb9993

Please sign in to comment.