From f001bb835c5a69c2014d3fbb1aec96466bd707fd Mon Sep 17 00:00:00 2001 From: Greg Wolanski Date: Sat, 25 Jul 2020 15:42:48 +0200 Subject: [PATCH] Make statecharts.github.io locally testable with Jekyll --- .gitignore | 5 +++ Gemfile | 7 +++++ Gemfile.lock | 70 ++++++++++++++++++++++++++++++++++++++++++ _config.yml | 4 +++ _layouts/glossary.html | 2 +- glossary.md | 2 +- 6 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 Gemfile.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6874c5b --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +_site/ +.DS_Store +.jekyll-cache/ +.jekyll-metadata +.sass-cache/ \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..b80afce --- /dev/null +++ b/Gemfile @@ -0,0 +1,7 @@ +gem "jekyll"# frozen_string_literal: true +gem "jekyll-theme-slate" +gem "jekyll-redirect-from" + +source "https://rubygems.org" + +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..08676df --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,70 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) + colorator (1.1.0) + concurrent-ruby (1.1.6) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + eventmachine (1.2.7) + ffi (1.13.1) + forwardable-extended (2.6.0) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.7) + 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) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-redirect-from (0.16.0) + jekyll (>= 3.3, < 5.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.6.1) + jekyll (>= 3.3, < 5.0) + jekyll-theme-slate (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-watch (2.2.1) + listen (~> 3.0) + kramdown (1.17.0) + liquid (4.0.3) + listen (3.2.1) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.3.6) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (4.0.5) + rb-fsevent (0.10.4) + rb-inotify (0.10.1) + ffi (~> 1.0) + rouge (3.21.0) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + +PLATFORMS + ruby + +DEPENDENCIES + jekyll + jekyll-redirect-from + jekyll-theme-slate + +BUNDLED WITH + 2.1.4 diff --git a/_config.yml b/_config.yml index acb6a3a..33fd97a 100644 --- a/_config.yml +++ b/_config.yml @@ -19,3 +19,7 @@ defaults: type: faq values: layout: default + - scope: + path: "" + values: + layout: default diff --git a/_layouts/glossary.html b/_layouts/glossary.html index e9d1349..38b27fc 100644 --- a/_layouts/glossary.html +++ b/_layouts/glossary.html @@ -16,7 +16,7 @@ - {% if page.breadcrumbs | size > 0 %} + {% if page.breadcrumbs.size > 0 %} {% endif %} diff --git a/glossary.md b/glossary.md index f866b06..e790cd6 100644 --- a/glossary.md +++ b/glossary.md @@ -11,7 +11,7 @@ sitemap: {% assign allitems = "" | split:"" %} {% for item in site.glossary %} {% assign allitems = allitems | push: item %} - {% if item.aka | size > 0 %} + {% if item.aka.size > 0 %} {% for aka in item.aka %} {% assign allitems = allitems | push: aka %} {% endfor %}