Skip to content

Commit 175a895

Browse files
authored
doc: enable code search in rspress (#356)
* doc: enable code search in rspress * fix: lint * chore: update lockfile
1 parent e860215 commit 175a895

File tree

3 files changed

+577
-389
lines changed

3 files changed

+577
-389
lines changed

apps/site/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
},
1414
"packageManager": "pnpm@9.3.0",
1515
"dependencies": {
16+
"querystring": "0.2.1",
1617
"react": "^18.2.0",
1718
"react-dom": "^18.2.0",
18-
"querystring": "0.2.1",
19-
"rspress": "1.34.1"
19+
"rspress": "^1.41.0"
2020
},
2121
"devDependencies": {
2222
"@types/node": "^18.0.0"

apps/site/rspress.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { defineConfig } from 'rspress/config';
44
export default defineConfig({
55
root: path.join(__dirname, 'docs'),
66
title: 'Midscene.js',
7+
search: {
8+
codeBlocks: true,
9+
},
710
description:
811
'Automate browser actions, extract data, and perform assertions using AI. It offers JavaScript SDK, Chrome extension, and support for scripting in YAML.',
912
icon: '/midscene-icon.png',

0 commit comments

Comments
 (0)