gh-pages内容无法在相应的URL呈现吗? [英] gh-pages content not rendering at corresponding URL?

查看:73
本文介绍了gh-pages内容无法在相应的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆