This gist provides a workaround proposed by Andrzej K. Oleś (@aoles) to use pkgdown with vignettes formatted with
Biocstyle::html_document2 or bookdown::html_document2, see r-lib/pkgdown#323.
-
Copy
extra.csstopkgdown/extra.cssin your package sources (i.e. pkgdown is a top-level directory alongside R, man, etc) or merge with your existingextra.css. -
Source
build_rmarkdown_format.Rbefore callingbuild_site()orbuild_articles(). Notebuild_sitemust be called to copyextra.csstodocs, so must be used the first timeextra.cssis added or any time it is modified for the changes to take effect.