Skip to content

Commit 792528b

Browse files
committed
fix(cnwebsite): keep set-up environment route
1 parent 235f6bd commit 792528b

98 files changed

Lines changed: 469 additions & 457 deletions

File tree

Some content is hidden

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

cndocs/_getting-started-linux-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ yarn react-native run-android
181181

182182
如果你想把 React Native 集成到现有的原生项目中,则请参考[集成到现有原生应用](integration-with-existing-apps.md)
183183

184-
如果你想从头开始学习 React Native 开发,可以从[简介](getting-started.md)文档开始。
184+
如果你想从头开始学习 React Native 开发,可以从[简介](getting-started)文档开始。

cndocs/_getting-started-macos-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,4 @@ yarn react-native run-android
207207

208208
如果你想把 React Native 集成到现有的原生项目中,则请参考[集成到现有原生应用](integration-with-existing-apps.md)
209209

210-
如果你想从头开始学习 React Native 开发,可以从[简介](getting-started.md)文档开始。
210+
如果你想从头开始学习 React Native 开发,可以从[简介](getting-started)文档开始。

cndocs/_getting-started-macos-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ yarn react-native run-ios
149149

150150
如果你想把 React Native 集成到现有的原生项目中,则请参考[集成到现有原生应用](integration-with-existing-apps.md)
151151

152-
如果你想从头开始学习 React Native 开发,可以从[简介](getting-started.md)文档开始。
152+
如果你想从头开始学习 React Native 开发,可以从[简介](getting-started)文档开始。

cndocs/_getting-started-windows-android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ yarn react-native run-android
167167

168168
> 译注:建议在`run-android`成功后再尝试使用 Android Studio 启动。请不要轻易点击 Android Studio 中可能弹出的建议更新项目中某依赖项的建议,否则可能导致无法运行。
169169
170-
> 如果你无法正常运行,遇到奇奇怪怪的红屏错误,先回头`仔细对照文档检查`,然后可以看看[问题讨论区](https://github.com/reactnativecn/react-native-website/issues)。不同时期不同版本可能会碰到不同的问题,我们会在论坛中及时解答更新。但请注意**_千万不要_**执行 bundle 命令,那样会导致代码完全无法刷新。
170+
> 如果你无法正常运行,遇到奇奇怪怪的红屏错误,先回头`仔细对照文档检查`,然后可以看看[问题讨论区](https://github.com/reactnativecn/react-native-website/issues)。不同时期不同版本可能会碰到不同的问题,我们会在论坛中及时解答更新。但请注意***千万不要***执行 bundle 命令,那样会导致代码完全无法刷新。
171171
172172
### 修改项目
173173

@@ -186,4 +186,4 @@ yarn react-native run-android
186186

187187
如果你想把 React Native 集成到现有的原生项目中,则请参考[集成到现有原生应用](integration-with-existing-apps.md)
188188

189-
如果你想从头开始学习 React Native 开发,可以从[简介](getting-started.md)文档开始。
189+
如果你想从头开始学习 React Native 开发,可以从[简介](getting-started)文档开始。

cndocs/_integration-with-existing-apps-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {getTemplateBranchNameForCurrentVersion} from '@site/src/getTemplateBranc
2222

2323
## 准备工作
2424

25-
请按照[设置开发环境](environment-setup)指南和[不使用框架的 React Native](getting-started-without-a-framework)指南来配置您的开发环境,以便构建 iOS 平台的 React Native 应用。
25+
请按照[设置开发环境](set-up-your-environment)指南和[不使用框架的 React Native](getting-started-without-a-framework)指南来配置您的开发环境,以便构建 iOS 平台的 React Native 应用。
2626
本指南还假设您熟悉 iOS 开发的基础知识,如创建`UIViewController`和编辑`Podfile`文件。
2727

2828
### 1. 设置目录结构

cndocs/_integration-with-existing-apps-kotlin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {getTemplateBranchNameForCurrentVersion} from '@site/src/getTemplateBranc
2222

2323
## 开发环境准备
2424

25-
按照[开发环境搭建教程](environment-setup)[不使用框架使用 React Native](getting-started-without-a-framework) 来配置你的 Android 开发环境。
25+
按照[开发环境搭建教程](set-up-your-environment)[不使用框架使用 React Native](getting-started-without-a-framework) 来配置你的 Android 开发环境。
2626
本教程还假设你熟悉 Android 开发的基础知识,例如创建 Activity 和编辑 `AndroidManifest.xml` 文件。
2727

2828
### 1. 配置项目目录结构

cndocs/get-started-without-a-framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import PlatformSupport from '@site/src/theme/PlatformSupport';
1313

1414
如果[框架](/architecture/glossary#react-native-framework)无法很好地满足你的需求,或者你更倾向于自己编写框架,那么你可以在不使用框架的情况下创建 React Native 应用。
1515

16-
为此,你首先需要[搭建开发环境](environment-setup)。环境准备就绪后,继续按以下步骤创建应用并开始开发。
16+
为此,你首先需要[搭建开发环境](set-up-your-environment)。环境准备就绪后,继续按以下步骤创建应用并开始开发。
1717

1818
### 第 1 步:创建新项目
1919

cndocs/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: 本指南将帮助你了解学习 React Native 的前置知识、
77
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
88

99
<div className="content-banner">
10-
欢迎开启 React Native 学习之旅!如果你在寻找入门说明,它们已经移到了<a href="environment-setup">单独的章节</a>。继续阅读,了解文档结构、原生组件、React 等内容!
10+
欢迎开启 React Native 学习之旅!如果你在寻找入门说明,它们已经移到了<a href="set-up-your-environment">单独的章节</a>。继续阅读,了解文档结构、原生组件、React 等内容!
1111
<img className="content-banner-img" src="/docs/assets/p_android-ios-devices.svg" alt=" " />
1212
</div>
1313

@@ -52,7 +52,7 @@ export default YourApp;
5252
上面的是一个 Snack Player。这是 Expo 提供的一个便捷工具,用来嵌入并运行 React Native 项目,并展示它们在 Android 和 iOS 等平台上的渲染效果。代码是实时可编辑的,因此你可以直接在浏览器中动手试试。现在就把上面的 “Try editing me!” 改成 “Hello, world!” 吧。
5353

5454
:::tip
55-
如果你想在本地搭建开发环境,也可以按照我们的指南[在本机上配置开发环境](environment-setup),然后把这些代码示例粘贴到你的项目中运行。(如果你是 Web 开发者,你可能已经为移动端浏览器调试配置好了本地环境!)
55+
如果你想在本地搭建开发环境,也可以按照我们的指南[在本机上配置开发环境](set-up-your-environment),然后把这些代码示例粘贴到你的项目中运行。(如果你是 Web 开发者,你可能已经为移动端浏览器调试配置好了本地环境!)
5656
:::
5757

5858
## 开发者提示

cndocs/more-resources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: 其他参考资源
77

88
## 接下来可以看什么
99

10-
- [搭建开发环境](environment-setup)
10+
- [搭建开发环境](set-up-your-environment)
1111
- [搭建开发工作流](running-on-device)
1212
- [设计和布局你的应用](flexbox)
1313
- [调试你的应用](debugging)
@@ -44,4 +44,4 @@ React Native 拥有一个由成千上万像你一样的开发者组成的社区
4444
本文档引用的是一套旧版 API,目前需要更新以反映新架构(New Architecture)。
4545
:::
4646

47-
想自己创建 Native Component 或 Module 吗?为自己的使用场景编写模块,并通过 NPM 和 GitHub 与他人分享,有助于壮大 React Native 的生态与社区!可以阅读以下指南来创建你自己的 Native Modules([Android](legacy/native-modules-android)[iOS](legacy/native-modules-ios))以及 Native Components([Android](legacy/native-components-android)[iOS](legacy/native-components-ios))。
47+
想自己创建 Native Component 或 Module 吗?为自己的使用场景编写模块,并通过 NPM 和 GitHub 与他人分享,有助于壮大 React Native 的生态与社区!可以阅读以下指南来创建你自己的 Native Modules([Android](legacy/native-modules-android)[iOS](legacy/native-modules-ios))以及 Native Components([Android](legacy/native-components-android)[iOS](legacy/native-components-ios))。

cndocs/running-on-device.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ Connection to `http://localhost:8081/debugger-proxy?role=client` timed out. Are
436436
[//]: # 'Windows, iOS'
437437

438438
:::info
439-
构建 iOS 应用需要一台 Mac。或者你可以参考我们的[环境搭建指南](environment-setup),了解如何使用 Expo CLI 构建应用,这将允许你使用 Expo 客户端应用来运行你的应用。
439+
构建 iOS 应用需要一台 Mac。或者你可以参考我们的[环境搭建指南](set-up-your-environment),了解如何使用 Expo CLI 构建应用,这将允许你使用 Expo 客户端应用来运行你的应用。
440440
:::
441441

442442
</TabItem>
@@ -445,7 +445,7 @@ Connection to `http://localhost:8081/debugger-proxy?role=client` timed out. Are
445445
[//]: # 'Linux, iOS'
446446

447447
:::info
448-
构建 iOS 应用需要一台 Mac。或者你可以参考我们的[环境搭建指南](environment-setup),了解如何使用 Expo CLI 构建应用,这将允许你使用 Expo 客户端应用来运行你的应用。
448+
构建 iOS 应用需要一台 Mac。或者你可以参考我们的[环境搭建指南](set-up-your-environment),了解如何使用 Expo CLI 构建应用,这将允许你使用 Expo 客户端应用来运行你的应用。
449449
:::
450450

451451
</TabItem>

0 commit comments

Comments
 (0)