From f46bd2caf81ceae61404a5350583ced4981b10c5 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Sun, 14 Oct 2018 17:44:01 +0200 Subject: [PATCH] Make pandoc optional, Fixes #238 --- README.md | 4 ++-- Rules | 5 ++--- content/about/verslagen.erb | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d521293..8c16141 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,11 @@ These instructions will get you a copy of the project up and running on your loc ### Prerequisites -You will need Ruby (gem), yarn and pandoc. Installation instructions are listed below. +You will need Ruby (gem), yarn and pandoc (optional). Installation instructions are listed below. * [Ruby](https://www.ruby-lang.org/en/documentation/installation/) * [yarn](yarnpkg.com/en/docs/install) -* [pandoc](https://pandoc.org/installing.html) +* [pandoc](https://pandoc.org/installing.html) (optional, install if you want to see the reports) ### Installing diff --git a/Rules b/Rules index a880c9a..91140b8 100644 --- a/Rules +++ b/Rules @@ -135,9 +135,8 @@ end # compile '/about/verslagen/*/*.md', rep: :pdf do - filter :pandoc_pdf, args: { f: :markdown } - - write ext: 'pdf' + filter :pandoc_pdf, args: { f: :markdown } if production? + write ext: (production? ? 'pdf' : 'md') end # diff --git a/content/about/verslagen.erb b/content/about/verslagen.erb index 6dfc7ec..cafc8b5 100644 --- a/content/about/verslagen.erb +++ b/content/about/verslagen.erb @@ -9,7 +9,7 @@ narrow_page: true <% reports.group_by {|r| r[:academic_year]}.each do |year, y_reports| %>

<%= year %>

<% y_reports.each do |report| %> - Report <%= report[:date].strftime('%d %B %Y') %>
+ Report <%= report[:date].strftime('%d %B %Y') %>
<% end %> <% end %>