docs: move a cd step to the start of the init task (#1710)

The `cd` step seems like the first step of "Install the Docusaurus init command," instead of the last step of "Create a GitHub repository and local clone."
This commit is contained in:
Jay Martin 2019-07-26 00:25:46 -07:00 committed by Yangshun Tay
parent 5f5cdb4aa8
commit ab7e3589d0

View file

@ -72,17 +72,17 @@ git clone git@github.com:USERNAME/docusaurus-tutorial.git # SSH
git clone https://github.com/USERNAME/docusaurus-tutorial.git # HTTPS
```
7. `cd` to the directory for the local clone.
## Install the Docusaurus init command
Docusaurus comes with a command line tool to help you scaffold a Docusaurus site with some example templates. Let's install the installer!
1. `cd` to the directory of your local repository.
```sh
cd docusaurus-tutorial
```
## Install the Docusaurus init command
Docusaurus comes with a command line tool to help you scaffold a Docusaurus site with some example templates. Let's install the installer!
1. Run the following command:
2. Run the following command:
```sh
npm install --global docusaurus-init