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 +4 -4
- data/CHANGELOG.md +9 -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
- data/templates/distill/scripts.liquid +10 -2
- metadata +3 -6
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,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
|
|
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
|
}
|
|
@@ -73,12 +73,20 @@
|
|
|
73
73
|
|
|
74
74
|
{% if page.tabs %}
|
|
75
75
|
<!-- Jekyll Tabs -->
|
|
76
|
-
<script src="{{ '/assets/js/tabs.
|
|
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
|
-
|
|
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.
|
|
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:
|
|
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:
|
|
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: []
|