Skip to content

feat: allow skipping secondary themes in themed builds - #4971

Draft
Harsh-Anand-Singh wants to merge 1 commit into
mainfrom
feat/skip-secondary-themes
Draft

feat: allow skipping secondary themes in themed builds#4971
Harsh-Anand-Singh wants to merge 1 commit into
mainfrom
feat/skip-secondary-themes

Conversation

@Harsh-Anand-Singh

@Harsh-Anand-Singh Harsh-Anand-Singh commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

  • add an optional includeSecondaryThemes parameter to src-themeable/buildThemedComponents
  • default it to true, so existing consumers are unchanged
  • when set to false, the wrapper forwards the preset with secondary: []
  • this lets consumers build a themed package without generating secondary theme outputs

@Harsh-Anand-Singh
Harsh-Anand-Singh marked this pull request as ready for review September 3, 2026 15:02
@Harsh-Anand-Singh
Harsh-Anand-Singh requested a review from a team as a code owner September 3, 2026 15:02
@Harsh-Anand-Singh
Harsh-Anand-Singh requested review from pan-kot and ywyyu17 and removed request for a team and ywyyu17 September 3, 2026 15:02
@Harsh-Anand-Singh
Harsh-Anand-Singh force-pushed the feat/skip-secondary-themes branch from cfc8815 to 5f0080f Compare September 3, 2026 15:04
@Harsh-Anand-Singh
Harsh-Anand-Singh changed the base branch from feat/website-theme-namespace to main September 3, 2026 15:05
@Harsh-Anand-Singh
Harsh-Anand-Singh marked this pull request as draft September 3, 2026 15:05
@Harsh-Anand-Singh
Harsh-Anand-Singh marked this pull request as ready for review September 3, 2026 15:06
@Harsh-Anand-Singh Harsh-Anand-Singh changed the title feat(themeable): allow skipping secondary themes in themed builds feat: allow skipping secondary themes in themed builds Sep 3, 2026
@Harsh-Anand-Singh
Harsh-Anand-Singh marked this pull request as draft September 3, 2026 15:51
@Harsh-Anand-Singh
Harsh-Anand-Singh marked this pull request as ready for review September 3, 2026 15:53
Comment thread src-themeable/theming.ts
theme,
outputDir,
baseThemeId,
includeSecondaryThemes = true,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should not make public API changes like that without good justification.

@Harsh-Anand-Singh
Harsh-Anand-Singh marked this pull request as draft September 4, 2026 13:42
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