如何设置 blogdown / Travis-CI 以忽略某些文件?

How to set up blogdown / Travis-CI to ignore certain files?

我有一个用 blogdown 编写并通过 Travis CI 部署的博客。

这意味着每次我对单个 post 进行更改时,整个站点都会重新生成。这大约需要 10 分钟,所以时间不是问题。

然而,我的一个 post 调用了一个异国情调的 API,它有时会产生意想不到的结果,导致整个构建崩溃。即使有问题的 post.

没有变化,也会发生这种情况

是否有一个选项可以仅部署更改的内容和/或指定 post 应该从整个站点重建中忽略?

已在 Section 3.4 of the blogdown book. I don't think it is a good idea to use this approach unless your website does not contain Rmd posts. If you want to ignore a certain post, you may use a different filename extension (i.e. not .Rmd); please see Section 1.5 中警告您不要在 Travis 上构建网站以获取详细信息(如果您没有耐心阅读完整部分,请滚动到底部)。