Skip to content

Commit f986bf6

Browse files
authored
chore: migrate docs to @callstack/rspress-theme 0.2.X (#72)
* fix(docs): bottom landing page button link * chore: docs format script * chore: migrate docs to @callstack/rspress-theme
1 parent 86660d7 commit f986bf6

5 files changed

Lines changed: 147 additions & 171 deletions

File tree

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
"preview": "rspress preview"
1515
},
1616
"dependencies": {
17-
"@callstack/rspress-theme": "^0.1.3",
18-
"rspress": "^2.0.0-beta.20"
17+
"@callstack/rspress-theme": "^0.2.0",
18+
"rspress": "^2.0.0-beta.19"
1919
},
2020
"devDependencies": {
2121
"@biomejs/biome": "^1.9.4",
22-
"@rspress/plugin-typedoc": "^2.0.0-beta.20",
22+
"@rspress/plugin-typedoc": "^2.0.0-beta.19",
2323
"@types/node": "^18.11.17"
2424
}
2525
}

docs/styles/globalStyles.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ img[class*="heroImage-"] {
4747
height: 100px;
4848
}
4949

50-
div[class*="container-"] {
51-
/* so as not to limit the height of the container */
52-
height: unset !important;
53-
/* slight paddin from the top */
54-
padding-top: 1rem !important;
55-
}
56-
5750
/* Theme styles section end == */
5851

5952
/* == Callstack rspress theme styles section start == */

docs/theme/index.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from '@callstack/rspress-theme';
1313
import { useNavigate } from 'rspress/runtime';
1414
import {
15+
Link,
1516
HomeLayout as RspressHomeLayout,
1617
Layout as RspressLayout,
1718
} from 'rspress/theme';
@@ -31,9 +32,11 @@ const HomeLayout = () => {
3132
afterFeatures={
3233
<>
3334
<div className="docs-introduction-cta">
34-
<Button theme="alt" type="button" href="/docs/introduction">
35-
Not sure, which to choose?
36-
</Button>
35+
<Link href="/docs/introduction">
36+
<Button theme="alt" type="button">
37+
Not sure, which to choose?
38+
</Button>
39+
</Link>
3740
</div>
3841

3942
<HomeBanner href="https://callstack.com" />

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"lint:android": "./scripts/lint-android.sh",
1616
"lint:objc": "./scripts/lint-objc.sh",
1717
"lint:swift": "./scripts/lint-swift.sh",
18+
"format:docs": "yarn workspace docs format",
1819
"format:android": "./scripts/format-android.sh",
1920
"format:objc": "./scripts/format-objc.sh",
2021
"format:swift": "./scripts/format-swift.sh",

0 commit comments

Comments
 (0)