Github页面构建失败 [英] Github page build failure
问题描述
我正在github页面上创建我的网站,我没有使用jekyll或任何形式的jekyll,它只是纯javascript和html css.为什么有时会导致页面构建失败?那是什么呢?
默认情况下,在github存储库中, gh-pages 分支是使用 Jekyll 构建的. >
如果您有带下划线的文件夹(例如_myfolder),Jekyll会尝试构建.如果它们不是真正的Jekyll文件夹,则会破坏构建.
如果您不想处理html/js代码,请在代码的根目录添加 .nojekyll 文件.然后,Github将不会尝试构建,它只会按原样提供您的页面.
Github页面文档中的更多信息
I am creating my website on github page, I am not using jekyll or any of its kind, it's just pure javascript and html css. Why sometime it gives page build failure? what it is building then?
By default in a github repository, the gh-pages branch is build with Jekyll.
If you have underscored folders (eg: _myfolder) Jekyll tries to build. If they are not real Jekyll folders, this breaks the build.
If you don't want to process you html/js code, add a .nojekyll file at the root of your code. Github will then not try to build, it will just serve your pages as is.
More info in Github pages doc
这篇关于Github页面构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!