mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-01 11:39:41 +08:00
772 B
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.
!> 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;
}
}