以下划线开头的名称显示错误页面不存在 gh-pages 分支 [英] Names starting with underscore shows errors Page doesnot exists for gh-pages branch
问题描述
我对 github 的 gh-pages 有问题.以 _(下划线)开头的 html 页面显示错误.
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.
例如:让我们举个例子
https://github.com/harikt/docs/blob/gh-pages/api/Aura.Di/_src.html
是来源
它应该呈现在 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 ?
推荐答案
自 2009 年 12 月 27 日起,您可以通过在页面存储库的根目录中创建一个名为 .nojekyll 的文件并将其推送到 GitHub 来完全退出 Jekyll 处理.仅当您的站点使用以下划线开头的目录时才需要这样做,因为 Jekyll 将这些目录视为特殊目录并且不会将它们复制到最终目的地.
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
这篇关于以下划线开头的名称显示错误页面不存在 gh-pages 分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!