al_folio_distill 1.0.0
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 +7 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE +21 -0
- data/README.md +47 -0
- data/assets/css/al-folio-distill.css +1 -0
- data/assets/js/distillpub/overrides.js +27 -0
- data/assets/js/distillpub/provenance.json +16 -0
- data/assets/js/distillpub/template.v2.js +9616 -0
- data/assets/js/distillpub/template.v2.js.map +1 -0
- data/assets/js/distillpub/transforms.v2.js +14557 -0
- data/assets/js/distillpub/transforms.v2.js.map +1 -0
- data/lib/al_folio_distill/version.rb +5 -0
- data/lib/al_folio_distill.rb +73 -0
- data/scripts/distill/sync_distill.sh +72 -0
- data/templates/distill/render.liquid +131 -0
- data/templates/distill/scripts.liquid +92 -0
- metadata +150 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2254b52a488b803a1df13e9b5d5e686a6ea7bf088f6c94814a141e396f3a6e91
|
|
4
|
+
data.tar.gz: 51ff90bde669217b13152b82de8fa69c7d6b7c196a0787c2471547bda18decde
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 9089441a1567a287aefe6eee5e08c736553be24ed2058d0aba7ba9a464c436cccf3fef5318d149fa93c38219affbe538750e2879816c69082edcd16542d03e66
|
|
7
|
+
data.tar.gz: 8208fb75e7bdc639abbf61d6c4127be381bb1807fb2cd45e6a15c4b829a1959ec852873d3afc3bf689d99e946519eadf0aa21de4a3e884a2e034038ba1329b1c
|
data/CHANGELOG.md
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 al-folio maintainers
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# al-folio-distill
|
|
2
|
+
|
|
3
|
+
Distill runtime/plugin extraction for al-folio v1.x.
|
|
4
|
+
|
|
5
|
+
## What it provides
|
|
6
|
+
|
|
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`
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
Add the gem and plugin:
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
gem 'al_folio_distill'
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```yml
|
|
21
|
+
plugins:
|
|
22
|
+
- al_folio_distill
|
|
23
|
+
al_folio:
|
|
24
|
+
features:
|
|
25
|
+
distill:
|
|
26
|
+
enabled: true
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`al_folio_core` delegates `layout: distill` rendering to this plugin.
|
|
30
|
+
|
|
31
|
+
## Vendored Distill runtime policy
|
|
32
|
+
|
|
33
|
+
This gem ships prebuilt Distill runtime assets for end users (no npm step at gem install time).
|
|
34
|
+
|
|
35
|
+
- Source of truth: `al-org-dev/distill-template` (`al-folio` branch)
|
|
36
|
+
- Sync script: `scripts/distill/sync_distill.sh`
|
|
37
|
+
- 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
|
+
|
|
41
|
+
Refresh vendored assets:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
./scripts/distill/sync_distill.sh
|
|
45
|
+
# or pin a specific ref
|
|
46
|
+
./scripts/distill/sync_distill.sh <commit-sha>
|
|
47
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d-byline{border-top-color:var(--global-divider-color) !important}d-byline h3{color:var(--global-text-color) !important}d-byline a,d-article d-byline a{color:var(--global-text-color) !important}d-byline a:hover,d-article d-byline a:hover{color:var(--global-hover-color) !important}d-article{border-top-color:var(--global-divider-color) !important}d-article p,d-article h1,d-article h2,d-article h3,d-article h4,d-article h5,d-article h6,d-article li,d-article table{color:var(--global-text-color) !important}d-article h1,d-article h2,d-article hr,d-article table,d-article table th,d-article table td{border-bottom-color:var(--global-divider-color) !important}d-article a{color:var(--global-theme-color) !important}d-article a:hover{color:var(--global-theme-color) !important}d-article b i{display:inline}d-article blockquote{border-left:2px solid var(--global-theme-color) !important}d-article details{color:var(--global-text-color);background-color:var(--global-code-bg-color);margin-top:0;padding:8px 12px;position:relative;border-radius:6px;display:block;margin-bottom:20px;grid-column:text;overflow:auto;max-width:100%}d-article details summary{color:var(--global-theme-color)}d-article details p{margin-top:.5rem;margin-bottom:.5rem}d-article d-contents{align-self:start;grid-column:1/4;grid-row:auto/span 4;justify-self:end;margin-top:0em;padding-left:2em;padding-right:3em;border-right:1px solid var(--global-divider-color);width:max(70%,300px);margin-right:0px;margin-top:0em;display:grid;grid-template-columns:minmax(8px, 1fr) [toc] auto minmax(8px, 1fr) [toc-line] 1px minmax(32px, 2fr)}d-article d-contents nav{grid-column:toc}d-article d-contents nav a{border-bottom:none !important}d-article d-contents nav a:hover{border-bottom:1px solid var(--global-text-color) !important}d-article d-contents nav h3{margin-top:0;margin-bottom:1em}d-article d-contents nav div{display:block;outline:none;margin-bottom:.8em;color:rgba(0,0,0,.8);font-weight:bold}d-article d-contents nav ul{padding-left:1em;margin-top:0;margin-bottom:6px;list-style-type:none}d-article d-contents nav ul li{margin-bottom:.25em}d-article d-contents .figcaption{line-height:1.4em}d-article d-contents toc-line{border-right:1px solid var(--global-divider-color);grid-column:toc-line}d-article d-footnote{scroll-margin-top:66px;color:var(--global-theme-color) !important}d-article d-footnote:hover{color:var(--global-hover-color) !important}d-article d-cite a,d-article a.citation{color:var(--global-theme-color) !important}d-article d-cite a:hover,d-article a.citation:hover{color:var(--global-hover-color) !important}d-appendix{border-top-color:var(--global-divider-color) !important;color:var(--global-distill-app-color) !important}d-appendix h3,d-appendix li,d-appendix span{color:var(--global-distill-app-color) !important}d-appendix a,d-appendix a.footnote-backlink{color:var(--global-distill-app-color) !important}d-appendix a:hover,d-appendix a.footnote-backlink:hover{color:var(--global-hover-color) !important}@media(max-width: 1024px){d-article d-contents{display:block;grid-column-start:2;grid-column-end:-2;padding-bottom:.5em;margin-bottom:1em;padding-top:.5em;width:100%;border:1px solid var(--global-divider-color)}d-article d-contents nav{grid-column:none}}/*# sourceMappingURL=al-folio-distill.css.map */
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
$(window).on("load", function () {
|
|
2
|
+
document.querySelectorAll("d-footnote").forEach(function (footnote) {
|
|
3
|
+
footnote.shadowRoot.querySelector("sup > span").setAttribute("style", "color: var(--global-theme-color);");
|
|
4
|
+
footnote.shadowRoot
|
|
5
|
+
.querySelector("d-hover-box")
|
|
6
|
+
.shadowRoot.querySelector("style")
|
|
7
|
+
.sheet.insertRule(".panel {background-color: var(--global-bg-color) !important;}");
|
|
8
|
+
footnote.shadowRoot
|
|
9
|
+
.querySelector("d-hover-box")
|
|
10
|
+
.shadowRoot.querySelector("style")
|
|
11
|
+
.sheet.insertRule(".panel {border-color: var(--global-divider-color) !important;}");
|
|
12
|
+
});
|
|
13
|
+
// Override styles of the citations.
|
|
14
|
+
document.querySelectorAll("d-cite").forEach(function (cite) {
|
|
15
|
+
cite.shadowRoot.querySelector("div > span").setAttribute("style", "color: var(--global-theme-color);");
|
|
16
|
+
cite.shadowRoot.querySelector("style").sheet.insertRule("ul li a {color: var(--global-text-color) !important; text-decoration: none;}");
|
|
17
|
+
cite.shadowRoot.querySelector("style").sheet.insertRule("ul li a:hover {color: var(--global-theme-color) !important;}");
|
|
18
|
+
cite.shadowRoot
|
|
19
|
+
.querySelector("d-hover-box")
|
|
20
|
+
.shadowRoot.querySelector("style")
|
|
21
|
+
.sheet.insertRule(".panel {background-color: var(--global-bg-color) !important;}");
|
|
22
|
+
cite.shadowRoot
|
|
23
|
+
.querySelector("d-hover-box")
|
|
24
|
+
.shadowRoot.querySelector("style")
|
|
25
|
+
.sheet.insertRule(".panel {border-color: var(--global-divider-color) !important;}");
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"upstream_repo": "https://github.com/al-org-dev/distill-template.git",
|
|
3
|
+
"upstream_branch": "al-folio",
|
|
4
|
+
"upstream_ref": "d907ccdb526166c615f53487ec01e92e92f28f46",
|
|
5
|
+
"upstream_ref_short": "d907ccd",
|
|
6
|
+
"synced_at_utc": "2026-02-16T16:16:27Z",
|
|
7
|
+
"toolchain": {
|
|
8
|
+
"sync_mode": "copy-dist-artifacts"
|
|
9
|
+
},
|
|
10
|
+
"remote_loader_patched": false,
|
|
11
|
+
"assets": {
|
|
12
|
+
"template.v2.js": "4790831ced02f7c4f2009b2cdf6978ceda8351f0060d3b59dd9b3aab132e271a",
|
|
13
|
+
"transforms.v2.js": "70e3f488e23ec379d33a10a60311ec60b570b3b2d5f1823e9159f661c315184e",
|
|
14
|
+
"overrides.js": "74c9034c642cbfbaa0deafbee774aff044463ff117e700018d444a9d2901bb1e"
|
|
15
|
+
}
|
|
16
|
+
}
|