how to add a custom htmlDependency in `bookdown::gitbook`
问题 bookdown::gitbook() adds the content of https://github.com/rstudio/bookdown/tree/master/inst/resources/gitbook as a htmltools::htmlDependency . How can I add such a custom dependency to a gitbook? The goal is to provide an easy way to add a corporate css (including images). The definition of the htmlDependency() and all the required files would reside in an R package. 回答1: The ... arguments of bookdown::gitbook() are eventually passed to rmarkdown::html_document() , which are further passed