Skip to content

Commit 952b9ff

Browse files
committed
Move files to root
1 parent d8b5057 commit 952b9ff

File tree

538 files changed

+9263
-9301
lines changed

Some content is hidden

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

538 files changed

+9263
-9301
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Thanks for opening a PR!
66

77
The docs cover several versions of `react-navigation`, and in some cases there are several files (for version 1, version 2 and etc.) that all describe a single page of the docs (eg. "Getting Started").
88

9-
Please make sure that the edit you're making in `docs/file-you-edited.md` is also included in the file for the correct version, eg. `website/versioned_docs/version-3.x/file-you-edited.md` for version 3. If such file doesn't exist, please create it. :+1:
9+
Please make sure that the edit you're making in `docs/file-you-edited.md` is also included in the file for the correct version, eg. `/versioned_docs/version-3.x/file-you-edited.md` for version 3. If such file doesn't exist, please create it. :+1:

.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ jobs:
3636
3737
- name: Install dependencies
3838
run: |
39-
yarn --cwd website --frozen-lockfile
39+
yarn --frozen-lockfile
4040
4141
- name: Sync with crowdin
4242
env:
4343
CROWDIN_DOCUSAURUS_PROJECT_ID: react-navigation
4444
CROWDIN_DOCUSAURUS_API_KEY: ${{ secrets.CROWDIN_DOCUSAURUS_API_KEY }}
4545
run: |
46-
yarn --cwd website crowdin-upload
47-
yarn --cwd website crowdin-download
46+
yarn crowdin-upload
47+
yarn crowdin-download
4848
4949
- name: Publish to Github pages
5050
env:
@@ -57,4 +57,4 @@ jobs:
5757
git config --global user.email "$GITHUB_EMAIL"
5858
git config --global user.name "$GITHUB_ACTOR"
5959
echo "machine github.com login $GIT_USER password $GITHUB_TOKEN" > ~/.netrc
60-
yarn --cwd website publish-gh-pages
60+
yarn deploy

.gitignore

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
node_modules
22
.DS_Store
33
.docusaurus
4-
website/translated_docs
5-
website/build/
6-
website/node_modules
7-
website/.docusaurus
84

9-
website/i18n/*
10-
!website/i18n/en.json
5+
build/
6+
translated_docs/
7+
8+
i18n/*
9+
!i18n/en.json

README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,30 @@ Want to help improve the documentation? That would be so very much appreciated.
1313
### Run it locally
1414

1515
1. Clone the repository
16-
2. `cd` into the `website` directory.
17-
3. Run `yarn` (or `npm install`)
18-
4. `yarn start`
16+
2. Run `yarn` (or `npm install`)
17+
3. `yarn start`
1918

2019
### Make changes
2120

2221
* The `docs` directory contains the markdown files used to generate the website. Change them and refresh the page when running the documentation locally and you will see the changes reflected.
23-
* If you want to add a new page, you need to add it to [sidebars.json](https://github.com/react-navigation/react-navigation.github.io/blob/source/website/sidebars.json) and then restart the server.
22+
* If you want to add a new page, you need to add it to [sidebars.json](https://github.com/react-navigation/react-navigation.github.io/blob/source/sidebars.json) and then restart the server.
2423

2524
## Things you need to be a collaborator to do
2625

2726
### Download the latest translations
2827

2928
- Configure `CROWDIN_DOCUSAURUS_PROJECT_ID` and `CROWDIN_DOCUSAURUS_API_KEY` environment variables (ask @brentvatne if you need access).
30-
- `cd website` and run `yarn crowdin-upload` and then `yarn crowdin-download`
29+
- Run `yarn crowdin-upload` and then `yarn crowdin-download`
3130

3231
### Deploy it
3332

3433
*Before deploying, be sure to download the latest translations!*
3534

36-
Only collaborators on this repository can deploy. `cd` into the website directory and run the following command from the `source` branch:
35+
Only collaborators on this repository can deploy. Run the following command from the `source` branch:
3736

3837
```bash
39-
GIT_USER=your_github_username \
40-
STABLE_RELEASE=true \
38+
GIT_USER=<Your GitHub username> \
4139
CURRENT_BRANCH=source \
4240
USE_SSH=true \
43-
yarn run publish-gh-pages
41+
yarn deploy
4442
```
File renamed without changes.

crowdin.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ preserve_hierarchy: true
66
files:
77
-
88
source: '/docs/*.md'
9-
translation: '/website/translated_docs/%locale%/%original_file_name%'
9+
translation: '/translated_docs/%locale%/%original_file_name%'
1010
languages_mapping: &anchor
1111
locale:
1212
'zh-CN': 'zh-Hans'
1313
-
14-
source: '/website/i18n/en.json'
15-
translation: '/website/i18n/%locale%.json'
14+
source: '/i18n/en.json'
15+
translation: '/i18n/%locale%.json'
1616
languages_mapping: *anchor
1717
-
18-
source: '/website/versioned_docs/**/*.md'
19-
translation: '/website/translated_docs/%locale%/**/%original_file_name%'
20-
languages_mapping: *anchor
18+
source: '/versioned_docs/**/*.md'
19+
translation: '/translated_docs/%locale%/**/%original_file_name%'
20+
languages_mapping: *anchor

0 commit comments

Comments
 (0)