This project is the document website of Farrow.
Thanks for that you are interested in contributing to Farrow Doc website.
To develop locally:
-
Fork this repository to your own GitHub account and then clone it to your local.
-
Create a new branch:
$ git checkout -b MY_BRANCH_NAME
-
Install yarn:
$ npm install -g yarn
-
Install the dependencies with:
$ yarn
-
Go into
docs
which you want to contribute.$ cd ./docs/*
-
Start developing.
$ yarn start
Now we only just support en
(default) and zh-cn
. So if you want to do translation to zh-ch
, you can
$ yarn run start -- --locale zh-cn
and edit the translation document in i18n/zh-cn
.
You can build website with
$ yarn build
We used the deployment which the support to the Github Page. Run
$ GIT_USER=<Your GitHub username> yarn deploy
and then the build output of this project will be committed to branch release
. And Page will deploy to https://farrowjs.com.