Skip to content

Commit ce58918

Browse files
authored
Merge pull request #342 from reactjs/legacy-merge
Create legacy docs branch
2 parents 5c2c44a + ccc8a88 commit ce58918

File tree

296 files changed

+10347
-8314
lines changed

Some content is hidden

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

296 files changed

+10347
-8314
lines changed

.circleci/config.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
node_modules/*
22

3+
# Skip beta
4+
beta/*
5+
36
# Ignore markdown files and examples
47
content/*
58

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[ignore]
22

3+
<PROJECT_ROOT>/beta/.*
34
<PROJECT_ROOT>/content/.*
45
<PROJECT_ROOT>/node_modules/.*
56
<PROJECT_ROOT>/public/.*

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Thank you for the PR! Contributors like you keep React awesome!
44
55
Please see the Contribution Guide for guidelines:
66
7-
https://github.com/reactjs/reactjs.org/blob/main/CONTRIBUTING.md
7+
https://github.com/reactjs/legacy.reactjs.org/blob/main/CONTRIBUTING.md
88
99
If your PR references an existing issue, please add the issue number below
1010

.github/workflows/nodejs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint / Flow check
2+
3+
on:
4+
push:
5+
branches:
6+
- main # change this if your default branch is named differently
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
14+
name: Lint on node 12.x and ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Use Node.js 12.x
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 12.x
22+
23+
- name: Install deps and build (with cache)
24+
uses: bahmutov/npm-install@v1.7.10
25+
26+
- name: Lint codebase
27+
run: yarn ci-check

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
.idea
44
.history
55
node_modules
6-
public
6+
/public
77
yarn-error.log

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.16.1
1+
12.22.0

README.md

Lines changed: 9 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,20 @@
1-
# vi.reactjs.org
1+
# vi.legacy.reactjs.org
22

3-
This repo contains the source code and documentation powering [vi.reactjs.org](https://reactjs.org/).
3+
This repo contains the source code and documentation powering [vi.legacy.reactjs.org](https://vi.legacy.reactjs.org/).
44

5-
## Getting started
5+
## Not actively maintained
66

7-
### Prerequisites
7+
This site is archived and not maintained. For new React docs, go to [vi.react.dev](https://vi.react.dev) ([repository](https://github.com/reactjs/vi.react.dev)).
88

9-
1. Git
10-
1. Node: any 12.x version starting with v12.0.0 or greater
11-
1. Yarn: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)
12-
1. A fork of the repo (for any contributions)
13-
1. A clone of the [vi.reactjs.org repo](https://github.com/reactjs/vi.reactjs.org) on your local machine
9+
## Installation
1410

15-
### Installation
16-
17-
1. `cd vi.reactjs.org` to go into the project root
11+
1. `cd legacy.reactjs.org` to go into the project root
1812
1. `yarn` to install the website's npm dependencies
1913

20-
### Running locally
14+
## Running locally
2115

22-
1. `yarn dev` to start the hot-reloading development server (powered by [Gatsby](https://www.gatsbyjs.org))
16+
1. `yarn dev` to start the development server (powered by [Gatsby](https://www.gatsbyjs.org))
2317
1. `open http://localhost:8000` to open the site in your favorite browser
2418

25-
## Contributing
26-
27-
### Guidelines
28-
29-
The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the [contributing guidelines](https://github.com/reactjs/reactjs.org/blob/main/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections.
30-
31-
### Create a branch
32-
33-
1. `git checkout main` from any folder in your local `vi.reactjs.org` repository
34-
1. `git pull origin main` to ensure you have the latest main code
35-
1. `git checkout -b the-name-of-my-branch` (replacing `the-name-of-my-branch` with a suitable name) to create a branch
36-
37-
### Make the change
38-
39-
1. Follow the ["Running locally"](#running-locally) instructions
40-
1. Save the files and check in the browser
41-
1. Changes to React components in `src` will hot-reload
42-
1. Changes to markdown files in `content` will hot-reload
43-
1. If working with plugins, you may need to remove the `.cache` directory and restart the server
44-
45-
### Test the change
46-
47-
1. If possible, test any visual changes in all latest versions of common browsers, on both desktop and mobile.
48-
1. Run `yarn check-all` from the project root. (This will run Prettier, ESLint, and Flow.)
49-
50-
### Push it
51-
52-
1. `git add -A && git commit -m "My message"` (replacing `My message` with a commit message, such as `Fix header logo on Android`) to stage and commit your changes
53-
1. `git push my-fork-name the-name-of-my-branch`
54-
1. Go to the [vi.reactjs.org repo](https://github.com/reactjs/vi.reactjs.org) and you should see recently pushed branches.
55-
1. Follow GitHub's instructions.
56-
1. If possible, include screenshots of visual changes. A [Netlify](https://www.netlify.com/) build will also be automatically created once you make your PR so other people can see your change.
57-
58-
## Translation
59-
60-
If you are interested in translating `reactjs.org`, please see the current translation efforts at [translations.reactjs.org](https://translations.reactjs.org/).
61-
62-
63-
If your language does not have a translation and you would like to create one, please follow the instructions at [reactjs.org Translations](https://github.com/reactjs/reactjs.org-translation#translating-reactjsorg).
64-
65-
## Troubleshooting
66-
67-
- `yarn reset` to clear the local cache
68-
6919
## License
70-
Content submitted to [reactjs.org](https://reactjs.org/) is CC-BY-4.0 licensed, as found in the [LICENSE-DOCS.md](https://github.com/open-source-explorer/reactjs.org/blob/main/LICENSE-DOCS.md) file.
20+
Content at [vi.legacy.reactjs.org](https://vi.legacy.reactjs.org/) is CC-BY-4.0 licensed, as found in the [LICENSE-DOCS.md](LICENSE-DOCS.md) file.

content/authors.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ flarnie:
3131
gaearon:
3232
name: Dan Abramov
3333
url: https://twitter.com/dan_abramov
34+
gsathya:
35+
name: Sathya Gunasekaran
36+
url: https://twitter.com/_gsathya
37+
huxpro:
38+
name: Xuan Huang
39+
url: https://twitter.com/Huxpro
3440
jaredly:
3541
name: Jared Forsyth
3642
url: https://twitter.com/jaredforsyth
@@ -46,6 +52,15 @@ jingc:
4652
josephsavona:
4753
name: Joseph Savona
4854
url: https://twitter.com/en_JS
55+
joshcstory:
56+
name: Josh Story
57+
url: https://twitter.com/joshcstory
58+
jtannady:
59+
name: Jesslyn Tannady
60+
url: https://twitter.com/jtannady
61+
kassens:
62+
name: Jan Kassens
63+
url: https://twitter.com/kassens
4964
keyanzhang:
5065
name: Keyan Zhang
5166
url: https://twitter.com/keyanzhang
@@ -54,13 +69,16 @@ kmeht:
5469
url: https://github.com/kmeht
5570
laurentan:
5671
name: Lauren Tan
57-
url: https://twitter.com/sugarpirate_
72+
url: https://twitter.com/potetotes
5873
LoukaN:
5974
name: Lou Husson
6075
url: https://twitter.com/loukan42
6176
lunaruan:
6277
name: Luna Ruan
6378
url: https://twitter.com/lunaruan
79+
mengdichen:
80+
name: Mengdi Chen
81+
url: https://twitter.com/mengdi_en
6482
matthewjohnston4:
6583
name: Matthew Johnston
6684
url: https://github.com/matthewathome
@@ -73,9 +91,15 @@ petehunt:
7391
rachelnabors:
7492
name: Rachel Nabors
7593
url: https://twitter.com/rachelnabors
94+
reactteam:
95+
name: The React Team
96+
url: https://reactjs.org/community/team.html
7697
rickhanlonii:
7798
name: Rick Hanlon
7899
url: https://twitter.com/rickhanlonii
100+
robertzhang:
101+
name: Robert Zhang
102+
url: https://twitter.com/jiaxuanzhang01
79103
schrockn:
80104
name: Nick Schrock
81105
url: https://twitter.com/schrockn

content/blog/2013-06-02-jsfiddle-integration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: Tích hợp JSFiddle
33
author: [vjeux]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
[JSFiddle](https://jsfiddle.net) vừa mới thông báo hỗ trợ cho React. Đây là một tin thú vị vì nó giúp cho việc cộng tác với các đoạn code trở nên dễ dàng hơn rất nhiều. Bạn có thể làm việc với **[nền tảng React JSFiddle](http://jsfiddle.net/vjeux/kb3gN/)**, sửa đổi và chia sẻ nó! Một [fiddle không cần JSX](http://jsfiddle.net/vjeux/VkebS/) cũng đã có.
713

814

content/blog/2013-06-05-why-react.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: Tại sao chúng tôi xây dựng React?
33
author: [petehunt]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
Có rất nhiều thư viện JavaScript MVC. Tại sao chúng tôi xây dựng React và tại sao bạn muốn sử dụng nó?
713

814
## React không phải là một MVC framework. {#react-isnt-an-mvc-framework}

content/blog/2013-06-12-community-roundup.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "Community Round-up #1"
33
author: [vjeux]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
React was open sourced two weeks ago and it's time for a little round-up of what has been going on.
713

814
## Khan Academy Question Editor {#khan-academy-question-editor}

content/blog/2013-06-19-community-roundup-2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "Community Round-up #2"
33
author: [vjeux]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
Since the launch we have received a lot of feedback and are actively working on React 0.4. In the meantime, here are the highlights of this week.
713

814
## Some quick thoughts on React {#some-quick-thoughts-on-react}

content/blog/2013-06-21-react-v0-3-3.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "React v0.3.3"
33
author: [zpao]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
Chúng tôi có rất nhiều thứ tuyệt vời sắp ra mắt trong phiên bản v0.4, nhưng trong thời gian chờ đợi, chúng tôi sẽ phát
713
hành phiên bản v0.3.3. Bản phát hành này giải quyết một số vấn đề nhỏ mà mọi người đang gặp phải và đơn giản hóa các
814
công cụ của chúng tôi để giúp chúng dễ sử dụng hơn.

content/blog/2013-06-27-community-roundup-3.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "Community Round-up #3"
33
author: [vjeux]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
The highlight of this week is that an interaction-heavy app has been ported to React. React components are solving issues they had with nested views.
713

814
## Moving From Backbone To React {#moving-from-backbone-to-react}

content/blog/2013-07-02-react-v0-4-autobind-by-default.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "New in React v0.4: Autobind by Default"
33
author: [zpao]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
React v0.4 is very close to completion. As we finish it off, we'd like to share with you some of the major changes we've made since v0.3. This is the first of several posts we'll be making over the next week.
713

814

content/blog/2013-07-03-community-roundup-4.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "Community Round-up #4"
33
author: [vjeux]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
React reconciliation process appears to be very well suited to implement a text editor with a live preview as people at Khan Academy show us.
713

814
## Khan Academy {#khan-academy}

content/blog/2013-07-11-react-v0-4-prop-validation-and-default-values.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "New in React v0.4: Prop Validation and Default Values"
33
author: [zpao]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
Many of the questions we got following the public launch of React revolved around `props`, specifically that people wanted to do validation and to make sure their components had sensible defaults.
713

814

content/blog/2013-07-17-react-v0-4-0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "React v0.4.0"
33
author: [zpao]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
Over the past 2 months we've been taking feedback and working hard to make React even better. We fixed some bugs, made some under-the-hood improvements, and added several features that we think will improve the experience developing with React. Today we're proud to announce the availability of React v0.4!
713

814

content/blog/2013-07-23-community-roundup-5.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "Community Round-up #5"
33
author: [vjeux]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
We launched the [React Facebook Page](https://www.facebook.com/react) along with the React v0.4 launch. 700 people already liked it to get updated on the project :)
713

814
## Cross-browser onChange {#cross-browser-onchange}

content/blog/2013-07-26-react-v0-4-1.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "React v0.4.1"
33
author: [zpao]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
React v0.4.1 là một thay đổi nhỏ, hầu hết bao gồm các bản sửa lỗi về tính đúng đắn. Một số đoạn mã đã được cấu trúc lại bên trong nhưng những thay đổi đó không ảnh hưởng đến bất kỳ API công khai nào của chúng tôi.
713

814

content/blog/2013-07-30-use-react-and-jsx-in-ruby-on-rails.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "Use React and JSX in Ruby on Rails"
33
author: [zpao]
44
---
55

6+
<div class="scary">
7+
8+
> This blog site has been archived. Go to [react.dev/blog](https://react.dev/blog) to see the recent posts.
9+
10+
</div>
11+
612
Today we're releasing a gem to make it easier to use React and JSX in Ruby on Rails applications: [react-rails](https://github.com/facebook/react-rails).
713

814

0 commit comments

Comments
 (0)