Skip to content

Commit e25a21a

Browse files
okwasniewskicursoragentoskar.kwasniewskijbroma
authored
docs: update theme (#389)
* Update dependencies and add global styles for documentation site Co-authored-by: oskar.kwasniewski <[email protected]> * Checkpoint before follow-up message * Update to @callstack/[email protected] and [email protected] - Updated @callstack/rspress-theme from 0.1.4 to 0.2.0 - Updated rspress from 1.42.1 to 2.0.0-beta.21 to meet theme requirements - Renamed all _meta.json files to _nav.json for rspress v2 compatibility - Temporarily disabled SSG to resolve SSR compatibility issues - Ran copy-assets command to update theme assets * fix: part 1 * fix: dont hoist * chore: revert removing package-lock * fix: yarn.lock --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: oskar.kwasniewski <[email protected]> Co-authored-by: Jakub Romanczyk <[email protected]>
1 parent c1a0dd7 commit e25a21a

25 files changed

+1852
-1686
lines changed
File renamed without changes.

docs/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
"name": "react-native-bottom-tabs-docs",
33
"version": "1.0.0",
44
"private": true,
5+
"installConfig": {
6+
"hoistingLimits": "workspaces"
7+
},
58
"scripts": {
69
"dev": "rspress dev",
710
"build": "rspress build",
811
"preview": "rspress preview"
912
},
1013
"dependencies": {
11-
"@callstack/rspress-theme": "^0.0.2",
12-
"rspress": "^1.39.3"
14+
"@callstack/rspress-theme": "^0.2.0",
15+
"rspress": "^2.0.0-beta.21"
1316
},
1417
"devDependencies": {
15-
"@types/node": "^16",
18+
"@types/node": "^20",
1619
"rsbuild-plugin-open-graph": "^1.0.2"
1720
}
1821
}

docs/rspress.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default defineConfig({
1111
logoText: 'React Native Bottom Tabs',
1212
icon: '/img/phone.png',
1313
logo: '/img/phone.png',
14+
globalStyles: path.join(__dirname, 'theme/styles.css'),
1415
themeConfig: {
1516
enableContentAnimation: true,
1617
enableAppearanceAnimation: false,
@@ -23,10 +24,7 @@ export default defineConfig({
2324
},
2425
],
2526
},
26-
plugins: [
27-
// @ts-ignore
28-
pluginCallstackTheme(),
29-
],
27+
plugins: [pluginCallstackTheme()],
3028
builderConfig: {
3129
plugins: [
3230
pluginOpenGraph({

docs/theme/assets/alert.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/theme/assets/arrow-down.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/theme/assets/arrow-right.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/theme/assets/callstack.svg

Lines changed: 26 additions & 0 deletions
Loading

docs/theme/assets/check-double.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/theme/assets/close.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/theme/assets/details.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)