Repository navigation
docs: drop body headings that repeat the page title - #5908
Conversation
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]>
#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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]>
|
/ok to test 419be73 |
|
Thanks, this looks good. I checked the new test against the pages that One thing before I approve: |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]>
|
Thanks, good catch. Updated |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43524664248 |
What changed and why
Fern renders each page's frontmatter
titleas the page heading, so a body# <title>line shows the title twice. This removes that line from 19 pages underfern/versions/latest/pages.The
nemo-gym-docsskill caused this: its page templates told authors to open every page with# <Page Title>. The skill now says not to, and a new test intests/unit_tests/test_fern_docs_links.pyfails 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.mdxuses#for its sections (a separate heading-level issue), and the frozenfern/versions/v0.*snapshots are unchanged.No issue: small docs cleanup.
Validation
pytest tests/unit_tests/test_fern_docs_links.py: the new test fails only on the 4 pages docs(harbor): document task folders in the job-based nav and trim the harbor server README #5131 fixes; the rest pass. Verified docs(harbor): document task folders in the job-based nav and trim the harbor server README #5131's head has no repeated titles outside this PR's pages.pre-commit runon changed files: passed.Rollout evidence
N/A: docs and a docs test only, no environment or agent behavior changes.
🤖 Generated with Claude Code