Skip to content

fix(docs): strip prose from three sample pages so they render full-bleed with no TOC - #692

Merged
dli7319 merged 1 commit into
mainfrom
fix/docs-sample-page-toc
Oct 11, 2026
Merged

dli7319 merged 1 commit into
mainfrom
fix/docs-sample-page-toc

Conversation

@dli7319

@dli7319 dli7319 commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Description

Fixes the stray table-of-contents that floated on the right side of the Super-Resolution, Gemma 4 On-Device, and Offline Captions sample pages (reported via screenshots).

Those three .mdx pages appended Docusaurus prose sections ("How it works", "Credits", "What stays on-device", "Ask anything, on-device") after the <SamplesIFrame>. The ## headings made Docusaurus render a TOC in a right-hand column that floated over the absolutely-positioned full-bleed demo iframe.

Every other sample page keeps only frontmatter + <SamplesIFrame> with no body headings and renders clean. This strips the prose from the three so they match the rest: no right-side TOC and no page text — just the running demo, edge to edge. The removed documentation already lives in each demo's README (which the prose itself linked to).

Type of Change

  • New feature
  • Bug fix
  • Refactor
  • Documentation update

Media / Screen Recordings & Screenshots

After (fixed) — demo renders full-bleed, no right-side TOC, no prose:

Gemma 4 On-Device

Super-Resolution

Offline Captions

Verified on a local docs build + headless browser: each page now has 0 TOC containers, 0 <h2> headings, 0 prose text, and the demo <iframe> intact — structurally identical to the pre-existing clean sample pages (e.g. Occlusion, used as a control).

Checklist

  • Change is docs-only (.mdx sample pages); no SDK/runtime code touched
  • Verified in a local docs build + headless browser (not just eyeballed)
  • No large assets (≥1MB) added to the branch; screenshots attached as PR media
  • No hardcoded API keys, secrets, or credentials

@dli7319
dli7319 requested a review from ruofeidu October 11, 2026 17:10
@dli7319
dli7319 marked this pull request as ready for review October 11, 2026 17:11
…eed with no TOC

The Super-Resolution, Gemma 4 On-Device, and Offline Captions sample pages
carried Docusaurus prose sections ("How it works", "Credits", "What stays
on-device", "Ask anything, on-device") after the <SamplesIFrame>. Those `##`
headings made Docusaurus render a table-of-contents in a right-hand column that
floated over the absolutely-positioned full-bleed demo iframe.

Every other sample page keeps only frontmatter + <SamplesIFrame> with no body
headings, so it renders clean with the demo edge-to-edge. Remove the prose from
these three so they match the rest: no right-side TOC and no page text, just the
running demo. The removed documentation already lives in each demo's README
(the prose itself linked to it).
@dli7319
dli7319 force-pushed the fix/docs-sample-page-toc branch from d1f66c4 to 0fdbad8 Compare October 11, 2026 17:55
@dli7319
dli7319 merged commit 0494d2b into main Oct 11, 2026
14 checks passed
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