revealing 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1256b9af11462a452d671aa0dc75c284cafd3f3c927342d6bf1818d2126c42b
4
- data.tar.gz: 955ea1880102a7c4bce9c5acd3f7f694e652f7e67f351f54eec8a9856a480caa
3
+ metadata.gz: dcbd8c769d938e3504cc380edd46cbd7288a63271829da2faf8b2ef41b1c9b62
4
+ data.tar.gz: b602ba7250675cc5b761b5edd9b35606ce5f85cc6770f343147425f3650b4574
5
5
  SHA512:
6
- metadata.gz: ca1068d10527644e023c66cc75841bb11936af96e74eb40f67fdd06a81d92b601ca11cd157e4aee208978230d1cc35088584325ad6d55a00d891d7b90ae91558
7
- data.tar.gz: 4c6fecf3f452963e046fea2640f687a7d4a609848bb294030e9e7b6d3331b4440c7d628dee86184e51562d87fac9d8c106966e98f762ba75c96459b80dc79c6e
6
+ metadata.gz: d6a9a2d429485905ac7f191d211485739a7ee83c3382c7bf3221ed71fb0036c2b0bb5244adfb48475c90e01afcebb9bf88feb0502ffed425b51bfb559ef7c39b
7
+ data.tar.gz: 42729979c92eaa079cdb2881c592c3a62d08704efaf799c5caa6791b9fcacce9a6351a6db8ecc463ad71bdbc86f65516989b73c63390c5beb6af30a12d77d71a
data/README.markdown CHANGED
@@ -37,7 +37,8 @@ Unique features:
37
37
 
38
38
  # TODO
39
39
 
40
- 1. BUG: Need to rebuild if a file in the headers folder changed
40
+ 1. `doctor` checks that all the template files are present
41
+ 1. Treat mathjax config as yet another header file
41
42
  1. Expose customization of
42
43
  * highlight-style
43
44
  * theme
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- REVEAL_JS_VERSION = ENV.fetch('REVEAL_JS_VERSION', '3.7.0')
3
+ REVEAL_JS_VERSION = ENV.fetch('REVEAL_JS_VERSION', '3.8.0')
4
4
 
5
5
  desc 'reveal.js is present'
6
6
  directory REVEAL_JS_TARGET_DIR => TARGET_DIR do |target|
@@ -5,7 +5,7 @@ require 'git-dirty'
5
5
  SOURCE_DIR = Pathname('src')
6
6
  SOURCE_FILES = FileList[SOURCE_DIR / '**/*.markdown']
7
7
 
8
- TARGET_DIR = Pathname('public_html')
8
+ TARGET_DIR = Pathname(ENV.fetch('TARGET_DIR', 'public_html'))
9
9
  directory TARGET_DIR
10
10
  TARGET_FILE = TARGET_DIR / 'index.html'
11
11
 
@@ -57,3 +57,7 @@ file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILE, DIRTY_FILE, ME
57
57
  #{GPP_FILE}
58
58
  ).split("\n").join(' ')
59
59
  end
60
+
61
+ at_exit do
62
+ warn "\nRun `revealing doctor` to assist in fixing these errors.\n" if $! && ! $!.success?
63
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Revealing
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.0'
5
5
  end
@@ -10,6 +10,7 @@ This is the source of New Presentation. It was generated with [`revealing`](http
10
10
  * MathJax is included and configured to render SVG. To use a specific version, set the environment variable `MATH_JAX_VERSION` to one of of the versions provided by [CDNJS](https://cdnjs.com/libraries/mathjax).
11
11
  * reveal.js is downloaded and unzipped at build time. Set the environment variable `REVEAL_JS_VERSION` to customize which version to use (must be one of the [released versions](https://github.com/hakimel/reveal.js/releases)). If `REVEAL_JS_DIR` is set, the files from this directory are used.
12
12
  * The environment variable `REVEAL_JS_SLIDE_LEVEL` can be set to [structure the slide show](https://pandoc.org/MANUAL.html#structuring-the-slide-show)
13
+ * The target directory is `public_html`. It can be customized by setting the environment variable `TARGET_DIR`.
13
14
 
14
15
  # Setup
15
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revealing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steffen Uhlig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-17 00:00:00.000000000 Z
11
+ date: 2019-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake