stack-site-builder 1.25.5 → 1.26.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.
package/CHANGELOG.md CHANGED
@@ -11,6 +11,18 @@ content schema, while a consuming site supplies only content, taxonomy data and
11
11
  config. Sites track the theme with `pnpm up stack-site-builder`, so each release
12
12
  here is a plain version bump they pull in.
13
13
 
14
+ ## [1.26.0] - 2026-09-02
15
+
16
+ ### Added
17
+
18
+ - **PDF pages carry the deck footer and a page number.** The deck's fixed
19
+ footer and pager are screen chrome and stay hidden in print — a fixed
20
+ element would repeat over the content of every page, and the pager would
21
+ stamp the same "current" number everywhere. The deck script now gives every
22
+ slide its own print-only bottom line instead: the footer's text (presenter
23
+ · date) on the left and `n / total` on the right, styled like the screen
24
+ footer. A deck with no footer configured still gets the page numbers.
25
+
14
26
  ## [1.25.5] - 2026-09-02
15
27
 
16
28
  ### Fixed
@@ -652,6 +664,7 @@ catalog sites from a thin content-only repository.
652
664
  - **Standalone development setup** — a devcontainer and a minimal `playground/`
653
665
  consuming site for developing and previewing the theme on its own.
654
666
 
667
+ [1.26.0]: https://github.com/CodeComposeStudio/stack-site-builder/compare/v1.25.5...v1.26.0
655
668
  [1.25.5]: https://github.com/CodeComposeStudio/stack-site-builder/compare/v1.25.4...v1.25.5
656
669
  [1.25.4]: https://github.com/CodeComposeStudio/stack-site-builder/compare/v1.25.3...v1.25.4
657
670
  [1.25.3]: https://github.com/CodeComposeStudio/stack-site-builder/compare/v1.25.2...v1.25.3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stack-site-builder",
3
3
  "type": "module",
4
- "version": "1.25.5",
4
+ "version": "1.26.0",
5
5
  "license": "MIT",
6
6
  "description": "The engine behind the awesome-*-stack catalog sites: an Astro theme with the catalog/concepts/articles/slides/samples routes, components, styles and markdown pipeline. Sites provide content, taxonomy data and config.",
7
7
  "repository": {
@@ -192,6 +192,31 @@ const priv = entry.data.private;
192
192
  const btnNext = chrome<HTMLButtonElement>('[data-next]');
193
193
  if (elTot) elTot.textContent = String(total);
194
194
 
195
+ // Print-only per-slide footer. The deck's fixed footer and pager are
196
+ // screen chrome — hidden in print, where a fixed element would repeat
197
+ // over the content of every page (and the pager would stamp the same
198
+ // "current" number everywhere). Instead each slide carries its own
199
+ // line: the footer's text on the left, its page number on the right.
200
+ {
201
+ const foot = chrome<HTMLElement>('.aas-deck-footer');
202
+ const footText = foot
203
+ ? Array.from(foot.children)
204
+ .map((c) => c.textContent?.trim() ?? '')
205
+ .filter((t) => t && t !== '·')
206
+ .join(' · ')
207
+ : '';
208
+ slides.forEach((s, i) => {
209
+ const meta = document.createElement('div');
210
+ meta.className = 'aas-slide-print-meta';
211
+ const left = document.createElement('span');
212
+ left.textContent = footText;
213
+ const right = document.createElement('span');
214
+ right.textContent = `${i + 1} / ${total}`;
215
+ meta.append(left, right);
216
+ s.appendChild(meta);
217
+ });
218
+ }
219
+
195
220
  // Heavy embeds (interactive demo iframes) jank slide transitions the
196
221
  // moment they run — worse once the viewer has interacted with one. So
197
222
  // embeds are click-to-run: each iframe starts blank behind a "run"
@@ -2341,6 +2341,27 @@ summary {
2341
2341
  color: var(--aas-muted);
2342
2342
  opacity: 0.7;
2343
2343
  }
2344
+ /* Print-only per-slide footer line, injected by the deck script: the fixed
2345
+ footer above (and the pager) are screen chrome, so in a PDF each slide
2346
+ carries its own copy — footer text left, page number right — styled to
2347
+ read like the screen footer. */
2348
+ .aas-slide-print-meta {
2349
+ display: none;
2350
+ }
2351
+ @media print {
2352
+ .aas-slide .aas-slide-print-meta {
2353
+ display: flex;
2354
+ justify-content: space-between;
2355
+ align-items: center;
2356
+ position: absolute;
2357
+ left: 1rem;
2358
+ right: 1rem;
2359
+ bottom: 1.1rem;
2360
+ font-size: 0.8rem;
2361
+ color: var(--aas-muted);
2362
+ opacity: 0.7;
2363
+ }
2364
+ }
2344
2365
  .aas-deck-footer-sep {
2345
2366
  opacity: 0.5;
2346
2367
  }