stack-site-builder 1.25.5 → 1.26.1

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,31 @@ 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.1] - 2026-11-20
15
+
16
+ ### Fixed
17
+
18
+ - **Product landings and the cards home scrolled sideways by a few pixels.**
19
+ Their full-bleed sections (`.aas-bleed`) were `100vw` wide, and `100vw`
20
+ includes a classic, always-shown vertical scrollbar (Windows, or macOS with
21
+ "Show scroll bars: Always" or a mouse attached), so each section stuck out
22
+ past the page by half the scrollbar's width and the page gained a horizontal
23
+ scrollbar. On pages with a bleed, `<body>` is now an inline-size container
24
+ and the sections size in `cqw` against it, so they span exactly the visible
25
+ width. Browsers without container units keep the old `100vw` sizing.
26
+
27
+ ## [1.26.0] - 2026-09-02
28
+
29
+ ### Added
30
+
31
+ - **PDF pages carry the deck footer and a page number.** The deck's fixed
32
+ footer and pager are screen chrome and stay hidden in print — a fixed
33
+ element would repeat over the content of every page, and the pager would
34
+ stamp the same "current" number everywhere. The deck script now gives every
35
+ slide its own print-only bottom line instead: the footer's text (presenter
36
+ · date) on the left and `n / total` on the right, styled like the screen
37
+ footer. A deck with no footer configured still gets the page numbers.
38
+
14
39
  ## [1.25.5] - 2026-09-02
15
40
 
16
41
  ### Fixed
@@ -652,6 +677,8 @@ catalog sites from a thin content-only repository.
652
677
  - **Standalone development setup** — a devcontainer and a minimal `playground/`
653
678
  consuming site for developing and previewing the theme on its own.
654
679
 
680
+ [1.26.1]: https://github.com/CodeComposeStudio/stack-site-builder/compare/v1.26.0...v1.26.1
681
+ [1.26.0]: https://github.com/CodeComposeStudio/stack-site-builder/compare/v1.25.5...v1.26.0
655
682
  [1.25.5]: https://github.com/CodeComposeStudio/stack-site-builder/compare/v1.25.4...v1.25.5
656
683
  [1.25.4]: https://github.com/CodeComposeStudio/stack-site-builder/compare/v1.25.3...v1.25.4
657
684
  [1.25.3]: https://github.com/CodeComposeStudio/stack-site-builder/compare/v1.25.2...v1.25.3
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "stack-site-builder",
3
3
  "type": "module",
4
- "version": "1.25.5",
4
+ "version": "1.26.1",
5
5
  "license": "MIT",
6
+ "packageManager": "pnpm@11.7.0",
6
7
  "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
8
  "repository": {
8
9
  "type": "git",
@@ -16,6 +17,11 @@
16
17
  "dev",
17
18
  "CHANGELOG.md"
18
19
  ],
20
+ "scripts": {
21
+ "dev": "pnpm --filter playground dev",
22
+ "build": "pnpm --filter playground build",
23
+ "check": "pnpm --filter playground check"
24
+ },
19
25
  "exports": {
20
26
  ".": {
21
27
  "types": "./index.d.ts",
@@ -53,10 +59,5 @@
53
59
  "@types/markdown-it": "^14.1.2",
54
60
  "astro": "^5.7.0",
55
61
  "typescript": "^6.0.3"
56
- },
57
- "scripts": {
58
- "dev": "pnpm --filter playground dev",
59
- "build": "pnpm --filter playground build",
60
- "check": "pnpm --filter playground check"
61
62
  }
62
- }
63
+ }
@@ -114,4 +114,14 @@ const resolveHref = (href: string, external?: boolean) =>
114
114
  right: 50%;
115
115
  width: 100vw;
116
116
  }
117
+ /* 100vw counts a classic (always-shown) vertical scrollbar, so the section
118
+ stuck out past the page and the page scrolled sideways. 100cqw measures
119
+ <body>, which global.css makes a container on pages with a bleed. */
120
+ @supports (width: 1cqw) {
121
+ .aas-bleed {
122
+ margin-left: -50cqw;
123
+ margin-right: -50cqw;
124
+ width: 100cqw;
125
+ }
126
+ }
117
127
  </style>
@@ -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"
@@ -336,6 +336,16 @@ const altBg = (i: number) => i % 2 === 1;
336
336
  right: 50%;
337
337
  width: 100vw;
338
338
  }
339
+ /* 100vw counts a classic (always-shown) vertical scrollbar, so the section
340
+ stuck out past the page and the page scrolled sideways. 100cqw measures
341
+ <body>, which global.css makes a container on pages with a bleed. */
342
+ @supports (width: 1cqw) {
343
+ .aas-bleed {
344
+ margin-left: -50cqw;
345
+ margin-right: -50cqw;
346
+ width: 100cqw;
347
+ }
348
+ }
339
349
  /* Screenshot inside the device-frame art. The frame draws on top; the
340
350
  screen sits inset behind it (tune per frame art via site CSS if needed). */
341
351
  .aas-phone {
@@ -468,6 +468,14 @@ body {
468
468
  font-family: var(--aas-sans);
469
469
  }
470
470
 
471
+ /* Full-bleed sections (.aas-bleed: the product landing, the cards home) size
472
+ themselves in cqw against <body> instead of 100vw, which includes a classic
473
+ vertical scrollbar and made those pages scroll sideways by half its width.
474
+ Scoped to pages that have one, so other pages keep a plain <body>. */
475
+ body:has(.aas-bleed) {
476
+ container-type: inline-size;
477
+ }
478
+
471
479
  /* Tailwind v4 no longer sets a pointer cursor on buttons; restore it (and for
472
480
  <summary>, used by the custom dropdowns). */
473
481
  button:not(:disabled),
@@ -2341,6 +2349,27 @@ summary {
2341
2349
  color: var(--aas-muted);
2342
2350
  opacity: 0.7;
2343
2351
  }
2352
+ /* Print-only per-slide footer line, injected by the deck script: the fixed
2353
+ footer above (and the pager) are screen chrome, so in a PDF each slide
2354
+ carries its own copy — footer text left, page number right — styled to
2355
+ read like the screen footer. */
2356
+ .aas-slide-print-meta {
2357
+ display: none;
2358
+ }
2359
+ @media print {
2360
+ .aas-slide .aas-slide-print-meta {
2361
+ display: flex;
2362
+ justify-content: space-between;
2363
+ align-items: center;
2364
+ position: absolute;
2365
+ left: 1rem;
2366
+ right: 1rem;
2367
+ bottom: 1.1rem;
2368
+ font-size: 0.8rem;
2369
+ color: var(--aas-muted);
2370
+ opacity: 0.7;
2371
+ }
2372
+ }
2344
2373
  .aas-deck-footer-sep {
2345
2374
  opacity: 0.5;
2346
2375
  }