revealing 1.0.7 → 1.0.8

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: a37bb931585056c7b87a37d847e4b144502d891142f6990929a91c094d33eda7
4
- data.tar.gz: c91b10d0efa0f63a2d43ee788cdc3c4332ee9b81ad44e6d9ec758f9ea4f4af91
3
+ metadata.gz: 84a0a3762d9de3110603c7a614a68c63cd51753b24298c4c8af9c57551a5e2b9
4
+ data.tar.gz: 7b495015e7571389a28faffb08ffec1fbaf5e8c83ca240cbf5e9e0937cb08353
5
5
  SHA512:
6
- metadata.gz: b87b7e7786c552580c4557f7a103779316b1efb87e4469a491d3f1eee8c48d7ee46558072253c1a1fa5a6198f49d2761284d045f624e2cd0caa06c10ad076c5b
7
- data.tar.gz: 8865d6dc64fa54bc6a9824c73be20bbb21d33bd6abc71d291664d6a600ce881de0311d3f4a368e1dd4d259102f6c1ef446abf686a222da86fbce17491d5298fc
6
+ metadata.gz: 3842d2a06aa8dae722c81c0475096a808a44955106f00dd681da92b66ac34c1fe08bd8ad9f86dc05cdfcbd4bfef16cb2bc78f58c928726ec15fd45d05679b2aa
7
+ data.tar.gz: efd07443ff09568c7b5f591890a24fbb96db37df4a7977f6651ef44673f9378bba04a2939d39ab1f33abf1ac31c1294207237657330c52835475d27466c06279
data/README.markdown CHANGED
@@ -37,12 +37,12 @@ Unique features:
37
37
 
38
38
  # TODO
39
39
 
40
- 1. Add mathjax (copy to target if present, otherwise use CDN)
41
40
  1. Read desired dependencies (URLs or version numbers) from ENV vars or a YAML file (with sensible defaults coming from this project)
42
41
  1. Re-add ditaa processing, or replace with [mermaid-filter](https://github.com/raghur/mermaid-filter)
43
42
 
44
43
  Milestone: 1.1
45
44
 
45
+ 1. Allow self-hosted mathjax (copy to target)
46
46
  1. Charts using [vega-lite](https://vega.github.io/vega-lite/usage/embed.html)
47
47
  1. Add guard-livereload to the generated project
48
48
  1. Expose customization of
@@ -51,6 +51,7 @@ Milestone: 1.1
51
51
  * theme
52
52
  * slideNumber
53
53
  * history
54
+ * metadata (e.g. `lang=de_DE`)
54
55
  1. Provide a docker image so that we can run without installing everything
55
56
  1. PDF output
56
57
  1. Make the initial set of files more meaningful (e.g. add the project name, `git config user.name` etc.)
@@ -33,6 +33,8 @@ load "#{__dir__}/tasks/reveal.js.rake"
33
33
 
34
34
  git_dirty_file DIRTY_FILE
35
35
 
36
+ MATH_JAX_VERSION = '2.7.5'
37
+
36
38
  desc "Build #{TARGET_FILE}"
37
39
  file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILE, DIRTY_FILE] + ASSETS + RESIZED_ASSETS + HEADERS do
38
40
  sh %(pandoc
@@ -45,6 +47,8 @@ file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILE, DIRTY_FILE] +
45
47
  --variable slideNumber=true
46
48
  --variable history=true
47
49
  --variable revealjs-url=#{REVEAL_JS}
50
+ --mathjax=https://cdnjs.cloudflare.com/ajax/libs/mathjax/#{MATH_JAX_VERSION}/MathJax.js?config=TeX-AMS_CHTML-full
51
+ --include-in-header=#{__dir__ + '/../../templates/mathjax/config.js'}
48
52
  #{HEADERS.map { |h| "--include-in-header=#{h}" }.join("\n")}
49
53
  #{GPP_FILE}
50
54
  ).split("\n").join(' ')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Revealing
4
- VERSION = '1.0.7'
4
+ VERSION = '1.0.8'
5
5
  end
@@ -0,0 +1,5 @@
1
+ <script type="text/x-mathjax-config">
2
+ MathJax.Hub.Register.StartupHook("End Jax",function () {
3
+ return MathJax.Hub.setRenderer("SVG");
4
+ });
5
+ </script>
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.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steffen Uhlig
@@ -211,6 +211,7 @@ files:
211
211
  - templates/init/README.markdown
212
212
  - templates/init/Rakefile
213
213
  - templates/init/src/index.markdown
214
+ - templates/mathjax/config.js
214
215
  homepage:
215
216
  licenses:
216
217
  - MIT