Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/document/main-doc/rspress.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
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';

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',
Expand All @@ -18,6 +22,7 @@ export default defineConfig({
transformers: [transformerNotationHighlight()],
},
},
plugins: [pluginLlms()],
search: {
codeBlocks: true,
},
Expand Down