Skip to content
Source
Sign inSign up
TanStack/markdown

docs: use the dynamic README header endpoint #4

MergedAlemTuzlakmerged 1 commit intomain fromrefs/pull/4/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

AlemTuzlakcommented

Adopts the dynamic README header endpoint added in TanStack/tanstack.com#1076, which is merged and live.

README banners now point a <picture> at https://tanstack.com/api/readme/ instead of a committed PNG. The endpoint renders 1800x450 in light and dark, so a branding change lands in every README at once and dark-mode readers get a dark banner.

This repo had no banner at all. Adding one for parity with the other library repos.

Notes

  • Light and dark are served through <picture>, per GitHub's guidance. The trailing <img> stays the light variant, as the fallback for renderers that ignore <picture> (npm, most editors).
  • Only packages a user installs directly get a banner. Private and internal packages are deliberately left alone.

Verification

Every URL in this diff was requested against the live endpoint and returned 200 image/png at 1800x450. git grep confirms no README still references the deleted asset.

Summary by CodeRabbit

  • Documentation
    • Added a centered, responsive banner to the README.
    • Added dark- and light-theme image support with accessible Markdown text.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Review Change Stack

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: defaults

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 73223bf6-fb6b-4367-a04a-94b47633696f

      📥 Commits

      Reviewing files that changed from the base of the PR and between b3ca355f9fd704d0cfdfc4632229533df0c9b131 and 0090036e72fe55235586dfa6e76efcaafab1366d.

      📒 Files selected for processing (1)
      • README.md

      📝 Walkthrough

      Walkthrough

      Changes

      README Banner

      Layer / File(s)Summary
      Responsive theme-aware banner
      README.md
      Adds a centered responsive image banner that selects dark or light artwork based on the user's color-scheme preference. The image includes alt text and sizing attributes.

      Estimated code review effort: 1 (Trivial) | ~2 minutes

      Suggested reviewers: tannerlinsley

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
      Title check✅ PassedThe title clearly describes the main change: using the dynamic README header endpoint.
      Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Commit unit tests in branch `readme-header-endpoint`

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. LadyBluenotes(GitHub profile, opens in a new tab) approved these changes

Sign in to join this conversation.