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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +14 -14
- data/assets/js/distillpub/overrides.js +1 -1
- data/assets/js/distillpub/provenance.json +4 -1
- data/lib/al_folio_distill/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e85ca554399308d28af93a3d025b0d70c46b9d057563236682ce17382eecf8cd
|
|
4
|
+
data.tar.gz: bf90c691657352a5c90b0d74381a73b37cfcc00ede4fc459aefe7d8e437eacb7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
9
|
-
-
|
|
10
|
-
-
|
|
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
|
-
##
|
|
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
|
-
```
|
|
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
|
|
27
|
+
`al_folio_core` delegates Distill rendering to this plugin.
|
|
30
28
|
|
|
31
|
-
## Vendored
|
|
29
|
+
## Vendored runtime policy
|
|
32
30
|
|
|
33
|
-
This gem ships prebuilt Distill runtime assets for end users (no npm
|
|
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
|
|
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
|
-
|
|
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": "
|
|
17
|
+
"overrides.js": "41ce4a3744a9083e8913df1256432d2233ba16ff9b40c4878bdb3f35d73c0e8e"
|
|
15
18
|
}
|
|
16
19
|
}
|