Skip to content

update frontend docs refinements - #516

Merged
martin-mfg merged 8 commits into
stats-organization:update-frontend-docsfrom
marcalexiei:update-frontend-docs
Aug 26, 2026
Merged

update frontend docs refinements#516
martin-mfg merged 8 commits into
stats-organization:update-frontend-docsfrom
marcalexiei:update-frontend-docs

Conversation

@marcalexiei

@marcalexiei marcalexiei commented Aug 25, 2026

Copy link
Copy Markdown

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

@marcalexiei is attempting to deploy a commit to the martin-mfg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@marcalexiei marcalexiei mentioned this pull request Aug 25, 2026
@martin-mfg
martin-mfg merged commit f069981 into stats-organization:update-frontend-docs Aug 26, 2026
0 of 2 checks passed
@marcalexiei
marcalexiei deleted the update-frontend-docs branch August 27, 2026 00:32
martin-mfg added a commit that referenced this pull request Aug 27, 2026
…hem (#522)

> [!NOTE]
> Just a POC, marking as draft until #515 and #516 are merged.

- Adds `apps/frontend/src/plugins/rehypeCardImages.ts`:
a `/api` image that names no theme is emitted twice, once per site theme
— `light_github` / `dark_github` or the `*_repocard` pair.
  One that names a theme is left untouched.
- Every `/api` image also gets `loading="lazy" decoding="async"`,
  so the theme is not using costs no request.
- Drops the inline `<img>`/`<a>` HTML from `docs/index.md` and
`customization/theming.md`;
previews on the other docs pages became theme-aware without being
edited.
Once the other docs PRs are merged I'll rebase and apply the same change
everywhere.

---------

Co-authored-by: martin-mfg <2026226+martin-mfg@users.noreply.github.com>
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