fix(fern): add multi-source to enable global theme JS assets#340
Merged
Conversation
Without multi-source: true, Fern only applies the global theme's CSS but not its JS bundle (theme_asset_5.js), which includes the OneTrust cookie consent SDK. Confirmed by cross-referencing all NVIDIA Fern sites: only those with multi-source load theme_asset_5.js. Signed-off-by: Pete MacKinnon <[email protected]>
Contributor
Greptile SummaryEnables the global NVIDIA theme's JavaScript bundle (
Confidence Score: 5/5A one-line config addition to a YAML file and a dead-code deletion — no runtime logic is touched. The change is limited to adding a single No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Fern Docs Build] --> B{multi-source: true?}
B -- No --> C[Load Global Theme CSS only]
B -- Yes --> D[Load Global Theme CSS]
D --> E[Load theme_asset_5.js]
E --> F[OneTrust Cookie Consent SDK active]
C --> G[OneTrust SDK NOT loaded ❌]
Reviews (2): Last reviewed commit: "chore(fern): remove unused BadgeLinks co..." | Re-trigger Greptile |
BadgeLinks.tsx is not referenced by any docs page and the experimental mdx-components config was removed with the global theme migration. Signed-off-by: Pete MacKinnon <[email protected]>
Contributor
dmitsh
approved these changes
May 20, 2026
7 tasks
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.
Description
The global theme's JS bundle (
theme_asset_5.js) — which includes the OneTrust cookie consent SDK — is not loaded withoutmulti-source: trueon the instance. Only the CSS portion of the global theme is applied.Cross-referenced all NVIDIA Fern sites:
multi-sourcetheme_asset_5.jsloadedAfter merge, trigger the Publish Fern Docs workflow to republish.
Checklist
git commit -s).