11import * as path from 'path' ;
22import { 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' ;
54import { pluginOpenGraph } from 'rsbuild-plugin-open-graph' ;
5+ import pluginVercelAnalytics from 'rspress-plugin-vercel-analytics' ;
66
77export 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 : / r a w / ,
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} ) ;
0 commit comments