Repository navigation
fix(docs): strip prose from three sample pages so they render full-bleed with no TOC - #692
Merged
Merged
Conversation
dli7319
marked this pull request as ready for review
October 11, 2026 17:11
ruofeidu
approved these changes
Oct 11, 2026
…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
force-pushed
the
fix/docs-sample-page-toc
branch
from
October 11, 2026 17:55
d1f66c4 to
0fdbad8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
.mdxpages 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
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
.mdxsample pages); no SDK/runtime code touched