Commit f2335fbb authored by Adam Hawkins's avatar Adam Hawkins

Add html-proofer and revision warnings.

parent 0cd7a415
Pipeline #4822590 passed with stages
in 2 minutes and 12 seconds
source 'https://rubygems.org'
gem 'jekyll', '~> 3.2.1'
gem 'jekyll', '~> 3.3.0'
gem 'html-proofer', '~> 3.3.1'
GEM
remote: https://rubygems.org/
specs:
activesupport (5.0.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.4.0)
colorator (1.1.0)
colored (1.2)
concurrent-ruby (1.0.2)
ethon (0.9.1)
ffi (>= 1.3.0)
ffi (1.9.14)
forwardable-extended (2.6.0)
jekyll (3.2.1)
html-proofer (3.3.1)
activesupport (>= 4.2, < 6.0)
addressable (~> 2.3)
colored (~> 1.2)
mercenary (~> 0.3.2)
nokogiri (~> 1.5)
parallel (~> 1.3)
typhoeus (~> 0.7)
yell (~> 2.0)
i18n (0.7.0)
jekyll (3.3.0)
addressable (~> 2.4)
colorator (~> 1.0)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
......@@ -24,20 +45,32 @@ GEM
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
mercenary (0.3.6)
mini_portile2 (2.1.0)
minitest (5.9.1)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
parallel (1.9.0)
pathutil (0.14.0)
forwardable-extended (~> 2.6)
rb-fsevent (0.9.7)
rb-fsevent (0.9.8)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
rouge (1.11.1)
safe_yaml (1.0.4)
sass (3.4.22)
thread_safe (0.3.5)
typhoeus (0.8.0)
ethon (>= 0.8.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
yell (2.0.7)
PLATFORMS
ruby
DEPENDENCIES
jekyll (~> 3.2.1)
html-proofer (~> 3.3.1)
jekyll (~> 3.3.0)
BUNDLED WITH
1.13.2
......@@ -42,6 +42,8 @@ dist: $(DOCKER_IMAGE)
.PHONY: test-dist
test-dist:
env DIST_PATH=$(PWD)/dist SENTINEL_VALUE=$(GIT_COMMIT) test/dist_test.bats
docker run --rm -v $(CURDIR)/dist:/data slashdeploy/blog \
bundle exec htmlproofer /data
.PHONY: test-shellcheck
test-shellcheck:
......
......@@ -27,7 +27,7 @@
<div class="post-author">
{% assign author = site.data.people[page.author] %}
<p>
<img src="{{ author.email | to_gravatar }}?s=70" class="author-avatar">
<img src="{{ author.email | to_gravatar }}?s=70" alt="{{ author.name }}" class="author-avatar">
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="mailto:{{ author.email }}"><span itemprop="name">{{ author.name }}</span></a><br >
<a href="https://twitter.com/{{ author.twitter }}">@{{ author.twitter }}</a>
......
module Jekyll
class Revision < Liquid::Block
def render(context)
site = context.registers[:site]
converter = site.find_converter_instance(::Jekyll::Converters::Markdown)
output = converter.convert(super(context))
"<div class='revision-warning'>#{output}</div>"
end
end
end
Liquid::Template.register_tag('revision', Jekyll::Revision)
......@@ -3,6 +3,11 @@ layout: post
title: Docker and Ruby for TDD and Deployment
author: ahawkins
---
{% revision %}
This post is outdated as of October 2016. Refer to the [Docker Project
Boilerplates](http://slashdeploy.com/boilerplate.html) for updated
versions.
{% endrevision %}
Ruby (and many other languages) are easy to dockerize for
TDD and/or production. The general approach follows these
......
......@@ -6,6 +6,12 @@ hackernews: https://news.ycombinator.com/item?id=11722512
reddit: https://www.reddit.com/r/docker/comments/4jx534/docker_nodejs_boilerplate/
---
{% revision %}
This post is outdated as of October 2016. Refer to the [Docker Project
Boilerplates](http://slashdeploy.com/boilerplate.html) for updated
versions.
{% endrevision %}
I recently shared a post on [Dockerizing Ruby applications for TDD &
Deployment][docker-ruby]. This post continues the theme by introducing
a similar structure for Node.js applications. The general approach
......
......@@ -56,5 +56,5 @@ are improvements for everyone to use.
Good luck out there and happy shipping.
[docker on aws]: www.docker.com/aws
[docker on aws]: http://www.docker.com/aws
[post]: {% link _posts/2016-08-12-docker-on-aws-1-week-in.md %}
......@@ -104,3 +104,16 @@ body {
border-top: solid 1px lighten($dark-color, 60%);
padding-top: $spacing-unit;
}
.revision-warning {
border: solid 1px lighten($dark-color, 60%);
background-color: #fbf0a1;
margin-bottom: $spacing-unit / 2;
padding: $spacing-unit / 2;
& > p {
margin: 0;
padding: 0;
font-size: smaller;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment