revealing 1.0.8 → 1.1.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 +4 -4
- data/README.markdown +5 -10
- data/lib/revealing/tasks/reveal.js.rake +1 -1
- data/lib/revealing/tasks.rb +7 -3
- data/lib/revealing/version.rb +1 -1
- data/templates/init/README.markdown +3 -0
- data/templates/init/metadata.yml +8 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1256b9af11462a452d671aa0dc75c284cafd3f3c927342d6bf1818d2126c42b
|
4
|
+
data.tar.gz: 955ea1880102a7c4bce9c5acd3f7f694e652f7e67f351f54eec8a9856a480caa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca1068d10527644e023c66cc75841bb11936af96e74eb40f67fdd06a81d92b601ca11cd157e4aee208978230d1cc35088584325ad6d55a00d891d7b90ae91558
|
7
|
+
data.tar.gz: 4c6fecf3f452963e046fea2640f687a7d4a609848bb294030e9e7b6d3331b4440c7d628dee86184e51562d87fac9d8c106966e98f762ba75c96459b80dc79c6e
|
data/README.markdown
CHANGED
@@ -37,22 +37,17 @@ Unique features:
|
|
37
37
|
|
38
38
|
# TODO
|
39
39
|
|
40
|
-
1.
|
41
|
-
1. Re-add ditaa processing, or replace with [mermaid-filter](https://github.com/raghur/mermaid-filter)
|
42
|
-
|
43
|
-
Milestone: 1.1
|
44
|
-
|
45
|
-
1. Allow self-hosted mathjax (copy to target)
|
46
|
-
1. Charts using [vega-lite](https://vega.github.io/vega-lite/usage/embed.html)
|
47
|
-
1. Add guard-livereload to the generated project
|
40
|
+
1. BUG: Need to rebuild if a file in the headers folder changed
|
48
41
|
1. Expose customization of
|
49
42
|
* highlight-style
|
50
|
-
* slide-level
|
51
43
|
* theme
|
52
44
|
* slideNumber
|
53
45
|
* history
|
54
|
-
* metadata (e.g. `lang=de_DE`)
|
55
46
|
1. Provide a docker image so that we can run without installing everything
|
47
|
+
1. Consider [mermaid-filter](https://github.com/raghur/mermaid-filter)
|
48
|
+
1. Allow self-hosted mathjax (copy to target)
|
49
|
+
1. Charts using [vega-lite](https://vega.github.io/vega-lite/usage/embed.html)
|
50
|
+
1. Add guard-livereload to the generated project
|
56
51
|
1. PDF output
|
57
52
|
1. Make the initial set of files more meaningful (e.g. add the project name, `git config user.name` etc.)
|
58
53
|
1. Web interface for live editing
|
data/lib/revealing/tasks.rb
CHANGED
@@ -33,15 +33,18 @@ load "#{__dir__}/tasks/reveal.js.rake"
|
|
33
33
|
|
34
34
|
git_dirty_file DIRTY_FILE
|
35
35
|
|
36
|
-
MATH_JAX_VERSION = '2.7.5'
|
36
|
+
MATH_JAX_VERSION = ENV.fetch('MATH_JAX_VERSION', '2.7.5')
|
37
|
+
|
38
|
+
METADATA_FILE = Pathname('metadata.yml')
|
39
|
+
file METADATA_FILE
|
37
40
|
|
38
41
|
desc "Build #{TARGET_FILE}"
|
39
|
-
file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILE, DIRTY_FILE] + ASSETS + RESIZED_ASSETS + HEADERS do
|
42
|
+
file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILE, DIRTY_FILE, METADATA_FILE] + ASSETS + RESIZED_ASSETS + HEADERS do
|
40
43
|
sh %(pandoc
|
41
44
|
--to=revealjs
|
42
45
|
--standalone
|
43
46
|
--highlight-style zenburn
|
44
|
-
--slide-level
|
47
|
+
--slide-level=#{ENV.fetch('REVEAL_JS_SLIDE_LEVEL', '1')}
|
45
48
|
--output #{TARGET_FILE}
|
46
49
|
--variable theme=white
|
47
50
|
--variable slideNumber=true
|
@@ -49,6 +52,7 @@ file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILE, DIRTY_FILE] +
|
|
49
52
|
--variable revealjs-url=#{REVEAL_JS}
|
50
53
|
--mathjax=https://cdnjs.cloudflare.com/ajax/libs/mathjax/#{MATH_JAX_VERSION}/MathJax.js?config=TeX-AMS_CHTML-full
|
51
54
|
--include-in-header=#{__dir__ + '/../../templates/mathjax/config.js'}
|
55
|
+
"--metadata-file=#{METADATA_FILE.to_path}"
|
52
56
|
#{HEADERS.map { |h| "--include-in-header=#{h}" }.join("\n")}
|
53
57
|
#{GPP_FILE}
|
54
58
|
).split("\n").join(' ')
|
data/lib/revealing/version.rb
CHANGED
@@ -7,6 +7,9 @@ This is the source of New Presentation. It was generated with [`revealing`](http
|
|
7
7
|
* Images are resized for the web using [`graphicsmagick`](http://www.graphicsmagick.org/)
|
8
8
|
* `#include` and other [`gpp`](https://logological.org/gpp) features allow organizing the sources of complex presentations
|
9
9
|
* Files in the `headers` folder are included verbatim in the HTML `<head>` section
|
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
|
+
* 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
|
+
* The environment variable `REVEAL_JS_SLIDE_LEVEL` can be set to [structure the slide show](https://pandoc.org/MANUAL.html#structuring-the-slide-show)
|
10
13
|
|
11
14
|
# Setup
|
12
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: revealing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steffen Uhlig
|
@@ -210,6 +210,7 @@ files:
|
|
210
210
|
- templates/init/Gemfile
|
211
211
|
- templates/init/README.markdown
|
212
212
|
- templates/init/Rakefile
|
213
|
+
- templates/init/metadata.yml
|
213
214
|
- templates/init/src/index.markdown
|
214
215
|
- templates/mathjax/config.js
|
215
216
|
homepage:
|
@@ -231,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
232
|
- !ruby/object:Gem::Version
|
232
233
|
version: '0'
|
233
234
|
requirements: []
|
234
|
-
rubygems_version: 3.0.
|
235
|
+
rubygems_version: 3.0.3
|
235
236
|
signing_key:
|
236
237
|
specification_version: 4
|
237
238
|
summary: Rake tasks to for reveal.js presentations
|