Skip to content

docs: drop body headings that repeat the page title - #5908

Merged
yfw merged 8 commits into
mainfrom
cwing/docs-drop-repeated-titles
Nov 13, 2026
Merged

yfw merged 8 commits into
mainfrom
cwing/docs-drop-repeated-titles

Conversation

@cwing-nvidia

@cwing-nvidia cwing-nvidia commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What changed and why

Fern renders each page's frontmatter title as the page heading, so a body # <title> line shows the title twice. This removes that line from 19 pages under fern/versions/latest/pages.

The nemo-gym-docs skill caused this: its page templates told authors to open every page with # <Page Title>. The skill now says not to, and a new test in tests/unit_tests/test_fern_docs_links.py fails when a page repeats its title as a heading.

This must merge after #5131, which removes the repeated titles on the pages it changes. Until then the new test fails on those pages, which keeps this PR from merging first.

Out of scope: reference/faq.mdx uses # for its sections (a separate heading-level issue), and the frozen fern/versions/v0.* snapshots are unchanged.

No issue: small docs cleanup.

Validation

Rollout evidence

N/A: docs and a docs test only, no environment or agent behavior changes.

🤖 Generated with Claude Code

cwing-nvidia and others added 3 commits November 9, 2026 18:30
Fern renders each page's frontmatter title as the page heading, so a
body "# <title>" line shows the title twice. Remove it from 17 pages.
Pages that #5131 changes are left to that PR to avoid conflicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Chris Wing <[email protected]>
The nemo-gym-docs skill told authors to open each page with
"# <Page Title>", which Fern already renders from the frontmatter.
Update the skill, and add a docs test that fails on a repeated title.
Pages changed in #5131 are exempt until that PR lands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Chris Wing <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Chris Wing <[email protected]>
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

#5131 removes the repeated titles on those pages, so this check passes once it merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Chris Wing <[email protected]>
adil-a
adil-a previously approved these changes Nov 10, 2026
@cwing-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 419be73

@yfw

yfw commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Thanks, this looks good. I checked the new test against the pages that main changed since your last merge, and they still pass.

One thing before I approve: fern/README.md line 122 still says "The MDX body should still open with # <Page Title> matching the frontmatter title." That is the rule this PR removes from the skill, and AGENTS.md sends docs authors to both files. Can you change that line to match the new text in SKILL.md? I will approve after the push.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Chris Wing <[email protected]>
@cwing-nvidia

Copy link
Copy Markdown
Contributor Author

Thanks, good catch. Updated fern/README.md to match SKILL.md in 2ffeb77, and CI is green.

@yfw
yfw added this pull request to the merge queue Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43524664248

Merged via the queue into main with commit fbfe0cb Nov 13, 2026
73 checks passed
@yfw
yfw deleted the cwing/docs-drop-repeated-titles branch November 13, 2026 23:23
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.

3 participants