Skip to content

feat(cli): upload compiled theme fragment and let FDR merge global themes at publish - #17783

Open
Ryan-Amirthan wants to merge 3 commits into
mainfrom
devin/1789692262-global-theme-server-merge
Open

Ryan-Amirthan wants to merge 3 commits into
mainfrom
devin/1789692262-global-theme-server-merge

Conversation

@Ryan-Amirthan

@Ryan-Amirthan Ryan-Amirthan commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Description

CLI half of server-side global themes (FDR half: fern-api/fern-platform#14922). Lets a theme upload refresh every site using that theme without republishing each one.

Changes Made

  • fern docs theme upload also sends compiled: { config, fileManifest } — a ledger-shaped fragment built with the existing DocsDefinitionResolver + mapDocsConfigToLedgerConfig; theme assets are namespaced under _theme/.
  • fern docs publish (ledger mode) sends the unmerged config + globalTheme when the fetched theme has a compiledHash; otherwise (older theme uploads, header/footer themes, legacy deploy) it stitches locally as before. fern docs dev unchanged.

Testing

Link to Devin session: https://app.devin.ai/sessions/5bd32372fdc3496982d9c6256cb3fcb3
Open in Devin Desktop: https://app.devin.ai/desktop/session/5bd32372fdc3496982d9c6256cb3fcb3?variant=devin
Requested by: @Ryan-Amirthan


Devin Review

…emes at publish

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

nitpickybot[bot]

This comment was marked as resolved.

…elCase theme keys

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@devin-ai-integration devin-ai-integration Bot left a comment

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.

Devin Review found 4 potential issues.

2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

Comment thread packages/cli/cli/src/commands/docs-theme/uploadDocsTheme.ts Outdated
… remote-asset themes, map logoRightText

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

1 participant