From 37eb77407d1375a2ca76a39b5647cafa8c891b09 Mon Sep 17 00:00:00 2001 From: zqran Date: Fri, 9 Sep 2022 11:16:01 +0800 Subject: [PATCH] [Beta] Wrap the period after the link inside the link (#5004) * [Beta] Wrap the period after the link inside the link * [Beta] Update community Doc * [Beta] Resolve confilicts --- .../src/content/community/acknowledgements.md | 4 ++-- beta/src/content/community/index.md | 2 +- beta/src/content/community/meet-the-team.md | 2 +- beta/src/content/index.md | 4 ++-- .../content/learn/add-react-to-a-website.md | 14 ++++++------ .../content/learn/conditional-rendering.md | 2 +- .../extracting-state-logic-into-a-reducer.md | 2 +- beta/src/content/learn/index.md | 6 ++--- beta/src/content/learn/installation.md | 4 ++-- .../content/learn/keeping-components-pure.md | 6 ++--- .../learn/lifecycle-of-reactive-effects.md | 6 ++--- .../learn/manipulating-the-dom-with-refs.md | 4 ++-- .../learn/passing-data-deeply-with-context.md | 4 ++-- .../learn/passing-props-to-a-component.md | 4 ++-- .../learn/preserving-and-resetting-state.md | 2 +- .../queueing-a-series-of-state-updates.md | 2 +- .../learn/reacting-to-input-with-state.md | 6 ++--- .../learn/referencing-values-with-refs.md | 6 ++--- .../learn/removing-effect-dependencies.md | 2 +- beta/src/content/learn/render-and-commit.md | 2 +- beta/src/content/learn/rendering-lists.md | 2 +- .../src/content/learn/responding-to-events.md | 2 +- .../learn/reusing-logic-with-custom-hooks.md | 2 +- .../scaling-up-with-reducer-and-context.md | 4 ++-- .../learn/separating-events-from-effects.md | 2 +- .../learn/sharing-state-between-components.md | 4 ++-- .../learn/start-a-new-react-project.md | 22 +++++++++---------- .../learn/state-a-components-memory.md | 6 ++--- .../learn/synchronizing-with-effects.md | 6 ++--- beta/src/content/learn/thinking-in-react.md | 4 ++-- .../content/learn/updating-arrays-in-state.md | 2 +- .../learn/updating-objects-in-state.md | 8 +++---- .../content/learn/writing-markup-with-jsx.md | 2 +- .../learn/you-might-not-need-an-effect.md | 8 +++---- .../src/content/learn/your-first-component.md | 8 +++---- 35 files changed, 83 insertions(+), 83 deletions(-) diff --git a/beta/src/content/community/acknowledgements.md b/beta/src/content/community/acknowledgements.md index 2c83334c..440bce23 100644 --- a/beta/src/content/community/acknowledgements.md +++ b/beta/src/content/community/acknowledgements.md @@ -4,7 +4,7 @@ title: Acknowledgements ## React {/*react*/} -React was originally created by [Jordan Walke](https://github.com/jordwalke). Today, React has a [dedicated full-time team working on it](/community/meet-the-team), as well as over a thousand [open source contributors](https://github.com/facebook/react/blob/main/AUTHORS). We'd like to recognize a few people who have made significant contributions to React and its documentation in the past and have helped maintain them over the years: +React was originally created by [Jordan Walke.](https://github.com/jordwalke) Today, React has a [dedicated full-time team working on it](/community/meet-the-team), as well as over a thousand [open source contributors.](https://github.com/facebook/react/blob/main/AUTHORS) We'd like to recognize a few people who have made significant contributions to React and its documentation in the past and have helped maintain them over the years: * [Almero Steyn](https://github.com/AlmeroSteyn) * [Andreas Svensson](https://github.com/syranide) @@ -44,7 +44,7 @@ React was originally created by [Jordan Walke](https://github.com/jordwalke). To This list is not exhaustive. -We'd like to give special thanks to [Tom Occhino](https://github.com/tomocchino) and [Adam Wolff](https://github.com/wolffiex) for their guidance and support over the years. We are also thankful to all the volunteers who [translated React into other languages](https://translations.reactjs.org/). +We'd like to give special thanks to [Tom Occhino](https://github.com/tomocchino) and [Adam Wolff](https://github.com/wolffiex) for their guidance and support over the years. We are also thankful to all the volunteers who [translated React into other languages.](https://translations.reactjs.org/) ## React Docs {/*react-docs*/} diff --git a/beta/src/content/community/index.md b/beta/src/content/community/index.md index d9e992d2..3f4f9509 100644 --- a/beta/src/content/community/index.md +++ b/beta/src/content/community/index.md @@ -10,7 +10,7 @@ React has a community of millions of developers. On this page we've listed some ## Code of Conduct {/*code-of-conduct*/} -Before participating in React's communities, [please read our Code of Conduct](https://github.com/facebook/react/blob/main/CODE_OF_CONDUCT.md). We have adopted the [Contributor Covenant](https://www.contributor-covenant.org/) and we expect that all community members adhere to the guidelines within. +Before participating in React's communities, [please read our Code of Conduct.](https://github.com/facebook/react/blob/main/CODE_OF_CONDUCT.md) We have adopted the [Contributor Covenant](https://www.contributor-covenant.org/) and we expect that all community members adhere to the guidelines within. ## Stack Overflow {/*stack-overflow*/} diff --git a/beta/src/content/community/meet-the-team.md b/beta/src/content/community/meet-the-team.md index cd2dc356..dd6d369a 100644 --- a/beta/src/content/community/meet-the-team.md +++ b/beta/src/content/community/meet-the-team.md @@ -27,7 +27,7 @@ Andrew got started with web development by making sites with WordPress, and even [@bvaughn on GitHub](https://github.com/bvaughn) · [@brian\_d\_vaughn on Twitter](https://twitter.com/brian_d_vaughn) -Brian studied art in college and did programming on the side to pay for his education. Eventually, he realized that he enjoys working on open source. Brian has one [one-person band](https://soundcloud.com/brianvaughn/) and two [two-person](https://soundcloud.com/pilotlessdrone) [bands](https://soundcloud.com/pinwurm). He also takes care of the cutest cat in the world. +Brian studied art in college and did programming on the side to pay for his education. Eventually, he realized that he enjoys working on open source. Brian has one [one-person band](https://soundcloud.com/brianvaughn/) and two [two-person](https://soundcloud.com/pilotlessdrone) [bands.](https://soundcloud.com/pinwurm) He also takes care of the cutest cat in the world. ### Dan Abramov {/*dan-abramov*/} diff --git a/beta/src/content/index.md b/beta/src/content/index.md index bc72d3bf..f042526a 100644 --- a/beta/src/content/index.md +++ b/beta/src/content/index.md @@ -25,7 +25,7 @@ This is a **beta website.** There will be bugs, performance issues, and missing * [Learn React](/learn): ~95% finished. * [API Reference](/apis): ~30% finished. -You can track our progress [on GitHub](https://github.com/reactjs/reactjs.org/issues/3308). +You can track our progress [on GitHub.](https://github.com/reactjs/reactjs.org/issues/3308) ## How can I provide feedback? {/*how-can-i-provide-feedback*/} @@ -33,4 +33,4 @@ Please use [this GitHub issue](https://github.com/reactjs/reactjs.org/issues/330 ## Will this site replace the main site? {/*will-this-site-replace-the-main-site*/} -We aim to switch this site to be the main one once we reach content parity with the [existing React documentation](https://reactjs.org/). The old React website will be archived at a subdomain so you'll still be able to access it. Old content links will redirect to the archived subdomain, which will have a notice about outdated content. +We aim to switch this site to be the main one once we reach content parity with the [existing React documentation.](https://reactjs.org/) The old React website will be archived at a subdomain so you'll still be able to access it. Old content links will redirect to the archived subdomain, which will have a notice about outdated content. diff --git a/beta/src/content/learn/add-react-to-a-website.md b/beta/src/content/learn/add-react-to-a-website.md index 3a5aca59..756103c3 100644 --- a/beta/src/content/learn/add-react-to-a-website.md +++ b/beta/src/content/learn/add-react-to-a-website.md @@ -20,7 +20,7 @@ You don't have to build your whole website with React. Adding React to HTML does React has been designed from the start for gradual adoption. Most websites aren't (and don't need to be) fully built with React. This guide shows how to add some “sprinkles of interactivity” to an existing HTML page. -Try this out with your own website or [an empty HTML file](https://gist.github.com/gaearon/edf814aeee85062bc9b9830aeaf27b88/archive/3b31c3cdcea7dfcfd38a81905a0052dd8e5f71ec.zip). All you need is an internet connection and a text editor like Notepad or VSCode. (Here's [how to configure your editor](/learn/editor-setup/) for syntax highlighting!) +Try this out with your own website or [an empty HTML file.](https://gist.github.com/gaearon/edf814aeee85062bc9b9830aeaf27b88/archive/3b31c3cdcea7dfcfd38a81905a0052dd8e5f71ec.zip) All you need is an internet connection and a text editor like Notepad or VSCode. (Here's [how to configure your editor](/learn/editor-setup/) for syntax highlighting!) ### Step 1: Add a root HTML tag {/*step-1-add-a-root-html-tag*/} @@ -43,7 +43,7 @@ You may have as many root HTML tags as you need on one page. In the HTML page, right before the closing `` tag, add three `