Skip to content

Commit 41b15db

Browse files
committed
Update build script and modify redirects in documentation
- Changed the build script in package.json to include a new node script for updating redirects and generating LLMs text. - Commented out several redirect entries in the _redirects file to indicate they are no longer active, improving clarity in the documentation.
1 parent dddc754 commit 41b15db

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

cnwebsite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"scripts": {
1313
"docusaurus": "docusaurus",
1414
"start": "docusaurus start",
15-
"build": "docusaurus build && yarn run update-redirect ./build/_redirects ./versions.json",
15+
"build": "docusaurus build && node ../scripts/update-redirects.js ./build/_redirects ./versions.json && yarn run generate-llms-txt",
1616
"build:fast": "PREVIEW_DEPLOY=true yarn run build",
1717
"tsc": "npx tsc --noEmit",
1818
"swizzle": "docusaurus swizzle",

website/static/_redirects

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/docs/android-setup /docs/getting-started
99
/docs/building-for-apple-tv /docs/building-for-tv
1010
/docs/building-from-source /contributing/how-to-build-from-source
11-
/docs/contributing /contributing/overview
11+
# /docs/contributing /contributing/overview
1212
/docs/sourcemaps /docs/debugging-release-builds
1313
/docs/symbolication /docs/debugging-release-builds
1414
/docs/publishing-forks /contributing/how-to-build-from-source#publish-your-own-version-of-react-native
@@ -106,17 +106,17 @@ https://reactnative.dev/docs/0.74/ram-bundles-inline-requires /docs/o
106106
/docs/0.66/architecture-glossary /architecture/glossary
107107

108108
# Point to new release documentation
109-
/contributing/release-branch-cut-and-rc0 https://github.com/reactwg/react-native-releases#release-documentation
110-
/contributing/release-candidate-patch https://github.com/reactwg/react-native-releases#release-documentation
111-
/contributing/release-dependencies https://github.com/reactwg/react-native-releases#release-documentation
112-
/contributing/release-faq https://github.com/reactwg/react-native-releases#release-documentation
113-
/contributing/release-roles-responsibilites https://github.com/reactwg/react-native-releases#release-documentation
114-
/contributing/release-stable-minor https://github.com/reactwg/react-native-releases#release-documentation
115-
/contributing/release-stable-patch https://github.com/reactwg/react-native-releases#release-documentation
116-
/contributing/release-testing https://github.com/reactwg/react-native-releases#release-documentation
117-
/contributing/release-troubleshooting https://github.com/reactwg/react-native-releases#release-documentation
118-
/contributing/release-updating-packages https://github.com/reactwg/react-native-releases#release-documentation
119-
/contributing/updating-upgrade-helper https://github.com/reactwg/react-native-releases#release-documentation
109+
# /contributing/release-branch-cut-and-rc0 https://github.com/reactwg/react-native-releases#release-documentation
110+
# /contributing/release-candidate-patch https://github.com/reactwg/react-native-releases#release-documentation
111+
# /contributing/release-dependencies https://github.com/reactwg/react-native-releases#release-documentation
112+
# /contributing/release-faq https://github.com/reactwg/react-native-releases#release-documentation
113+
# /contributing/release-roles-responsibilites https://github.com/reactwg/react-native-releases#release-documentation
114+
# /contributing/release-stable-minor https://github.com/reactwg/react-native-releases#release-documentation
115+
# /contributing/release-stable-patch https://github.com/reactwg/react-native-releases#release-documentation
116+
# /contributing/release-testing https://github.com/reactwg/react-native-releases#release-documentation
117+
# /contributing/release-troubleshooting https://github.com/reactwg/react-native-releases#release-documentation
118+
# /contributing/release-updating-packages https://github.com/reactwg/react-native-releases#release-documentation
119+
# /contributing/updating-upgrade-helper https://github.com/reactwg/react-native-releases#release-documentation
120120

121121
# Rework of the community
122122
/help /community/overview

0 commit comments

Comments
 (0)