Allow Starlight plugins to include other plugins #2330
Fevol
started this conversation in
Feature Requests
Replies: 1 comment
-
Thanks for the discussion and helpful links @Fevol! I think having a dedicated |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.25.5
What is your idea?
Expose a
addPlugin
method within thesetup
hook for a plugin, which loads this plugin (immediately) after the current plugin.Why is this feature necessary?
In my specific use case, I am attempting to make a theme which includes a separate component defined as a Starlight plugin. While it would technically be possible to add that plugin's integration with the
addIntegration
function, the same is not possible for its custom CSS, overrides, etc.It is possible to bodge this functionality by calling the plugin's
setup
hook manually, but this brings additional issues with configs only being shallowly merged when both the child and parent plugin callupdateConfig
.(Example of the bodge)
Additional links of discussions:
addPlugin
methodDo you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions