al_folio_distill 1.0.0 → 1.0.2

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: 2254b52a488b803a1df13e9b5d5e686a6ea7bf088f6c94814a141e396f3a6e91
4
- data.tar.gz: 51ff90bde669217b13152b82de8fa69c7d6b7c196a0787c2471547bda18decde
3
+ metadata.gz: e85ca554399308d28af93a3d025b0d70c46b9d057563236682ce17382eecf8cd
4
+ data.tar.gz: bf90c691657352a5c90b0d74381a73b37cfcc00ede4fc459aefe7d8e437eacb7
5
5
  SHA512:
6
- metadata.gz: 9089441a1567a287aefe6eee5e08c736553be24ed2058d0aba7ba9a464c436cccf3fef5318d149fa93c38219affbe538750e2879816c69082edcd16542d03e66
7
- data.tar.gz: 8208fb75e7bdc639abbf61d6c4127be381bb1807fb2cd45e6a15c4b829a1959ec852873d3afc3bf689d99e946519eadf0aa21de4a3e884a2e034038ba1329b1c
6
+ metadata.gz: df094843f4a0943e5e621b1346700580e7b030f1b12a85e5c739fd81760e9405ab395eea913ce7b170dfaf8b2c22aa094ba339f7f0085f91a18cc5fa801ed44d
7
+ data.tar.gz: 25fc0a770e18e5c31c57bb22727061dc69a0262d998ff465ece6acc73489499a8c90fba065d47e225dc6aa1d981c682c8d833b6c931ff88eeea40f07e907f7f0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2 - 2026-06-01
4
+
5
+ - De-jQueried the vendored `assets/js/distillpub/overrides.js`. Its top-level `$(window).on("load", ...)` threw `ReferenceError: $ is not defined` on every distill page (jQuery was removed in al-folio v1), so the footnote/citation dark-theme overrides never applied and the page logged a console error. Switched to `window.addEventListener("load", ...)`; the handler body was already vanilla. Updated the pinned SHA-256 in `provenance.json` and the runtime contract test, and recorded the change under `local_patches` (port it to the upstream distill-template so a future re-sync preserves it).
6
+
7
+ ## 1.0.1 - 2026-02-17
8
+
9
+ - Updated Distill scripts template to use `tabs.js` (non-minified path) instead of removed `tabs.min.js`.
10
+ - Switched back-to-top loading to the shared CDN contract (`third_party_libraries['vanilla-back-to-top']`) to avoid missing local asset lookups.
11
+
3
12
  ## 1.0.0
4
13
 
5
14
  - Initial Distill extraction from `al_folio_core`.
data/README.md CHANGED
@@ -1,23 +1,21 @@
1
1
  # al-folio-distill
2
2
 
3
- Distill runtime/plugin extraction for al-folio v1.x.
3
+ `al_folio_distill` provides Distill support for `al-folio` v1.x.
4
4
 
5
5
  ## What it provides
6
6
 
7
7
  - Distill layout renderer tag: `{% al_folio_distill_render %}`
8
- - Distill templates/includes used by `layout: distill`
9
- - Packaged Distill JS runtime under `/assets/js/distillpub/*`
10
- - Packaged Distill stylesheet at `/assets/css/al-folio-distill.css`
8
+ - Distill templates/includes for `layout: distill`
9
+ - Distill runtime assets under `/assets/js/distillpub/*`
10
+ - Distill stylesheet at `/assets/css/al-folio-distill.css`
11
11
 
12
- ## Usage
13
-
14
- Add the gem and plugin:
12
+ ## Installation
15
13
 
16
14
  ```ruby
17
15
  gem 'al_folio_distill'
18
16
  ```
19
17
 
20
- ```yml
18
+ ```yaml
21
19
  plugins:
22
20
  - al_folio_distill
23
21
  al_folio:
@@ -26,22 +24,24 @@ al_folio:
26
24
  enabled: true
27
25
  ```
28
26
 
29
- `al_folio_core` delegates `layout: distill` rendering to this plugin.
27
+ `al_folio_core` delegates Distill rendering to this plugin.
30
28
 
31
- ## Vendored Distill runtime policy
29
+ ## Vendored runtime policy
32
30
 
33
- This gem ships prebuilt Distill runtime assets for end users (no npm step at gem install time).
31
+ This gem ships prebuilt Distill runtime assets for end users (no npm at gem-install time).
34
32
 
35
33
  - Source of truth: `al-org-dev/distill-template` (`al-folio` branch)
36
34
  - Sync script: `scripts/distill/sync_distill.sh`
37
35
  - Provenance metadata: `assets/js/distillpub/provenance.json`
38
- - Runtime parity policy: vendored runtime hashes are pinned to match `al-folio` `main`
39
- snapshots carried by the upstream `al-folio` branch
40
36
 
41
- Refresh vendored assets:
37
+ Refresh assets:
42
38
 
43
39
  ```bash
44
40
  ./scripts/distill/sync_distill.sh
45
41
  # or pin a specific ref
46
42
  ./scripts/distill/sync_distill.sh <commit-sha>
47
43
  ```
44
+
45
+ ## Contributing
46
+
47
+ Distill runtime/template behavior belongs here. Starter-only docs/demo changes belong in `al-folio`.
@@ -1,4 +1,4 @@
1
- $(window).on("load", function () {
1
+ window.addEventListener("load", function () {
2
2
  document.querySelectorAll("d-footnote").forEach(function (footnote) {
3
3
  footnote.shadowRoot.querySelector("sup > span").setAttribute("style", "color: var(--global-theme-color);");
4
4
  footnote.shadowRoot
@@ -8,9 +8,12 @@
8
8
  "sync_mode": "copy-dist-artifacts"
9
9
  },
10
10
  "remote_loader_patched": false,
11
+ "local_patches": [
12
+ "overrides.js: de-jQuery the load handler ($(window).on('load', ...) -> window.addEventListener('load', ...)); jQuery is not loaded in al-folio v1. Port this upstream so the next sync preserves it."
13
+ ],
11
14
  "assets": {
12
15
  "template.v2.js": "4790831ced02f7c4f2009b2cdf6978ceda8351f0060d3b59dd9b3aab132e271a",
13
16
  "transforms.v2.js": "70e3f488e23ec379d33a10a60311ec60b570b3b2d5f1823e9159f661c315184e",
14
- "overrides.js": "74c9034c642cbfbaa0deafbee774aff044463ff117e700018d444a9d2901bb1e"
17
+ "overrides.js": "41ce4a3744a9083e8913df1256432d2233ba16ff9b40c4878bdb3f35d73c0e8e"
15
18
  }
16
19
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AlFolioDistill
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.2"
5
5
  end
@@ -73,12 +73,20 @@
73
73
 
74
74
  {% if page.tabs %}
75
75
  <!-- Jekyll Tabs -->
76
- <script src="{{ '/assets/js/tabs.min.js' | relative_url | bust_file_cache }}"></script>
76
+ <script src="{{ '/assets/js/tabs.js' | relative_url | bust_file_cache }}"></script>
77
77
  {% endif %}
78
78
 
79
79
  {% if site.back_to_top %}
80
80
  <!-- Back to Top -->
81
- <script src="{{ '/assets/js/vanilla-back-to-top.min.js' | relative_url | bust_file_cache }}"></script>
81
+ {% assign back_to_top_js = site.third_party_libraries['vanilla-back-to-top'].url.js
82
+ | default: 'https://cdn.jsdelivr.net/npm/vanilla-back-to-top@7.2.1/dist/vanilla-back-to-top.min.js'
83
+ %}
84
+ {% assign back_to_top_integrity = site.third_party_libraries['vanilla-back-to-top'].integrity.js %}
85
+ {% if back_to_top_integrity %}
86
+ <script src="{{ back_to_top_js }}" integrity="{{ back_to_top_integrity }}" crossorigin="anonymous"></script>
87
+ {% else %}
88
+ <script src="{{ back_to_top_js }}"></script>
89
+ {% endif %}
82
90
  <script>
83
91
  addBackToTop();
84
92
  </script>
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: al_folio_distill
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - al-folio maintainers
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-02-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: jekyll
@@ -128,7 +127,6 @@ metadata:
128
127
  allowed_push_host: https://rubygems.org
129
128
  homepage_uri: https://github.com/al-org-dev/al-folio-distill
130
129
  source_code_uri: https://github.com/al-org-dev/al-folio-distill
131
- post_install_message:
132
130
  rdoc_options: []
133
131
  require_paths:
134
132
  - lib
@@ -143,8 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
141
  - !ruby/object:Gem::Version
144
142
  version: '0'
145
143
  requirements: []
146
- rubygems_version: 3.4.10
147
- signing_key:
144
+ rubygems_version: 4.0.6
148
145
  specification_version: 4
149
146
  summary: Distill rendering plugin for al-folio v1.x
150
147
  test_files: []