You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently (from the documentation) rspress only supports extensions that create theme folders in the current directory, and does not support loading theme extensions from npm packages, which prevents the community from sharing theme packages such as rspress-theme-xxx for the rspress ecosystem.
What does the proposed API look like?
The intended API should consist of two parts:
New theme configuration items.
support for loading theme components from npm packages.
import*aspathfrom'path';import{defineConfig}from'rspress/config';exportdefaultdefineConfig({root: path.join(__dirname,'docs'),theme: 'rspress-theme-blog',// should support extending types from theme packagethemeConfig: {},});
Some additional things: Themes should normally be a superset of plugins, so plugins in the theme should also be able to be loaded properly.
The text was updated successfully, but these errors were encountered:
Nice features! That's what we are going to support. Thanks your feedback. We will design the theme npm package exports and support loading theme package in this month.
What problem does this feature solve?
Currently (from the documentation) rspress only supports extensions that create theme folders in the current directory, and does not support loading theme extensions from npm packages, which prevents the community from sharing theme packages such as rspress-theme-xxx for the rspress ecosystem.
What does the proposed API look like?
The intended API should consist of two parts:
Some additional things: Themes should normally be a superset of plugins, so plugins in the theme should also be able to be loaded properly.
The text was updated successfully, but these errors were encountered: