Skip to content

Commit cbcbf12

Browse files
authored
docs: use new CK theme (#1218)
1 parent d21c745 commit cbcbf12

43 files changed

Lines changed: 993 additions & 638 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,5 @@
3434
"is-in-ci": "^1.0.0",
3535
"nx": "19.7.3",
3636
"typescript": "catalog:"
37-
},
38-
"pnpm": {
39-
"patchedDependencies": {
40-
"@rspress/plugin-llms@2.0.0-beta.3": "patches/@rspress__plugin-llms@2.0.0-beta.3.patch"
41-
}
4237
}
4338
}

patches/@rspress__plugin-llms@2.0.0-beta.3.patch

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

pnpm-lock.yaml

Lines changed: 456 additions & 508 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
"diff:v3-v4:mjs": "git diff @callstack/repack@3.0.0:templates/webpack.config.mjs HEAD:templates/webpack.config.mjs > src/public/diffs/repack_v3-v4_mjs.diff"
1414
},
1515
"dependencies": {
16-
"@callstack/rspress-theme": "^0.0.3",
17-
"@rspress/plugin-llms": "2.0.0-beta.3",
16+
"@callstack/rspress-theme": "^0.2.0",
17+
"@rspress/plugin-llms": "2.0.0-beta.21",
1818
"rsbuild-plugin-open-graph": "^1.0.2",
19-
"rspress": "2.0.0-beta.3",
20-
"rspress-plugin-font-open-sans": "^1.0.0",
19+
"rspress": "2.0.0-beta.21",
2120
"rspress-plugin-sitemap": "^1.1.1",
2221
"rspress-plugin-vercel-analytics": "^0.3.0"
2322
},

website/rspress.config.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as path from 'node:path';
22
import { pluginCallstackTheme } from '@callstack/rspress-theme/plugin';
33
import { pluginLlms } from '@rspress/plugin-llms';
44
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
5-
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
65
import pluginSitemap from 'rspress-plugin-sitemap';
76
import vercelAnalytics from 'rspress-plugin-vercel-analytics';
87
import { defineConfig } from 'rspress/config';
@@ -22,12 +21,11 @@ export default defineConfig({
2221
'A modern build tool for React Native that brings the Rspack and webpack ecosystem to mobile React Native apps',
2322
icon: '/img/favicon.ico',
2423
logo: {
25-
light: '/img/logo_light.svg',
26-
dark: '/img/logo_dark.svg',
24+
light: '/img/logo-light.png',
25+
dark: '/img/logo-dark.png',
2726
},
2827
markdown: {
2928
checkDeadLinks: true,
30-
codeHighlighter: 'prism',
3129
},
3230
route: {
3331
cleanUrls: true,
@@ -45,7 +43,7 @@ export default defineConfig({
4543
},
4644
editLink: {
4745
docRepoBaseUrl: EDIT_ROOT_URL,
48-
text: '📝 Edit this page on GitHub',
46+
text: 'Edit this page on GitHub',
4947
},
5048
socialLinks: [
5149
{
@@ -85,7 +83,7 @@ export default defineConfig({
8583
title: 'Re.Pack',
8684
type: 'website',
8785
url: 'https://re-pack.dev',
88-
image: 'https://re-pack.dev/img/og-image.png',
86+
image: 'https://re-pack.dev/img/og-image.jpg',
8987
description: 'A modern build tool for React Native',
9088
twitter: {
9189
site: '@repack_rn',
@@ -108,16 +106,14 @@ export default defineConfig({
108106
process.env.REPACK_DOC_VERSION !== 'v2' &&
109107
process.env.REPACK_DOC_VERSION !== 'v3' &&
110108
process.env.REPACK_DOC_VERSION !== 'v4'
111-
? path.join(__dirname, DOCS_ROOT, 'styles', 'index.css')
109+
? path.join(__dirname, 'theme', 'styles.css')
112110
: undefined,
113111
plugins: [
114112
// @ts-ignore
115113
pluginSitemap({
116114
domain: 'https://re-pack.dev',
117115
}),
118116
// @ts-ignore
119-
pluginFontOpenSans(),
120-
// @ts-ignore
121117
vercelAnalytics(),
122118
// @ts-ignore
123119
pluginCallstackTheme(),

website/src/latest/index.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,37 @@
22
pageType: home
33

44
hero:
5-
name: <img alt="Re.Pack" className="home-hero-name-img custom__home-hero-name-img" src="/img/banner.svg" width="300" />
6-
text: 'A modern build tool for React Native'
5+
name: Modern build tool for React Native
76
tagline: Re.Pack brings Rspack and webpack ecosystem to mobile React Native apps
87
actions:
98
- theme: brand
10-
text: <span className="home-hero-primary-action">Get started</span>
9+
text: Get started
1110
link: /docs/getting-started/quick-start
1211
- theme: alt
1312
text: Learn more
1413
link: /docs/getting-started/introduction
14+
image:
15+
src:
16+
light: /img/logo-light.png
17+
dark: /img/logo-dark.png
18+
alt: Logo
1519
features:
1620
- title: Mobile Microfrontends
1721
details: Leverage Module Federation v2 to split JS or Hermes bytecode bundle into smaller chunks and download on-demand from a server.
18-
icon: <div className="custom__rspress-home-feature-icon-img-container"><img src="/img/mf_icon.svg" /></div>
22+
icon: <img src="/icons/layout-columns.svg" />
1923
- title: Powered by webpack / Rspack
2024
details: Use the full webpack ecosystem of plugins and loaders. Enhance with Rspack for build and fast refresh speed.
21-
icon: <div className="custom__rspress-home-feature-icon-img-container"><img src="/img/webpack_icon.svg" /><img src="/img/rspack_icon.svg" /></div>
25+
icon: <img src="/icons/repeat.svg" />
2226
- title: Drop-in Metro Replacement
2327
details: Use instead of Metro—a default React Native bundler. Migrate with a single command. All platforms supported.
24-
icon: 🚇
28+
icon: <img src="/icons/layout-distribute-vertical.svg" />
2529
- title: Smaller App Size
2630
details: Use advanced optimizations like Tree Shaking to produce smaller Hermes bytecode size, improving app startup.
27-
icon: 📉
31+
icon: <img src="/icons/trending-down.svg" />
2832
- title: React Native DevTools
2933
details: Integrated modern debugging experience for React Native with console, breakpoints, CPU, Memory and React profiling.
30-
icon: ⚙️
34+
icon: <img src="/icons/sliders-2.svg" />
3135
- title: Fully-featured Dev Server
3236
details: Take advantage of built-in support for Hot Module Replacement, Fast Refresh, error symbolication, and source maps support.
33-
icon: 🧑‍💻
37+
icon: <img src="/icons/server.svg" />
3438
---
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)