mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-11-30 02:58:37 +08:00
docs: Update GitHub default branch from to 'main' (#1883)
This commit is contained in:
parent
9b74744299
commit
c98fda7ad6
@ -7,14 +7,14 @@ Similar to [GitBook](https://www.gitbook.com), you can deploy files to GitHub Pa
|
||||
There are three places to populate your docs for your GitHub repository:
|
||||
|
||||
- `docs/` folder
|
||||
- master branch
|
||||
- main 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 repository's settings page.
|
||||
It is recommended that you save your files to the `./docs` subfolder of the `main` branch of your repository. Then select `main branch /docs folder` as your GitHub Pages source in your repository's settings page.
|
||||
|
||||
![GitHub Pages](_images/deploy-github-pages.png)
|
||||
|
||||
!> You can also save files in the root directory and select `master branch`.
|
||||
!> You can also save files in the root directory and select `main branch`.
|
||||
You'll need to place a `.nojekyll` file in the deploy location (such as `/docs` or the gh-pages branch)
|
||||
|
||||
## GitLab Pages
|
||||
|
Loading…
Reference in New Issue
Block a user