diff --git a/packages/document/main-doc/rspress.config.ts b/packages/document/main-doc/rspress.config.ts index 67f749fba371..58d523a9bcbc 100644 --- a/packages/document/main-doc/rspress.config.ts +++ b/packages/document/main-doc/rspress.config.ts @@ -1,5 +1,6 @@ import path from 'path'; import { pluginSass } from '@rsbuild/plugin-sass'; +import { pluginLlms } from '@rspress/plugin-llms'; import { transformerNotationHighlight } from '@shikijs/transformers'; import { defineConfig } from 'rspress/config'; @@ -7,6 +8,9 @@ const docPath = path.join(__dirname, 'docs'); export default defineConfig({ root: docPath, + title: 'Modern.js', + description: + 'The Modern.js framework is a progressive web framework based on React. At ByteDance, we use Modern.js to build upper-level frameworks that have supported the development of thousands of web applications.', base: '/', logo: 'https://lf-cdn-tos.bytescm.com/obj/static/webinfra/modern-js-website/assets/images/images/modernjs-logo.svg', icon: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/uhbfnupenuhf/favicon.ico', @@ -18,6 +22,7 @@ export default defineConfig({ transformers: [transformerNotationHighlight()], }, }, + plugins: [pluginLlms()], search: { codeBlocks: true, },