Skip to content

feat(data): surface the embeddable-charts demo from the data page - #642

Merged
jmservera merged 1 commit into
mainfrom
feat/link-embeddable-charts-from-data
Aug 1, 2026
Merged

feat(data): surface the embeddable-charts demo from the data page#642
jmservera merged 1 commit into
mainfrom
feat/link-embeddable-charts-from-data

Conversation

@jmservera

Copy link
Copy Markdown
Owner

Why

The observatory charts are discoverable (via the Data menu → each ranking page renders its chart), and the /embeds/ iframe endpoints are intentionally hidden (robotsNoIndex). But /charts/embeddable-rankings/ — the demo that shows people how to embed Claracle charts on their own site (FR-051) — had no menu entry and no internal link, so it was effectively unreachable.

Change

Add a discoverable link at the bottom of the /data/ landing page:

Want these rankings on your own site? See how to embed Claracle charts/charts/embeddable-rankings/

Placed in layouts/data/list.html (durable — content/data/_index.md is generated and would be overwritten). Guarded with site.GetPage so it renders nothing if the demo page is ever absent (no broken link).

Validation

  • Fresh build: the link renders on /data/ and points to /charts/embeddable-rankings/, which builds.
  • Internal link checker: no new broken links (the only misses are pagefind assets, generated post-build).
  • test_topic_hubs, test_rendered_weekly_links, test_internal_link_checker pass.

Context

Came out of a discoverability question — the charts themselves were findable, but the "embed our charts" feature had no entry point.

The /charts/embeddable-rankings/ demo (how to embed Claracle charts on another
site) had no menu entry and no internal link, so it was effectively unreachable.
Add a discoverable link at the bottom of the /data/ landing page, guarded with
site.GetPage so it never renders a broken link if the page is absent.
Copilot AI review requested due to automatic review settings August 1, 2026 17:47
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

🔎 Site preview ready

A rendered preview of this PR was built with Hugo extended (drafts + future content included).

Download it: open the workflow runArtifactssite-preview.

Then serve and open it locally:

unzip site-preview.zip -d site-preview && cd site-preview
python3 -m http.server 8080   # then open http://localhost:8080/

(Links are root-relative, so open it via a local web server rather than file://.)

Reviewer checklist

  • Homepage renders correctly
  • Latest weekly article renders correctly
  • Representative archive / rollup (monthly, yearly, topics) pages render
  • Navigation menu, search page, and footer look correct
  • Light + dark themes both look correct
  • Mobile widths checked: 320 / 360 / 390 / 414 / 768 px
  • Screenshots attached for the operator / Fry / Calculon review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves discoverability of the embeddable Claracle rankings demo by adding a guarded internal link to /charts/embeddable-rankings/ on the /data/ landing page, ensuring the “how to embed charts” entry point is reachable without exposing the iframe endpoints directly.

Changes:

  • Adds a short call-to-action paragraph at the bottom of the Data landing page linking to the embeddable rankings demo.
  • Uses site.GetPage to conditionally render the link only when the target page exists (avoids broken links if removed later).

@jmservera
jmservera merged commit e404d32 into main Aug 1, 2026
16 checks passed
@jmservera
jmservera deleted the feat/link-embeddable-charts-from-data branch August 1, 2026 18:08
jmservera added a commit that referenced this pull request Aug 1, 2026
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.

2 participants