mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
chore: update rspress & apply CK rspress theme (#1793)
This commit is contained in:
committed by
GitHub
parent
baa772c9d3
commit
366368b9b5
@@ -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',
|
||||
@@ -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: [
|
||||
{
|
||||
@@ -42,7 +42,6 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
},
|
||||
globalStyles: path.join(__dirname, 'docs/styles/index.css'),
|
||||
builderConfig: {
|
||||
plugins: [
|
||||
pluginOpenGraph({
|
||||
@@ -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(),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user