Skip to content

docs(fern): switch to NVIDIA global theme as source of truth - #2000

Merged
lbliii merged 2 commits into
NVIDIA-NeMo:mainfrom
lbliii:lbliii/fern-theme-nvidia-source
May 20, 2026
Merged

lbliii merged 2 commits into
NVIDIA-NeMo:mainfrom
lbliii:lbliii/fern-theme-nvidia-source

Conversation

@lbliii

@lbliii lbliii commented May 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adopt the nvidia global theme published from NVIDIA/fern-components by setting global-theme: nvidia in fern/docs.yml.
  • Remove theme-owned fields that will now be inherited at publish time: logo, favicon, colors, layout, theme, css, js, footer, navbar-links.
  • Keep child-owned fields: title, instances, redirects, versions, libraries, experimental, and per-version navigation.
  • Bump fern.config.json to 5.29.0 to align with the theme repo's schema (global-theme requires Fern v5.x).
  • Leave a minimal local logo.right-text: NeMo Curator to test whether child repos can keep their product name in the header (the theme hardcodes right-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

  • Does the local logo.right-text override survive the publish-time merge, or does the theme's value win? Need a Fern cloud preview to confirm — local fern docs dev won't fetch the registry theme.
  • If the override loses, we'll need to file upstream at NVIDIA/fern-components to make right-text child-overridable (or drop it from the theme).
  • Local theme assets (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

  • Trigger a Fern cloud preview deploy on this branch.
  • Verify NVIDIA logo, fonts, colors, footer policy links, and OneTrust JS render from the global theme.
  • Verify header shows "NeMo Curator" (override wins) or "Documentation" (theme wins) — record which.
  • Spot-check a couple of pages across latest, main, v26.04, v26.02, v25.09 versions to confirm nav/content are unchanged.
  • Confirm redirects still resolve correctly.

🤖 Generated with Claude Code

@lbliii
lbliii requested a review from a team as a code owner May 19, 2026 16:51
@lbliii
lbliii requested review from abhinavg4 and removed request for a team May 19, 2026 16:51
@copy-pr-bot

copy-pr-bot Bot commented May 19, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@greptile-apps

greptile-apps Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adopts the nvidia global Fern theme by setting global-theme: nvidia in docs.yml, removing locally-owned branding fields (logo, favicon, colors, layout, theme, css, js, footer, navbar-links) that will now be inherited from the upstream theme repo, and bumping the Fern schema version to 5.29.0.

  • fern/docs.yml: Adds global-theme: nvidia and multi-source: true, strips all local branding config, retains a partial logo: right-text: NeMo Curator as a deliberate override-test, but inadvertently drops experimental.basepath-aware: true which was present before.
  • fern/fern.config.json: Version bumped from 4.43.1 to 5.29.0 to satisfy the global-theme schema requirement; CI is unaffected because all workflows use fern-api@latest.
  • Local asset files (main.css, SVGs, CustomFooter.tsx) are intentionally left on disk for a safe revert path pending a cloud preview confirmation.

Confidence Score: 4/5

Safe 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

Filename Overview
fern/docs.yml Adopts global-theme, removes local branding fields, adds multi-source:true, but silently drops experimental basepath-aware:true which may break links under the /nemo/curator/ base path
fern/fern.config.json Bumps CLI schema version from 4.43.1 to 5.29.0; all CI workflows use fern-api@latest so no pinned-version mismatch in automation

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"]
Loading

Comments Outside Diff (1)

  1. fern/docs.yml, line 187-190 (link)

    P1 Silent removal of basepath-aware: true

    The PR description says the experimental block is a "child-owned field" that should be kept, but basepath-aware: true was quietly dropped from it. This flag tells Fern to prefix internal link resolution with the site's base path (/nemo/curator/). Without it, Fern may generate root-relative links that resolve correctly in fern docs dev (where the site is served from /) but silently break on the published site at docs.nvidia.com/nemo/curator/ — navigation links would point to paths that don't exist under the custom domain. All five versions' in-page anchor and cross-page links are at risk.

Reviews (2): Last reviewed commit: "docs(fern): replace experimental.basepat..." | Re-trigger Greptile

Comment thread fern/docs.yml
Comment on lines +153 to +154
logo:
right-text: NeMo Curator

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

Comment thread fern/fern.config.json
{
"organization": "nvidia",
"version": "4.43.1"
"version": "5.29.0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

lbliii and others added 2 commits May 19, 2026 12:58
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]>
@lbliii
lbliii force-pushed the lbliii/fern-theme-nvidia-source branch from f4accb0 to 1c9f84b Compare May 19, 2026 16:59
@lbliii
lbliii requested review from ayushdg and sarahyurick May 19, 2026 17:02
@lbliii
lbliii enabled auto-merge (squash) May 19, 2026 18:32
@lbliii

lbliii commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 1c9f84b

@lbliii
lbliii merged commit a2b1c52 into NVIDIA-NeMo:main May 20, 2026
59 checks passed
lbliii added a commit to NVIDIA-NeMo/Gym that referenced this pull request May 26, 2026
## 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]>
shuoyangd pushed a commit to shuoyangd/NeMo-Curator that referenced this pull request Jun 12, 2026
…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]>

This branch was previously deployed

3 inactive deployments
nemo-ci — 1c9f84b4 Deployed May 20, 2026 by copy-pr-bot[bot] via L0_Unit_Test_GPU-image #4472
public — 1c9f84b4 Deployed May 20, 2026 by copy-pr-bot[bot] via release / finalize / publish-docs #116
test — 1c9f84b4 Deployed May 20, 2026 by copy-pr-bot[bot] via cicd-wait-in-queue #4472
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.

2 participants