pkgdown 中的自定义模板

Custom templates in pkgdown

Here, the pkgdown docs say that I can supply my own templates (footer, etc) using the templates_path key in _pkgdown.yml. I am struggling to make pkgdown notice my custom footer from https://github.com/wlandau-lilly/drake/commit/2ca610f932be8d504560027b70106b5d57e3f0ea,我还没有找到任何指导性的例子。

显然,此功能并未正式实现:https://github.com/r-lib/pkgdown/issues/486

GitHub commit you linked 开始,更改

templates_path: inst/pkgdown

template:
  path: "inst/pkgdown"

将您的自定义页脚保留为 inst/pkgdown/footer.html