Change the root directory to github pages

ⅰ亾dé卋堺 提交于 2020-05-08 04:47:07

问题


Create a project with the architecture:

| _ Source

| _ Build

  | _index.html

Added branch: git subtree push --prefix build origin gh-pages

I put this branch as a source for github pages, but can not find the page on the following link:

YourName.github.io/RepoName

finds only the following link:

YourName.github.io/RepoName/index.html

due to incorrect links are not working scripts, styles and images are not loaded.


回答1:


I just ran into this and this is how I fixed it: clone into a repository that you create named USERNAME.github.io (username is your github account name) and that should do it. Good luck!



来源:https://stackoverflow.com/questions/40438602/change-the-root-directory-to-github-pages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!