docsify/docs/deploy.md
2017-03-09 22:19:07 +01:00

772 B

Deploy

Similar to GitBook, you can deploy files to GitHub Pages or VPS.

GitHub Pages

There're three places to populate your docs for your Github repository:

  • docs/ folder
  • master branch
  • gh-pages branch

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.

github pages

!> You can also save files in the root directory and select master branch.

VPS

Try following nginx config.

server {
  listen 80;
  server_name  your.domain.com;

  location / {
    alias /path/to/dir/of/docs;
    index index.html;
  }
}