UNPKG

@live-demo/plugin-rspress

Version:

Rspress plugin for interactive live demos.

21 lines (20 loc) 722 B
import { LiveDemoPluginOptions } from "@live-demo/core"; import { RspressPlugin } from "@rspress/core"; //#region src/plugin.d.ts interface LiveDemoPluginRspressOptions extends LiveDemoPluginOptions { /** * Path to custom layout file. * It will be injected as a global component: * @see https://rspress.dev/api/config/config-build#markdownglobalcomponents * * The file has to have a default export. * Path needs to end with `LiveDemo.(jsx|tsx)`. * * @example * path.join(__dirname, "src/CustomLiveDemo/LiveDemo.tsx") **/ customLayout?: string; } declare function liveDemoPluginRspress(options?: LiveDemoPluginRspressOptions): RspressPlugin; //#endregion export { liveDemoPluginRspress };