Repository navigation
docs(fern): switch to NVIDIA global theme as source of truth - #2000
Conversation
Greptile SummaryThis PR adopts the
Confidence Score: 4/5Safe to preview in Fern cloud, but the accidental removal of basepath-aware:true should be confirmed before merging to main. The site is served under /nemo/curator/ — a non-root base path — and basepath-aware:true was the flag that told Fern to account for that prefix when resolving internal links. Dropping it silently while changing several other doc settings makes it hard to know whether link breakage will be visible in a local preview. fern/docs.yml — specifically the experimental block and the partial logo override, both of which have unconfirmed runtime behavior on the published site. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["docs.yml (child config)"] -->|"global-theme: nvidia"| B["Fern publish-time merge"]
C["NVIDIA/fern-components (global theme)"] -->|"logo, favicon, colors, layout, css, js, footer, navbar-links"| B
A -->|"title, instances, redirects, versions, libraries, experimental"| B
A -->|"logo.right-text: NeMo Curator (partial override)"| B
B --> D["Published site: docs.nvidia.com/nemo/curator"]
|
| logo: | ||
| right-text: NeMo Curator |
There was a problem hiding this comment.
Partial
logo: block may erase all theme-provided logo assets
If Fern treats a child-side logo: block as a full replacement rather than a deep merge, this partial override (only right-text) will override the entire logo: key, wiping the theme's SVG paths, height, and href. The published site would then render without any logo image — only the text "NeMo Curator". The PR description acknowledges the uncertainty, but the failure mode isn't just a wrong header label; it's a visually broken header across all pages and all five doc versions. Consider confirming merge semantics with a Fern preview before merging to main, or accept the risk of a quick follow-up revert.
| { | ||
| "organization": "nvidia", | ||
| "version": "4.43.1" | ||
| "version": "5.29.0" |
There was a problem hiding this comment.
Major CLI version jump may break CI workflows
The version goes from 4.43.1 to 5.29.0 — a major version boundary. Any CI pipeline or GitHub Action that pins to a specific Fern CLI version (or derives behavior from the schema of fern.config.json) may fail or behave differently if it doesn't also update its Fern CLI installation. Worth verifying that all CI steps (e.g. fern check, fern generate, fern docs dev) use a CLI version that is compatible with the 5.29.0 schema, otherwise a build that appears fine locally (using an updated local CLI) could fail in automation.
Adopt the `nvidia` global theme published from github.com/NVIDIA/fern-components so theme-owned fields (logo, favicon, colors, layout, theme, css, js, footer, navbar-links) are inherited at publish time rather than maintained per-repo. Includes a minimal local `logo.right-text: NeMo Curator` override to test whether child repos can keep their product name in the header while the theme provides "Documentation". Bumps fern CLI pin to 5.29.0 to match the theme repo's schema. Co-Authored-By: Claude Opus 4.7 <[email protected]> Signed-off-by: Lawrence Lane <[email protected]>
…instance Resolves Fern deprecation warning: "experimental.basepath-aware is deprecated. Use 'multi-source: true' on the instance instead." Co-Authored-By: Claude Opus 4.7 <[email protected]> Signed-off-by: Lawrence Lane <[email protected]>
f4accb0 to
1c9f84b
Compare
|
/ok to test 1c9f84b |
## Summary - Adopt the `nvidia` global theme published from [NVIDIA/fern-components](https://github.com/NVIDIA/fern-components) by setting `global-theme: nvidia` in `fern/docs.yml`. - Remove theme-owned fields that will now be inherited at publish time: `footer`, `layout`, `colors`, `theme`, `favicon`, `js`, `css`, `navbar-links`, and the asset paths from `logo` (`dark`, `light`, `height`, `href`). - Keep child-owned fields: `instances`, `title`, `libraries`, `experimental`, `versions`, `redirects`, and per-version navigation. - Leave a minimal local `logo.right-text: NeMo Gym` to override the theme's hardcoded `right-text: Documentation`. Mirrors the migration in NVIDIA-NeMo/Curator#2000. ## Why Centralizes NVIDIA branding so logos, fonts, CSS/JS, and footer policy links live in one upstream repo. Future brand updates land via re-uploading the theme rather than per-repo PRs. ## Test plan - [ ] Trigger a Fern cloud preview deploy on this branch (auto-posted by `.github/workflows/fern-docs-preview-comment.yml`). - [ ] Verify NVIDIA logo, fonts, colors, footer policy links, and OneTrust JS render from the global theme. - [ ] Verify header shows "NeMo Gym" (override wins) or "Documentation" (theme wins) — record which. - [ ] Confirm the GitHub repo link in the header is present (theme-provided) or note its absence. - [ ] Spot-check a couple of pages across `main` and `v0.2.1` to confirm nav/content are unchanged. - [ ] Confirm redirects still resolve correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Lawrence Lane <[email protected]> Co-authored-by: Claude Opus 4.7 <[email protected]>
…NeMo#2000) * docs(fern): switch to NVIDIA global theme as source of truth Adopt the `nvidia` global theme published from github.com/NVIDIA/fern-components so theme-owned fields (logo, favicon, colors, layout, theme, css, js, footer, navbar-links) are inherited at publish time rather than maintained per-repo. Includes a minimal local `logo.right-text: NeMo Curator` override to test whether child repos can keep their product name in the header while the theme provides "Documentation". Bumps fern CLI pin to 5.29.0 to match the theme repo's schema. Co-Authored-By: Claude Opus 4.7 <[email protected]> Signed-off-by: Lawrence Lane <[email protected]> * docs(fern): replace experimental.basepath-aware with multi-source on instance Resolves Fern deprecation warning: "experimental.basepath-aware is deprecated. Use 'multi-source: true' on the instance instead." Co-Authored-By: Claude Opus 4.7 <[email protected]> Signed-off-by: Lawrence Lane <[email protected]> --------- Signed-off-by: Lawrence Lane <[email protected]> Co-authored-by: Claude Opus 4.7 <[email protected]>
Summary
nvidiaglobal theme published from NVIDIA/fern-components by settingglobal-theme: nvidiainfern/docs.yml.logo,favicon,colors,layout,theme,css,js,footer,navbar-links.title,instances,redirects,versions,libraries,experimental, and per-version navigation.fern.config.jsonto5.29.0to align with the theme repo's schema (global-theme requires Fern v5.x).logo.right-text: NeMo Curatorto test whether child repos can keep their product name in the header (the theme hardcodesright-text: Documentation).Why
Centralizes NVIDIA branding so logos, fonts, CSS/JS, and footer policy links live in one upstream repo. Future brand updates land via re-uploading the theme rather than per-repo PRs.
Open questions for review
logo.right-textoverride survive the publish-time merge, or does the theme's value win? Need a Fern cloud preview to confirm — localfern docs devwon't fetch the registry theme.NVIDIA/fern-componentsto makeright-textchild-overridable (or drop it from the theme).fern/main.css,fern/assets/NVIDIA_*.svg,fern/components/CustomFooter.tsx) are intentionally left on disk in this PR so we can revert easily. Cleanup PR to follow once the preview looks right.Test plan
latest,main,v26.04,v26.02,v25.09versions to confirm nav/content are unchanged.🤖 Generated with Claude Code