Skip to content

Commit 366368b

Browse files
chore: update rspress & apply CK rspress theme (#1793)
1 parent baa772c commit 366368b

File tree

8 files changed

+1268
-1370
lines changed

8 files changed

+1268
-1370
lines changed

website/.yarn/install-state.gz

423 KB
Binary file not shown.

website/docs/12.x/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hero:
99
tagline: Helps you to write better tests with less effort.
1010
actions:
1111
- theme: brand
12-
text: <span className="home-hero-primary-action">Quick Start</span>
12+
text: Quick Start
1313
link: /docs/start/quick-start
1414
- theme: alt
1515
text: Explore API
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["v12", "jest-matchers", "v11", "v9", "v7", "v2"]
1+
["v12", "v11", "v9", "v7", "v2"]

website/docs/13.x/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hero:
99
tagline: Helps you to write better tests with less effort.
1010
actions:
1111
- theme: brand
12-
text: <span className="home-hero-primary-action">Quick Start</span>
12+
text: Quick Start
1313
link: /docs/start/quick-start
1414
- theme: alt
1515
text: Explore API

website/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
"preview": "rspress preview"
99
},
1010
"dependencies": {
11-
"rsbuild-plugin-open-graph": "^1.0.0",
12-
"rspress": "1.20.1",
11+
"@callstack/rspress-theme": "^0.0.3",
12+
"rsbuild-plugin-open-graph": "^1.0.2",
13+
"rspress": "1.44.0",
1314
"rspress-plugin-font-open-sans": "^1.0.0",
1415
"rspress-plugin-vercel-analytics": "^0.3.0"
1516
},
1617
"devDependencies": {
17-
"@types/node": "^18",
18-
"@types/react": "^18.2.64",
19-
"typescript": "^5.2.2"
18+
"@types/node": "^24.0.13",
19+
"@types/react": "^18.3.23",
20+
"typescript": "^5.8.3"
2021
}
2122
}

website/rspress.config.ts

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as path from 'path';
22
import { defineConfig } from 'rspress/config';
3-
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
4-
import vercelAnalytics from 'rspress-plugin-vercel-analytics';
3+
import { pluginCallstackTheme } from '@callstack/rspress-theme/plugin';
54
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
5+
import pluginVercelAnalytics from 'rspress-plugin-vercel-analytics';
66

77
export default defineConfig({
88
root: 'docs',
@@ -32,7 +32,7 @@ export default defineConfig({
3232
enableScrollToTop: true,
3333
outlineTitle: 'Contents',
3434
footer: {
35-
message: 'Copyright © 2024 Callstack Open Source',
35+
message: `Copyright © ${new Date().getFullYear()} Callstack Open Source`,
3636
},
3737
socialLinks: [
3838
{
@@ -42,7 +42,6 @@ export default defineConfig({
4242
},
4343
],
4444
},
45-
globalStyles: path.join(__dirname, 'docs/styles/index.css'),
4645
builderConfig: {
4746
plugins: [
4847
pluginOpenGraph({
@@ -52,16 +51,10 @@ export default defineConfig({
5251
description: 'Helps you to write better tests with less effort.',
5352
}),
5453
],
55-
tools: {
56-
rspack(config, { addRules }) {
57-
addRules([
58-
{
59-
resourceQuery: /raw/,
60-
type: 'asset/source',
61-
},
62-
]);
63-
},
64-
},
6554
},
66-
plugins: [pluginFontOpenSans(), vercelAnalytics()],
55+
plugins: [
56+
pluginCallstackTheme(),
57+
// @ts-expect-error
58+
pluginVercelAnalytics(),
59+
],
6760
});

website/theme/index.tsx

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)