Names starting with underscore shows errors Page doesnot exists for gh-pages branch

拥有回忆 提交于 2019-11-30 01:08:47

问题


I have an issue with gh-pages of github. The html pages which start with _ ( underscore ) shows the error.

Page does not exist! Read the Full Documentation
Instructions for setting up username.github.com and stuffs.

For eg : Lets take an example

https://github.com/harikt/docs/blob/gh-pages/api/Aura.Di/_src.html

is the source

It should render at http://harikt.github.com/docs/api/_src.html

But currently its not. It only happens for the names starting with _ ( underscore ). Let me know if anyone have the same issue or can it be resolved without renaming it ?


回答1:


As of December 27, 2009, you can completely opt-out of Jekyll processing by creating a file named .nojekyll in the root of your pages repo and pushing that to GitHub. This should only be necessary if your site uses directories that begin with an underscore, as Jekyll sees these as special dirs and does not copy them to the final destination.

https://github.com/blog/572-bypassing-jekyll-on-github-pages



来源:https://stackoverflow.com/questions/6397780/names-starting-with-underscore-shows-errors-page-doesnot-exists-for-gh-pages-bra

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