Skip to content

chore: update rspress & apply CK rspress theme #1793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2025
Merged
Show file tree
Hide file tree
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
Binary file added website/.yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion website/docs/12.x/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ hero:
tagline: Helps you to write better tests with less effort.
actions:
- theme: brand
text: <span className="home-hero-primary-action">Quick Start</span>
text: Quick Start
link: /docs/start/quick-start
- theme: alt
text: Explore API
Expand Down
2 changes: 1 addition & 1 deletion website/docs/13.x/docs/migration/previous/_meta.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["v12", "jest-matchers", "v11", "v9", "v7", "v2"]
["v12", "v11", "v9", "v7", "v2"]
2 changes: 1 addition & 1 deletion website/docs/13.x/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ hero:
tagline: Helps you to write better tests with less effort.
actions:
- theme: brand
text: <span className="home-hero-primary-action">Quick Start</span>
text: Quick Start
link: /docs/start/quick-start
- theme: alt
text: Explore API
Expand Down
11 changes: 6 additions & 5 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
"preview": "rspress preview"
},
"dependencies": {
"rsbuild-plugin-open-graph": "^1.0.0",
"rspress": "1.20.1",
"@callstack/rspress-theme": "^0.0.3",
"rsbuild-plugin-open-graph": "^1.0.2",
"rspress": "1.44.0",
"rspress-plugin-font-open-sans": "^1.0.0",
"rspress-plugin-vercel-analytics": "^0.3.0"
},
"devDependencies": {
"@types/node": "^18",
"@types/react": "^18.2.64",
"typescript": "^5.2.2"
"@types/node": "^24.0.13",
"@types/react": "^18.3.23",
"typescript": "^5.8.3"
}
}
23 changes: 8 additions & 15 deletions website/rspress.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as path from 'path';
import { defineConfig } from 'rspress/config';
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
import vercelAnalytics from 'rspress-plugin-vercel-analytics';
import { pluginCallstackTheme } from '@callstack/rspress-theme/plugin';
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
import pluginVercelAnalytics from 'rspress-plugin-vercel-analytics';

export default defineConfig({
root: 'docs',
Expand Down Expand Up @@ -32,7 +32,7 @@ export default defineConfig({
enableScrollToTop: true,
outlineTitle: 'Contents',
footer: {
message: 'Copyright © 2024 Callstack Open Source',
message: `Copyright © ${new Date().getFullYear()} Callstack Open Source`,
},
socialLinks: [
{
Expand All @@ -42,7 +42,6 @@ export default defineConfig({
},
],
},
globalStyles: path.join(__dirname, 'docs/styles/index.css'),
builderConfig: {
plugins: [
pluginOpenGraph({
Expand All @@ -52,16 +51,10 @@ export default defineConfig({
description: 'Helps you to write better tests with less effort.',
}),
],
tools: {
rspack(config, { addRules }) {
addRules([
{
resourceQuery: /raw/,
type: 'asset/source',
},
]);
},
},
},
plugins: [pluginFontOpenSans(), vercelAnalytics()],
plugins: [
pluginCallstackTheme(),
// @ts-expect-error
pluginVercelAnalytics(),
],
});
43 changes: 0 additions & 43 deletions website/theme/index.tsx

This file was deleted.

Loading