gh-pages内容无法在相应的URL呈现吗? [英] gh-pages content not rendering at corresponding URL?
问题描述
我正在使用travis将内置内容部署到与gh-pages
分支相对应的项目中.这是项目:
I'm using travis to deploy built content into the projects corresponding gh-pages
branch. This is the project:
https://github.com/fireflysemantics/is
我看到typedoc生成的doc
文件夹位于gh-pages
分支中,但是当我转到以下位置时:
I see that the doc
folder that typedoc generated is in the gh-pages
branch, however when I go to:
https://fireflysemantics.github.io/is/doc/index.html
我得到一个404,但是index.html页面在该位置的gh-pages
分支中:
I get a 404, but the index.html pages is in the gh-pages
branch at that location:
https://github.com/fireflysemantics/is /blob/gh-pages/doc/index.html
知道为什么不渲染吗?
推荐答案
确定-知道了.我必须为gh-pages
配置发布源.
OK - Got it. I had to configure the publishing source for gh-pages
.
请注意,对于typedoc,我们还需要添加.nojekyll
文件,以便gh-pages
不会忽略以_
开头的文件.有关如何执行此操作的信息,请参见我的 .travis.yml 文件.
Note that for typedoc we also need to add a .nojekyll
file, so that gh-pages
does not ignore files staring with _
. See my .travis.yml file for how I did this.
这篇关于gh-pages内容无法在相应的URL呈现吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!