docs: revert global theme to restore dev-notes CSS#715
Conversation
Reverts #713. Under global-theme: nvidia, Fern treats `css` as a theme-owned field and replaces the child repo's `css:` list at publish, so DataDesigner's product stylesheets (blog-card, authors, notebook-viewer, metrics-table, trajectory-viewer, main) stopped loading and the dev-notes layouts collapsed to unstyled HTML. Temporary hotfix: restore the self-hosted theme + product CSS so the dev-notes render correctly. Re-land the canonical theme later once the product CSS is injected via components or merged into the theme repo. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Lawrence Lane <llane@nvidia.com>
Greptile SummaryThis hotfix reverts the
|
| Filename | Overview |
|---|---|
| fern/docs.yml | Reverts global-theme: nvidia, restoring self-hosted layout/colors/logo/favicon/js/css config; product stylesheet list fully reinstated. |
| fern/components/CustomFooter.tsx | Re-added custom footer component; both only-light and only-dark logo img elements share the same S3 URL instead of the local dark/light SVG variants. |
| fern/fern.config.json | Reverts Fern CLI version pin from 5.41.1 back to 5.24.0 as part of the hotfix rollback. |
| fern/README.md | Documentation updated to remove global-theme references and reflect the restored self-hosted asset structure. |
| fern/assets/NVIDIA_dark.svg | Re-added NVIDIA logo SVG (white fill) for dark-mode use in docs.yml logo config. |
| fern/assets/NVIDIA_light.svg | Re-added NVIDIA logo SVG (dark fill) for light-mode use in docs.yml logo config. |
| fern/assets/NVIDIA_symbol.svg | Re-added NVIDIA symbol SVG used as the favicon in docs.yml. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[fern/docs.yml] -->|references| B[fern/components/CustomFooter.tsx]
A -->|logo dark| C[fern/assets/NVIDIA_dark.svg]
A -->|logo light| D[fern/assets/NVIDIA_light.svg]
A -->|favicon| E[fern/assets/NVIDIA_symbol.svg]
A -->|css list| F[fern/main.css + styles/*.css]
A -->|js| G[Adobe DTM script]
A -->|version| H[fern/fern.config.json v5.24.0]
subgraph Reverted from PR #713
I[global-theme: nvidia]
end
I -.->|replaced css list at publish| F
A -->|restores| F
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
fern/components/CustomFooter.tsx:23-30
Both `only-light` and `only-dark` footer logo images point to the same S3 URL, so dark mode will render a logo intended for a light background. The local `NVIDIA_dark.svg` (white-fill) and `NVIDIA_light.svg` (dark-fill) assets added in this PR are already referenced by `docs.yml` for the header logo — the footer should follow the same pattern.
```suggestion
<a
className="footer-brand"
href="https://www.nvidia.com"
target="_blank"
rel="noopener"
>
<img src="./assets/NVIDIA_light.svg" className="logo__image only-light" alt="NVIDIA" />
<img src="./assets/NVIDIA_dark.svg" className="logo__image only-dark" alt="NVIDIA" />
```
Reviews (1): Last reviewed commit: "docs: revert global theme to restore dev..." | Re-trigger Greptile
| <a | ||
| className="footer-brand" | ||
| href="https://www.nvidia.com" | ||
| target="_blank" | ||
| rel="noopener" | ||
| > | ||
| <img src={logoUrl} className="logo__image only-light" alt="NVIDIA" /> | ||
| <img src={logoUrl} className="logo__image only-dark" alt="NVIDIA" /> |
There was a problem hiding this comment.
Both
only-light and only-dark footer logo images point to the same S3 URL, so dark mode will render a logo intended for a light background. The local NVIDIA_dark.svg (white-fill) and NVIDIA_light.svg (dark-fill) assets added in this PR are already referenced by docs.yml for the header logo — the footer should follow the same pattern.
| <a | |
| className="footer-brand" | |
| href="https://www.nvidia.com" | |
| target="_blank" | |
| rel="noopener" | |
| > | |
| <img src={logoUrl} className="logo__image only-light" alt="NVIDIA" /> | |
| <img src={logoUrl} className="logo__image only-dark" alt="NVIDIA" /> | |
| <a | |
| className="footer-brand" | |
| href="https://www.nvidia.com" | |
| target="_blank" | |
| rel="noopener" | |
| > | |
| <img src="./assets/NVIDIA_light.svg" className="logo__image only-light" alt="NVIDIA" /> | |
| <img src="./assets/NVIDIA_dark.svg" className="logo__image only-dark" alt="NVIDIA" /> |
Prompt To Fix With AI
This is a comment left during a code review.
Path: fern/components/CustomFooter.tsx
Line: 23-30
Comment:
Both `only-light` and `only-dark` footer logo images point to the same S3 URL, so dark mode will render a logo intended for a light background. The local `NVIDIA_dark.svg` (white-fill) and `NVIDIA_light.svg` (dark-fill) assets added in this PR are already referenced by `docs.yml` for the header logo — the footer should follow the same pattern.
```suggestion
<a
className="footer-brand"
href="https://www.nvidia.com"
target="_blank"
rel="noopener"
>
<img src="./assets/NVIDIA_light.svg" className="logo__image only-light" alt="NVIDIA" />
<img src="./assets/NVIDIA_dark.svg" className="logo__image only-dark" alt="NVIDIA" />
```
How can I resolve this? If you propose a fix, please make it concise.
SummaryPR #715 is a focused hotfix that reverts PR #713 (the canonical NVIDIA Fern global-theme migration, merged earlier today, 2026-05-29). The premise is well stated and easy to verify: under The change set is exactly the inverse of #713:
Scope is docs/site config only. No Python, no engine, no public API. Risk is contained to the docs build. FindingsCorrectness / convention
Risks & things to flag
Test coverage
Performance / security
VerdictApprove as a hotfix. This is a tight, well-motivated revert that restores a known-good docs state after #713 broke Dev Notes styling in production. The diff is exactly what the PR description claims — no scope creep, no incidental changes. Two suggestions before/after merge, neither blocking:
|
|
MkDocs preview: https://32f038bc.dd-docs-preview.pages.dev Fern preview: https://nvidia-preview-pr-715.docs.buildwithfern.com/nemo/datadesigner
|
* fix: sync Fern root config during devnote publish Signed-off-by: Johnny Greco <jogreco@nvidia.com> * docs: re-adopt global theme; components self-inject CSS Re-adopts the canonical NVIDIA Fern global theme (global-theme: nvidia) and fixes the root cause that forced the #715 hotfix revert: `css` is a theme-owned field, so under a global theme Fern replaces the child repo's `css:` list with the theme's stylesheets at publish, silently dropping DataDesigner's product CSS. Instead of relying on the (theme-owned) `css:` field, each dev-note kit component now injects its own styles via a <style dangerouslySetInnerHTML> tag in its render output. Component MDX is not theme-owned, so the styling survives the theme merge. This is the same approach NemoClaw uses. - docs.yml: add global-theme: nvidia; drop theme-owned footer/layout/ colors/theme/favicon/js and the entire css: block; keep the partial logo override, GitHub navbar link, and MDX components. - Inline each component's CSS as a <style> tag: BlogCard/BlogGrid, Authors, NotebookViewer, MetricsTable, TrajectoryViewer, and the badge-icon rule in BadgeLinks. - Remove now-unused fern/main.css, fern/styles/*.css, the local NVIDIA logo SVGs, and CustomFooter.tsx (all provided by the theme). - fern.config.json: bump CLI pin to 5.41.1 for global-theme support. - fern-published-branch.py + README: drop CSS-file references; document the self-injected-styles pattern. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Lawrence Lane <llane@nvidia.com> * docs: address review — themeable accent, CSS comments, safety notes - BlogCard hover uses var(--accent, #76b900) so the theme palette drives it. - Restore the explanatory CSS comments lost in the port (rmiz click-to-zoom and media margin-reset rationale; NotebookViewer section headers). - Note at each injection site that the CSS is a static string literal, so dangerouslySetInnerHTML carries no user input. - README documents why injection is intentionally unconditional (duplicate <style> tags are harmless; a render-time guard would risk SSR hydration mismatch) and points at React <style precedence> as the future dedupe path. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Lawrence Lane <llane@nvidia.com> --------- Signed-off-by: Johnny Greco <jogreco@nvidia.com> Signed-off-by: Lawrence Lane <llane@nvidia.com> Co-authored-by: Johnny Greco <jogreco@nvidia.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
📋 Summary
Hotfix that reverts the global-theme migration (#713) to restore the NeMo Data Designer Dev Notes layouts. Under
global-theme: nvidia, Fern treatscssas a theme-owned field and replaces the child repo'scss:list at publish, so DataDesigner's product stylesheets (blog-card, authors, notebook-viewer, metrics-table, trajectory-viewer, main) stopped loading and the Dev Notes pages collapsed to unstyled HTML.🔗 Related Issue
🔄 Changes
🐛 Fixed
fern/docs.yml(layout,colors,theme,footer,logo,favicon,js) and the full productcss:list, so the Dev Notes kit components are styled again.✨ Added
fern/components/CustomFooter.tsxand theNVIDIA_{dark,light,symbol}.svgassets.🔧 Changed
fern.config.jsonCLI pin and README global-theme notes.🧪 Testing
fern checkpasses (0 errors)make test(n/a — docs-only change)✅ Checklist
🤖 Generated with Claude Code