hematite 0.1.3 → 0.1.4

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: 7c31b77be5a329f70985b04f78078a87cf74d79c1f462018d8eed576e18efadc
4
- data.tar.gz: 643ca6f28aaf67740b9e71b9de4a0f21bbe08f0f139b95e7b67819b28f9b1648
3
+ metadata.gz: 57c0b3ae9bdec4a2e37d649a52dfbacb84a8c09b258d2a5bb676571c5fed060d
4
+ data.tar.gz: '09bc9aa4956973f5cbb3dfa1e4889b9adfe70928eb5f2f25518b09b863a4e8ed'
5
5
  SHA512:
6
- metadata.gz: 3200f91d6ddd479b360c08b74862ff2a1260d45a92d3e84aa5c9686556cea7303835129c10329bd1b84d0cf965225eeb0808771f4d8edb338870feeb2d9c52e2
7
- data.tar.gz: 79a331beca39bdfb4c1f8fb9447a3f04f9f36cb7f17856103b24353c875bc2ca36a77f866613d03d11daa3fff95a45de727d4a7a977eb022f5f4df31f09590d7
6
+ metadata.gz: 86065a34d00cc7d8844bdd02883dc7c8dd25c4c6436a1d4b28747d0140d4409d0ac7e7a910d8fe4f54ba546c303208cb347d598141a6e66b1d0c5607e282f249
7
+ data.tar.gz: 2b218f88fec888c6029650fdd29b0809729cd321905e25e9151e26173347e7488813eebcc79d32c7ced657d8a4ce7a0e2acb4b9386e9d683607b6622e6911784
@@ -5,3 +5,7 @@
5
5
 
6
6
  {% include mermaid_includes.html %}
7
7
  {% include katex_includes.html %}
8
+
9
+ <!-- Page/site-specific imports and configuration -->
10
+ {{ site.additional_import_html | default: "" }}
11
+ {{ page.additional_import_html | default: "" }}
@@ -3,6 +3,10 @@ layout: default
3
3
  ---
4
4
 
5
5
  <!-- Defines a https://remarkjs.com/ slideshow -->
6
+ <!-- Configure remark with
7
+ page.remark_presentation_config, site.remark_presentation_config,
8
+ page.remark_presentation_config_html
9
+ -->
6
10
 
7
11
  {% assign frame_resource_url = 'assets/html/remark_presentation_frame.html.resource' | relative_url %}
8
12
 
@@ -19,7 +23,8 @@ layout: default
19
23
  presentationFrame.src = {{ frame_resource_url | jsonify }};
20
24
  window.presentationFrameLoaded = false;
21
25
 
22
- let config = {{ page.remark_presentation_config | default: site.remark_presentation_config | jsonify }};
26
+ let config =
27
+ {{ page.remark_presentation_config | default: site.remark_presentation_config | jsonify }};
23
28
  config ??= {};
24
29
 
25
30
  config.source = {{ page.content | jsonify }};
@@ -47,6 +52,12 @@ layout: default
47
52
  presentationDoc.write("<!DOCTYPE html>");
48
53
  presentationDoc.write(slideshowHtml);
49
54
  presentationDoc.write(libraryImports);
55
+
56
+ // Any additional configuration scripts/html specific to remark
57
+ presentationDoc.write(unescape(
58
+ {{ page.remark_presentation_config_html | default: "" | url_encode | replace: "+", " " | jsonify }}
59
+ ));
60
+
50
61
  presentationDoc.write(`
51
62
  <${"script"}>
52
63
  if (window.MERMAID_CONFIG) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hematite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Heino