hexojs / site

The website for Hexo. https://hexo.io/

Home Page:https://hexo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User pages must be built from the master branch.

zetaraku opened this issue · comments

The tutorial on https://hexo.io/docs/github-pages is assuming using username.github.io (an User page repo) as the target repo.

And on step 10:

In your GitHub repo’s setting, navigate to “GitHub Pages” section and change Source to gh-pages branch.

But the "GitHub Pages" section of the username.github.io repo says:

User pages must be built from the master branch.

Changing the source to branches other than master was impossible.

I agree with you. I also couldn't change the Source to gh-pages branch". Users could only change (default) branch which is meaningless as GitHub told us the "user pages must be built from the master branch".
Capture

I would suggest the developers to make up a new doc.

commented

@zetaraku @ivth04

hexo-deployer-git use gh-pages by default if you have configured a repo with github.com and no custom branch is configured.

zh-CN:
这里给出了一份详尽的解释
en-US:
thiregive a explain