Skip to content

docs(en): merge reactjs.org/main into zh-hans.reactjs.org/main @ e69ec587 #1523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified public/images/uwu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 1 addition & 31 deletions src/components/Layout/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import {Toc} from './Toc';

import {DocsPageFooter} from 'components/DocsFooter';
import {Seo} from 'components/Seo';
import ButtonLink from 'components/ButtonLink';
import {IconNavArrow} from 'components/Icon/IconNavArrow';
import PageHeading from 'components/PageHeading';
import {getRouteMeta} from './getRouteMeta';
import {TocContext} from '../MDX/TocContext';
Expand Down Expand Up @@ -105,12 +103,10 @@ export function Page({
let hasColumns = true;
let showSidebar = true;
let showToc = true;
let showSurvey = true;
if (isHomePage || isBlogIndex) {
hasColumns = false;
showSidebar = false;
showToc = false;
showSurvey = false;
} else if (section === 'blog') {
showToc = false;
hasColumns = false;
Expand Down Expand Up @@ -178,33 +174,7 @@ export function Page({
)}>
{!isHomePage && (
<div className="w-full px-5 pt-10 mx-auto sm:px-12 md:px-12 md:pt-12 lg:pt-10">
{
<hr className="mx-auto max-w-7xl border-border dark:border-border-dark" />
}
{showSurvey && (
<>
<div className="flex flex-col items-center m-4 p-4">
<p className="mb-4 text-lg font-bold text-primary dark:text-primary-dark">
你觉得这些文档怎么样?
</p>
<div>
<ButtonLink
href="https://www.surveymonkey.co.uk/r/PYRPF3X"
className="mt-1"
type="primary"
size="md"
target="_blank">
参与我们的调查吧!
<IconNavArrow
displayDirection="end"
className="inline ms-1"
/>
</ButtonLink>
</div>
</div>
<hr className="mx-auto max-w-7xl border-border dark:border-border-dark" />
</>
)}
<hr className="mx-auto max-w-7xl border-border dark:border-border-dark" />
</div>
)}
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ description: React 18 was years in the making, and with it brought valuable less

去年,我们宣布了新版文档网站的测试版本([后来发布为 react.dev](/blog/2023/03/16/introducing-react-dev))。新的学习材料首先介绍了 Hook,并提供了新的图表、插图,以及许多交互式示例和挑战。之前我们暂时中断了这项工作,专注于 React 18 的发布;但现在 React 18 已经发布,我们正在积极努力完成和发布新的文档。

我们目前正在撰写关于 Effect 的详细部分,因为我们听说这是对新手和有经验的 React 用户来说最具挑战性的主题之一。[与 Effect 保持同步](/learn/synchronizing-with-effects) 是系列中首个发布的页面,接下来的几周还会有更多页面发布。当我们开始撰写关于 Effect 的详细部分时,我们意识到许多常见的 Effect 模式可以通过向 React 添加一个新的原语来简化。我们在 [useEvent RFC](https://github.com/reactjs/rfcs/pull/220) 中分享了一些初步想法。目前还处于早期研究阶段,我们仍在对这个想法进行迭代。我们非常感谢社区对 RFC 的意见,以及对正在进行的文档重写的 [反馈](https://github.com/reactjs/reactjs.org/issues/3308) 和贡献。我们特别要感谢 [Harish Kumar](https://github.com/harish-sethuraman) 为新网站实现提交和审查了许多改进的工作。
我们目前正在撰写关于 Effect 的详细部分,因为我们听说这是对新手和有经验的 React 用户来说最具挑战性的主题之一。[与 Effect 保持同步](/learn/synchronizing-with-effects) 是系列中首个发布的页面,接下来的几周还会有更多页面发布。当我们开始撰写关于 Effect 的详细部分时,我们意识到许多常见的 Effect 模式可以通过向 React 添加一个新的原语来简化。我们在 [useEvent RFC](https://github.com/reactjs/rfcs/pull/220) 中分享了一些初步想法。目前还处于早期研究阶段,我们仍在对这个想法进行迭代。我们非常感谢社区对 RFC 的意见,以及对正在进行的文档重写的 [反馈](https://github.com/reactjs/react.dev/issues/3308) 和贡献。我们特别要感谢 [Harish Kumar](https://github.com/harish-sethuraman) 为新网站实现提交和审查了许多改进的工作。

感谢 [Sophie Alpert](https://twitter.com/sophiebits) 对本篇博客文章的审查!
2 changes: 1 addition & 1 deletion src/content/blog/2023/03/16/introducing-react-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ button { display: block; margin-top: 10px; }

## 接下来还有什么 {/*whats-next*/}

对新文档的介绍到此结束!浏览一下新网站,看看你喜欢或不喜欢什么,欢迎在 [匿名调查](https://www.surveymonkey.co.uk/r/PYRPF3X) 或 [问题跟踪器](https://github.com/reactjs/reactjs.org/issues) 中提供反馈。
对新文档的介绍到此结束!浏览一下新网站,看看你喜欢或不喜欢什么,欢迎在 [匿名调查](https://www.surveymonkey.co.uk/r/PYRPF3X) 或 [问题跟踪器](https://github.com/reactjs/react.dev/issues) 中提供反馈。

我们承认这个项目花费了很长时间才发布。我们希望 React 社区保持应该拥有的高质量标准。在编写这些文档和创建所有示例的过程中,我们发现了一些自己解释中的错误、React 中的错误,甚至是 React 设计中的空缺,我们现在正在努力解决。我们希望新文档将帮助我们在未来将 React 本身保持在更高的标准上。

Expand Down
2 changes: 1 addition & 1 deletion src/content/community/docs-contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 文档贡献者

<Intro>

React 文档由 [React 团队](/community/team) 和 [外部贡献者](https://github.com/reactjs/reactjs.org/graphs/contributors) 编写和维护。在本页面上,我们要感谢一些为该网站做出重大贡献的人员。
React 文档由 [React 团队](/community/team) 和 [外部贡献者](https://github.com/reactjs/react.dev/graphs/contributors) 编写和维护。在本页面上,我们要感谢一些为该网站做出重大贡献的人员。

</Intro>

Expand Down
Loading