Skip to content

Commit 5e9824b

Browse files
committed
Update package configurations and styles for cnwebsite
- Renamed workspace from "website" to "cnwebsite" in package.json. - Upgraded Docusaurus dependencies to version 3.8.1 in cnwebsite/package.json. - Enabled Docusaurus v4 future flags in cnwebsite/docusaurus.config.ts for easier upgrades. - Added a new version "0.81" in cnwebsite/versions.json. - Refined styles in _shared.scss and customTheme.scss, including hover effects and color adjustments. - Introduced a new .hot-link style in index.scss for visual indicators.
1 parent a65dc60 commit 5e9824b

File tree

357 files changed

+53314
-2041
lines changed

Some content is hidden

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

357 files changed

+53314
-2041
lines changed

cnwebsite/docusaurus.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const isDeployPreview = process.env.PREVIEW_DEPLOY === 'true';
2828

2929
const config: Config = {
3030
future: {
31+
// Turns Docusaurus v4 future flags on to make it easier to upgrade later
32+
v4: true,
3133
// Make Docusaurus build faster - enabled by default
3234
// See https://github.com/facebook/docusaurus/issues/10556
3335
// See https://github.com/facebook/react-native-website/pull/4268

cnwebsite/package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,32 @@
5050
]
5151
},
5252
"dependencies": {
53-
"@docusaurus/core": "3.6.3",
54-
"@docusaurus/faster": "3.6.3",
55-
"@docusaurus/plugin-google-gtag": "3.6.3",
56-
"@docusaurus/plugin-pwa": "3.6.3",
57-
"@docusaurus/preset-classic": "3.6.3",
58-
"docusaurus-plugin-sass": "^0.2.5",
59-
"react": "^18.2.0",
60-
"react-dom": "^18.2.0",
53+
"@docusaurus/core": "3.8.1",
54+
"@docusaurus/faster": "3.8.1",
55+
"@docusaurus/plugin-google-gtag": "3.8.1",
56+
"@docusaurus/plugin-pwa": "3.8.1",
57+
"@docusaurus/preset-classic": "3.8.1",
58+
"docusaurus-plugin-sass": "^0.2.6",
59+
"react": "^19.1.1",
60+
"react-dom": "^19.1.1",
6161
"react-github-btn": "^1.4.0",
6262
"sass": "1.76.0"
6363
},
6464
"devDependencies": {
65-
"@docusaurus/module-type-aliases": "3.6.3",
66-
"@docusaurus/tsconfig": "3.6.3",
67-
"@docusaurus/types": "3.6.3",
65+
"@docusaurus/module-type-aliases": "3.8.1",
66+
"@docusaurus/tsconfig": "3.8.1",
67+
"@docusaurus/types": "3.8.1",
6868
"@react-native-website/lint-examples": "0.0.0",
6969
"@react-native-website/update-redirects": "0.0.0",
7070
"@types/google.analytics": "^0.0.46",
71+
"@types/react": "^19.1.10",
7172
"alex": "^11.0.1",
7273
"case-police": "^1.0.0",
7374
"eslint": "^8.57.1",
7475
"fs-extra": "^11.2.0",
7576
"glob": "^11.0.0",
76-
"prettier": "^3.5.3",
77+
"prettier": "^3.6.2",
7778
"remark-cli": "^12.0.1",
78-
"typescript": "^5.7.2"
79+
"typescript": "^5.9.2"
7980
}
8081
}

cnwebsite/src/css/_shared.scss

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,36 @@
77

88
%link-style {
99
display: initial;
10-
color: var(--ifm-font-color-base);
11-
background-color: rgba(187, 239, 253, 0.3);
1210
line-height: calc(var(--ifm-font-size-base) + 4px);
13-
border-bottom: 1px solid var(--ifm-hr-border-color);
11+
border-bottom: 1px solid transparent;
12+
transition: border-color 0.15s;
1413

1514
&:hover {
16-
background-color: rgba(187, 239, 253, 0.6);
15+
border-bottom-color: var(--ifm-color-primary-75);
1716
}
1817
}
1918

2019
%link-style-dark {
21-
background-color: rgba(97, 218, 251, 0.12);
22-
border-bottom-color: rgba(97, 218, 251, 0.3);
20+
color: var(--brand);
2321

2422
&:hover {
25-
background-color: rgba(97, 218, 251, 0.4);
26-
border-bottom-color: var(--brand);
23+
border-bottom-color: var(--ifm-color-primary-75);
2724
}
2825
}
2926

3027
%hash-link-style {
31-
background-color: transparent;
32-
border-bottom: 0;
33-
color: var(--subtle);
34-
35-
&:hover {
36-
background-color: transparent;
37-
color: var(--brand);
28+
&,
29+
&::before {
30+
color: var(--subtle);
31+
border-bottom: 0 !important;
3832
}
3933
}
4034

4135
%button-link-style {
4236
display: inline-block;
4337
padding: 8px 16px;
4438
border: 1px solid var(--ifm-color-emphasis-300);
45-
border-radius: var(--ifm-global-radius);
39+
border-radius: 32px;
4640
color: var(--ifm-color-content-secondary);
4741

4842
&:hover {

0 commit comments

Comments
 (0)