al_folio_distill 1.0.1 → 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: df0f9b22ed5ea905ecf373ccad9afa7d2f1a6ccbe18790f99cb27b7bb557ed5d
4
- data.tar.gz: f8732509d8fe3ccf63140a11e0f7c5d2aa99f3b84d250b5fc97eea191abb0fcc
3
+ metadata.gz: e85ca554399308d28af93a3d025b0d70c46b9d057563236682ce17382eecf8cd
4
+ data.tar.gz: bf90c691657352a5c90b0d74381a73b37cfcc00ede4fc459aefe7d8e437eacb7
5
5
  SHA512:
6
- metadata.gz: 0517c848db736566286c1751c5087fa56a758b2c37aa2d61c82a7d235bc44287225d6221132c2c4203f6724a4cc01357ae2feee9caefa6b5fa5ce9a5b725ec95
7
- data.tar.gz: fb659768cace7b798dcb297261c0725cd498006d316e534db225116002d0b4fdbfec5bc745c99dd331e86a0ca052919f8543bf9c6603cac2a909d3580390311d
6
+ metadata.gz: df094843f4a0943e5e621b1346700580e7b030f1b12a85e5c739fd81760e9405ab395eea913ce7b170dfaf8b2c22aa094ba339f7f0085f91a18cc5fa801ed44d
7
+ data.tar.gz: 25fc0a770e18e5c31c57bb22727061dc69a0262d998ff465ece6acc73489499a8c90fba065d47e225dc6aa1d981c682c8d833b6c931ff88eeea40f07e907f7f0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ## 1.0.1 - 2026-02-17
4
8
 
5
9
  - Updated Distill scripts template to use `tabs.js` (non-minified path) instead of removed `tabs.min.js`.
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.1"
4
+ VERSION = "1.0.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: al_folio_distill
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - al-folio maintainers