We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd81f2b commit 74ce2f4Copy full SHA for 74ce2f4
package.json
@@ -22,7 +22,7 @@
22
"eslint": "^9.19.0",
23
"globals": "^15.14.0",
24
"prettier": "^3.4.2",
25
- "rspress": "^v2.0.0-alpha.0",
+ "rspress": "^1.42.1",
26
"typescript-eslint": "^8.22.0"
27
},
28
"description": "## Setup",
theme/index.tsx
@@ -1,10 +1,11 @@
1
-import { Layout as BasicLayout } from 'rspress/theme';
+import Theme from 'rspress/theme';
2
import { Content } from 'rspress/runtime';
3
import { HomeLayout } from './pages/index';
4
-const Layout = () => <BasicLayout><Content /></BasicLayout>;
+const Layout = () => <Theme.Layout ><Content /></Theme.Layout>;
5
6
7
export default {
8
+ ...Theme,
9
Layout,
10
HomeLayout,
11
};
0 commit comments