2017-02-13 22:43:58 +08:00
# Deploy
2017-03-10 05:19:07 +08:00
Similar to [GitBook ](https://www.gitbook.com ), you can deploy files to GitHub Pages or VPS.
2017-02-13 22:43:58 +08:00
## GitHub Pages
2017-03-10 05:19:07 +08:00
There're three places to populate your docs for your Github repository:
2017-02-13 22:43:58 +08:00
2017-03-10 05:19:07 +08:00
* `docs/` folder
* master branch
* gh-pages branch
2017-02-13 22:43:58 +08:00
2017-03-10 05:19:07 +08:00
It is recommended that you save your files to the `./docs` subfolder of the `master` branch of your repository. Then select `master branch /docs folder` as your Github Pages source in your repositories' settings page.
2017-02-13 22:43:58 +08:00
![github pages ](_images/deploy-github-pages.png )
!> You can also save files in the root directory and select `master branch` .
## VPS
Try following nginx config.
```nginx
server {
listen 80;
server_name your.domain.com;
location / {
alias /path/to/dir/of/docs;
index index.html;
}
}
```