|
1 | 1 | # ru.reactjs.org
|
2 | 2 |
|
3 |
| -This repo contains the source code and documentation powering [ru.reactjs.org](https://ru.reactjs.org/). |
| 3 | +Этот репозиторий содержит исходный код и содержимое сайта [ru.reactjs.org](https://ru.reactjs.org/). |
4 | 4 |
|
5 |
| -## Getting started |
| 5 | +## Начало |
6 | 6 |
|
7 |
| -### Prerequisites |
| 7 | +### Предварительные требования |
8 | 8 |
|
9 | 9 | 1. Git
|
10 |
| -1. Node: any 8.x version starting with 8.4.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 [ru.reactjs.org repo](https://github.com/reactjs/ru.reactjs.org) on your local machine |
| 10 | +1. Node: любая версия 8.x, начиная с 8.4.0 или выше |
| 11 | +1. Yarn: Смотрите [сайт Yarn с инструкциями по установке](https://yarnpkg.com/lang/en/docs/install/) |
| 12 | +1. Сделать форк этого репозитория (для предложения изменений) |
| 13 | +1. Копия [репозитория ru.reactjs.org](https://github.com/reactjs/ru.reactjs.org) на вашем компьютере |
14 | 14 |
|
15 |
| -### Installation |
| 15 | +### Установка |
16 | 16 |
|
17 |
| -1. `cd ru.reactjs.org` to go into the project root |
18 |
| -1. `yarn` to install the website's npm dependencies |
| 17 | +1. `cd ru.reactjs.org` для перехода в директорию проекта |
| 18 | +1. `yarn` для установки npm-зависимостей проекта |
19 | 19 |
|
20 |
| -### Running locally |
| 20 | +### Запуск проекта локально |
21 | 21 |
|
22 |
| -1. `yarn dev` to start the hot-reloading development server (powered by [Gatsby](https://www.gatsbyjs.org)) |
23 |
| -1. `open http://localhost:8000` to open the site in your favorite browser |
| 22 | +1. `yarn dev` для старта сервера в режиме разработки с поддержкой перезагрузки на лету (на основе [Gatsby](https://www.gatsbyjs.org)) |
| 23 | +1. `open http://localhost:8000` откроет сайт в вашем браузере по умолчанию |
24 | 24 |
|
25 |
| -## Contributing |
| 25 | +## Помощь проекту |
26 | 26 |
|
27 |
| -### Guidelines |
| 27 | +### Рекомендации |
28 | 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/ru.reactjs.org/blob/master/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections. |
| 29 | +Документация разделена на несколько частей, с разными характером и целями. Если вы планируете написать больше, чем несколько фраз, вам может быть полезно ознакомиться с [рекомендациями для участия](https://github.com/reactjs/ru.reactjs.org/blob/master/CONTRIBUTING.md#guidelines-for-text) и его конкретными разделами. |
30 | 30 |
|
31 |
| -### Create a branch |
| 31 | +### Создание ветки |
32 | 32 |
|
33 |
| -1. `git checkout master` from any folder in your local `ru.reactjs.org` repository |
34 |
| -1. `git pull origin master` 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 |
| 33 | +1. `git checkout master` из любой папки в вашей локальной копии репозитория `ru.reactjs.org` |
| 34 | +1. `git pull origin master`, чтобы убедиться, что у вас самая последняя версия кода |
| 35 | +1. `git checkout -b the-name-of-my-branch` (замените `the-name-of-my-branch` на подходящее имя) для создания ветки |
36 | 36 |
|
37 |
| -### Make the change |
| 37 | +### Внесение изменений |
38 | 38 |
|
39 |
| -1. Follow the "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 |
| 39 | +1. Следуйте инструкциям из раздела «Запуск проекта локально» |
| 40 | +1. Сохраните файлы и проверьте в вашем браузере |
| 41 | + 1. Изменения в React-компонентах внутри `src` применяются на лету |
| 42 | + 1. Изменения в markdown-файлах внутри `content` применяются на лету |
| 43 | + 1. При работе с плагинами может понадобится удаление папки `.cache` и перезапуск сервера |
44 | 44 |
|
45 |
| -### Test the change |
| 45 | +### Проверка изменений |
46 | 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.) |
| 47 | +1. По возможности проверьте визуальные изменения во всех последних версиях распространённых браузеров: и настольных, и мобильных. |
| 48 | +1. Запустите `yarn check-all` из корня проекта. (Это запустит Prettier, ESLint и Flow.) |
49 | 49 |
|
50 |
| -### Push it |
| 50 | +### Отправка изменений |
51 | 51 |
|
52 |
| -1. `git add -A && git commit -m "My message"` (replacing `My message` with a commit message, such as `Fixed header logo on Android`) to stage and commit your changes |
| 52 | +1. `git add -A && git commit -m "Мой текст"` (замените `Мой текст` на подходящее сообщение, например `Fix header logo on Android`) для сохранения ваших изменений |
53 | 53 | 1. `git push my-fork-name the-name-of-my-branch`
|
54 |
| -1. Go to the [ru.reactjs.org repo](https://github.com/reactjs/ru.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 build will also be automatically created once you make your PR so other people can see your change. |
| 54 | +1. Перейдите на [страницу репозитория ru.reactjs.org](https://github.com/reactjs/ru.reactjs.org) — вы должны увидеть вашу веткy. |
| 55 | +1. Следуйте инструкциям на GitHub. |
| 56 | +1. По возможности добавьте скриншот с наглядными изменениями. Как только вы сделаете PR, автоматически будет создан Netlify-билд, так что люди смогут посмотреть ваши изменения. |
57 | 57 |
|
58 |
| -## Translation |
| 58 | +## Перевод |
59 | 59 |
|
60 |
| -If you are interested in translating `ru.reactjs.org`, please see the current translation efforts at [isreacttranslatedyet.com](https://www.isreacttranslatedyet.com/). |
| 60 | +Если вы заинтересованы в переводе `reactjs.org`, ознакомьтесь с текущим прогрессом перевода на [isreacttranslatedyet.com](https://www.isreacttranslatedyet.com/). |
61 | 61 |
|
62 |
| -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#reactjsorg-translation). |
| 62 | +## Решение проблем |
63 | 63 |
|
64 |
| -## Troubleshooting |
| 64 | +- `yarn reset` для очистки локального кеша |
65 | 65 |
|
66 |
| -- `yarn reset` to clear the local cache |
| 66 | +## Лицензия |
67 | 67 |
|
68 |
| -## License |
69 |
| -Content submitted to [ru.reactjs.org](https://ru.reactjs.org/) is CC-BY-4.0 licensed, as found in the [LICENSE-DOCS.md](https://github.com/open-source-explorer/reactjs.org/blob/master/LICENSE-DOCS.md) file. |
| 68 | +Контент на [ru.reactjs.org](https://ru.reactjs.org/) распространяется по лицензии CC-BY-4.0, как указано в файле [LICENSE-DOCS.md](https://github.com/open-source-explorer/reactjs.org/blob/master/LICENSE-DOCS.md). |
0 commit comments