Skip to content

fix(showcase): ship the example PDFs that 404 on the GitHub Pages site#267

Merged
DemchaAV merged 2 commits into
developfrom
fix/showcase-pdf-404
Jun 29, 2026
Merged

fix(showcase): ship the example PDFs that 404 on the GitHub Pages site#267
DemchaAV merged 2 commits into
developfrom
fix/showcase-pdf-404

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Why

The showcase site lists 85 example previews but only 53 PDFs are committed, so
32 cards 404 on the live site — e.g.
/showcase/pdf/features/debug/debug-overlay.pdf. The missing set is the whole
recent feature wave: in-document navigation, colour emoji, inline SVG / icons,
per-page layout, multi-section documents, charts, the debug overlay, and the
engine-deck / feature-catalog / financial-report flagships.

Root cause: the blanket *.pdf ignore whitelists the previous showcase
locations (docs/showcase/**, site/public/showcase/**) but never
web/showcase/**, where the live GitHub Pages site now lives. Every newly added
preview was silently ignored and dropped from the release commit, so the 53
survivors are only those committed before the move.

What

  • .gitignore: add !web/showcase/**/*.pdf so showcase previews are tracked
    like the older site copies — and future examples ship automatically.
  • Commit the 32 missing previews under web/showcase/pdf/** (regenerated via
    GenerateAllExamples).

No source changes; web/examples.json, the 53 already-tracked previews and all
screenshots are untouched.

Tests

  • Every pdf path in web/examples.json (85/85) now resolves to a committed
    file.
  • Staged set is exactly .gitignore + 32 .pdf; no other tracked file changed.

Deploy

The live site refreshes only when this reaches main (deploy-web.yml runs on
push to main). After this merges to develop, fast-forward main (asset-only —
no version bump, no tag) and let deploy-web run, or dispatch it manually.

Follow-up (separate PR)

ShowcaseMetadata has no registration for ~26 of these examples, so their
"View Code" links and card titles/descriptions fall back to generic values.
That registry cleanup is independent and does not block this 404 fix.

The showcase site links to 85 example previews but only 53 are committed; the
other 32 — navigation, emoji, inline SVG/icons, layout, multi-section, charts,
debug overlay and the engine-deck / feature-catalog / financial-report
flagships — 404 on the live site.

Root cause: the blanket *.pdf ignore whitelists the old docs/showcase and
site/public/showcase locations but never web/showcase, where the live site now
lives, so every newly added preview was silently ignored and left out of the
release commit.

- .gitignore: whitelist web/showcase/**/*.pdf, matching the older site copies,
  so showcase previews are tracked and future examples ship automatically.
- Commit the 32 missing previews under web/showcase/pdf/** (regenerated with
  GenerateAllExamples).

Verified every pdf path in web/examples.json (85) resolves to a committed file;
the 53 already-tracked previews and examples.json are untouched.
@DemchaAV DemchaAV merged commit b7c117c into develop Jun 29, 2026
11 checks passed
@DemchaAV DemchaAV deleted the fix/showcase-pdf-404 branch June 29, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant