Repository navigation
docs(fern): adopt NVIDIA global theme as source of truth - #1413
Merged
Merged
Conversation
Set `global-theme: nvidia` in `fern/docs.yml` and remove theme-owned fields (`footer`, `layout`, `colors`, `theme`, `favicon`, `js`, `css`, `navbar-links`, and the asset paths from `logo`). Centralizes NVIDIA branding upstream at NVIDIA/fern-components so future brand updates land via re-uploading the theme rather than per-repo PRs. Keep `logo.right-text: NeMo Gym` as a local override since the `nvidia` theme hardcodes `right-text: Documentation`. Mirrors the approach in NVIDIA-NeMo/Curator#2000. Local theme assets (`fern/main.css`, `fern/components/CustomFooter.tsx`, `fern/assets/NVIDIA_*.svg`) are intentionally left on disk for safe revert; cleanup PR to follow once the Fern preview confirms the theme renders correctly. Co-Authored-By: Claude Opus 4.7 <[email protected]> Signed-off-by: Lawrence Lane <[email protected]>
Now that `global-theme: nvidia` inherits the footer, logos, favicon,
fonts, OneTrust JS, and base CSS from NVIDIA/fern-components, remove
the duplicated local copies:
- `fern/assets/NVIDIA_{dark,light,symbol}.svg` (logos + favicon)
- `fern/components/CustomFooter.tsx`
- `fern/main.css` (95% duplicated the central theme)
Also drop unused custom components with zero MDX references:
- `BadgeLinks.tsx`, `CTAButtons.tsx`, `Include.tsx`, `NotebookViewer.tsx`
`NavButton.tsx` is still used by 29 MDX pages and has Gym-specific
styles the theme doesn't ship. Co-locate those rules in a sibling
`NavButton.css` and load via `import "./NavButton.css"` so the
custom-component CSS lives next to its TSX. Brand variables
(`--nv-color-green`, `--nv-light-grey-3`, `--rounded`, etc.) are
defined by the global theme's `:root` and resolve at publish time.
Refresh `fern/README.md` to drop references to removed files, document
the co-located CSS convention, and codify which `docs.yml` fields are
now theme-owned (don't re-add).
Co-Authored-By: Claude Opus 4.7 <[email protected]>
Signed-off-by: Lawrence Lane <[email protected]>
The `import "./NavButton.css"` side-effect was unresolved by Fern's MDX
component bundler ("Could not resolve ./NavButton.css"). Move the rules
into a sibling `<style>` block rendered inside the component instead.
Brand vars are referenced with fallbacks (`var(--nv-color-green, #74B900)`)
so the component still styles correctly if the theme load is delayed or
the variable isn't defined in some context.
Co-Authored-By: Claude Opus 4.7 <[email protected]>
Signed-off-by: Lawrence Lane <[email protected]>
ananthsub
approved these changes
May 26, 2026
This branch was previously deployed
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.
Summary
nvidiaglobal theme published from NVIDIA/fern-components by settingglobal-theme: nvidiainfern/docs.yml.footer,layout,colors,theme,favicon,js,css,navbar-links, and the asset paths fromlogo(dark,light,height,href).instances,title,libraries,experimental,versions,redirects, and per-version navigation.logo.right-text: NeMo Gymto override the theme's hardcodedright-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
.github/workflows/fern-docs-preview-comment.yml).mainandv0.2.1to confirm nav/content are unchanged.🤖 Generated with Claude Code