|
1 |
| -import * as path from 'path'; |
2 |
| -import { defineConfig } from 'rspress/config'; |
3 |
| -import { pluginOpenGraph } from 'rsbuild-plugin-open-graph'; |
4 |
| -import { pluginCallstackTheme } from '@callstack/rspress-theme/plugin'; |
| 1 | +import { withCallstackPreset } from '@callstack/rspress-preset'; |
5 | 2 |
|
6 |
| -export default defineConfig({ |
7 |
| - root: path.join(__dirname, 'docs'), |
8 |
| - base: '/react-native-bottom-tabs/', |
9 |
| - title: 'React Native Bottom Tabs', |
10 |
| - description: 'React Native Bottom Tabs Documentation', |
11 |
| - logoText: 'React Native Bottom Tabs', |
12 |
| - icon: '/img/phone.png', |
13 |
| - logo: '/img/phone.png', |
14 |
| - globalStyles: path.join(__dirname, 'theme/styles.css'), |
15 |
| - themeConfig: { |
16 |
| - enableContentAnimation: true, |
17 |
| - enableAppearanceAnimation: false, |
18 |
| - socialLinks: [ |
19 |
| - { |
20 |
| - icon: 'github', |
21 |
| - mode: 'link', |
22 |
| - content: |
| 3 | +export default withCallstackPreset( |
| 4 | + { |
| 5 | + context: __dirname, |
| 6 | + docs: { |
| 7 | + title: 'React Native Bottom Tabs', |
| 8 | + description: 'React Native Bottom Tabs Documentation', |
| 9 | + editUrl: |
| 10 | + 'https://github.com/callstackincubator/react-native-bottom-tabs/tree/main/docs', |
| 11 | + icon: '/img/phone.png', |
| 12 | + logoLight: '/img/phone.png', |
| 13 | + logoDark: '/img/phone.png', |
| 14 | + rootDir: 'docs', |
| 15 | + rootUrl: 'https://callstackincubator.github.io/react-native-bottom-tabs/', |
| 16 | + socials: { |
| 17 | + github: |
23 | 18 | 'https://github.com/callstackincubator/react-native-bottom-tabs',
|
24 | 19 | },
|
25 |
| - ], |
| 20 | + }, |
26 | 21 | },
|
27 |
| - plugins: [pluginCallstackTheme()], |
28 |
| - builderConfig: { |
29 |
| - plugins: [ |
30 |
| - pluginOpenGraph({ |
31 |
| - title: 'React Native Bottom Tabs', |
32 |
| - type: 'website', |
33 |
| - url: 'https://callstackincubator.github.io/react-native-bottom-tabs/', |
34 |
| - description: 'Native Bottom Tabs for React Native', |
35 |
| - }), |
36 |
| - ], |
37 |
| - }, |
38 |
| -}); |
| 22 | + { |
| 23 | + base: '/react-native-bottom-tabs/', |
| 24 | + } |
| 25 | +); |
0 commit comments