Skip to content

Commit 2ca5a0b

Browse files
authored
feat: use callstack rspress theme, remove custom styles (#229)
1 parent 7c8097e commit 2ca5a0b

File tree

4 files changed

+370
-839
lines changed

4 files changed

+370
-839
lines changed

docs/docs/styles/index.css

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

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"preview": "rspress preview"
99
},
1010
"dependencies": {
11-
"rspress": "^1.31.1"
11+
"@callstack/rspress-theme": "^0.0.2",
12+
"rspress": "^1.39.3"
1213
},
1314
"devDependencies": {
1415
"@types/node": "^16",

docs/rspress.config.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as path from 'path';
22
import { defineConfig } from 'rspress/config';
33
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
4+
import { pluginCallstackTheme } from '@callstack/rspress-theme/plugin';
45

56
export default defineConfig({
67
root: path.join(__dirname, 'docs'),
@@ -17,17 +18,21 @@ export default defineConfig({
1718
{
1819
icon: 'github',
1920
mode: 'link',
20-
content: 'https://github.com/okwasniewski/react-native-bottom-tabs',
21+
content:
22+
'https://github.com/callstackincubator/react-native-bottom-tabs',
2123
},
2224
],
2325
},
24-
globalStyles: path.join(__dirname, 'docs/styles/index.css'),
26+
plugins: [
27+
// @ts-ignore
28+
pluginCallstackTheme(),
29+
],
2530
builderConfig: {
2631
plugins: [
2732
pluginOpenGraph({
2833
title: 'React Native Bottom Tabs',
2934
type: 'website',
30-
url: 'https://okwasniewski.github.io/react-native-bottom-tabs/',
35+
url: 'https://callstackincubator.github.io/react-native-bottom-tabs/',
3136
description: 'Native Bottom Tabs for React Native',
3237
}),
3338
],

0 commit comments

Comments
 (0)