Skip to content

Commit

Permalink
update with last modification date as well as newer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Jun 26, 2024
1 parent f458329 commit 61b179e
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 38 deletions.
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.bundle
vendor
_site
.sass-cache
.jekyll-metadata
12 changes: 8 additions & 4 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#source "https://rubygems.org"
source "https://rubygems.org"
#ruby RUBY_VERSION

# Hello! This is where you manage which Jekyll version is used to run.
Expand All @@ -9,20 +9,24 @@
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "3.4.5"
gem "jekyll", "~> 3.0"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
gem "minima", "~> 2.5"

gem 'kramdown-parser-gfm'

gem 'base64', '~> 0.1.0'
gem 'bigdecimal', '~> 3.1.0'
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
gem 'jekyll-last-modified-at'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

96 changes: 64 additions & 32 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,58 +1,90 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
base64 (0.1.1)
bigdecimal (3.1.8)
colorator (1.1.0)
ffi (1.9.18)
concurrent-ruby (1.3.3)
csv (3.3.0)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.17.0-arm64-darwin)
forwardable-extended (2.6.0)
jekyll (3.4.5)
http_parser.rb (0.8.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
jekyll (3.10.0)
addressable (~> 2.4)
colorator (~> 1.0)
csv (~> 3.0)
em-websocket (~> 0.5)
i18n (>= 0.7, < 2)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 3.0)
jekyll-watch (~> 2.0)
kramdown (>= 1.17, < 3)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (~> 1.7)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-feed (0.9.2)
jekyll (~> 3.3)
jekyll-sass-converter (1.5.0)
webrick (>= 1.0)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-last-modified-at (1.3.2)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (1.5.0)
listen (~> 3.0, < 3.1)
kramdown (1.13.2)
liquid (3.0.6)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
minima (2.1.1)
jekyll (~> 3.3)
pathutil (0.14.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (2.0.5)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (1.11.1)
safe_yaml (1.0.4)
sass (3.5.1)
public_suffix (6.0.0)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.3.1)
strscan
rouge (3.30.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)
strscan (3.1.0)
webrick (1.8.1)

PLATFORMS
ruby
arm64-darwin-23

DEPENDENCIES
jekyll (= 3.4.5)
base64 (~> 0.1.0)
bigdecimal (~> 3.1.0)
jekyll (~> 3.0)
jekyll-feed (~> 0.6)
minima (~> 2.0)
jekyll-last-modified-at
kramdown-parser-gfm
minima (~> 2.5)
tzinfo-data

BUNDLED WITH
1.14.6
2.5.14
7 changes: 7 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# first/one time:
# brew install ruby
# gem install bundler
# bundle install

preview:
bundle exec jekyll serve --incremental --watch --livereload
7 changes: 6 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ facebook:
# Build settings
markdown: kramdown
theme: minima
gems:
plugins:
- jekyll-feed
- jekyll-last-modified-at
exclude:
- Gemfile
- Gemfile.lock
- vendor

minima:
skin: auto
47 changes: 47 additions & 0 deletions docs/_layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
layout: default
---

<div class="home">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}

{{ content }}

{%- if site.posts.size > 0 -%}
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
<ul class="post-list">
{%- for post in site.posts -%}
<li>

{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<span class="post-meta">
<time datetime="{{ post.date | date_to_xmlschema }}">
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
Created on {{ post.date | date: date_format }}
</time>
{% assign created_date = post.date | date: "%Y-%m-%d" %}
{% assign modified_date = post.last_modified_at | date: "%Y-%m-%d" %}
{% if post.last_modified_at and created_date != modified_date %}
• Last updated on <time datetime="{{ post.last_modified_at | date_to_xmlschema }}">
{{ post.last_modified_at | date: date_format }}
</time>
{% endif %}
</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</li>
{%- endfor -%}
</ul>

<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
{%- endif -%}

</div>
9 changes: 8 additions & 1 deletion docs/_layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ <h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta">
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
{{ page.date | date: date_format }}
Created on {{ page.date | date: date_format }}
</time>
{% assign created_date = page.date | date: "%Y-%m-%d" %}
{% assign modified_date = page.last_modified_at | date: "%Y-%m-%d" %}
{% if page.last_modified_at and created_date != modified_date %}
• Last updated on <time datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="dateModified">
{{ page.last_modified_at | date: date_format }}
</time>
{% endif %}
{% if page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
{% endif %}</p>
Expand Down

0 comments on commit 61b179e

Please sign in to comment.