Skip to content

Commit b2361e7

Browse files
committed
Enable docusaurus faster
1 parent 4a9a297 commit b2361e7

File tree

4 files changed

+203
-768
lines changed

4 files changed

+203
-768
lines changed

docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export default {
99
url: 'https://reactnavigation.org/',
1010
baseUrl: '/',
1111
favicon: 'img/favicon.ico',
12+
future: {
13+
v4: true,
14+
experimental_faster: true,
15+
},
1216
organizationName: 'react-navigation',
1317
projectName: 'react-navigation.github.io',
1418
onBrokenLinks: 'throw',

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@docusaurus/core": "3.9.2",
19-
"@docusaurus/faster": "3.9.2",
19+
"@docusaurus/faster": "^3.9.2",
2020
"@docusaurus/plugin-client-redirects": "3.9.2",
2121
"@docusaurus/plugin-google-analytics": "3.9.2",
2222
"@docusaurus/preset-classic": "3.9.2",
@@ -42,9 +42,6 @@
4242
"prettier": "^3.7.4",
4343
"recast": "^0.23.11"
4444
},
45-
"resolutions": {
46-
"@rspack/core": "1.0.14"
47-
},
4845
"packageManager": "yarn@4.0.2",
4946
"browserslist": {
5047
"production": [

src/css/custom.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -818,13 +818,13 @@ header {
818818
border-color: var(--codeblock-border-color);
819819
border-bottom-left-radius: var(--ifm-pre-border-radius);
820820
border-bottom-right-radius: var(--ifm-pre-border-radius);
821-
822-
[data-theme='dark'] & {
823-
border-top-color: rgba(255, 255, 255, 0.07);
824-
}
825821
}
826822
}
827823

824+
[data-theme='dark'] .theme-code-block + .code-block-footer {
825+
border-top-color: rgba(255, 255, 255, 0.07);
826+
}
827+
828828
article {
829829
text-wrap: pretty;
830830

0 commit comments

Comments
 (0)