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.css
topkgdown/extra.css
in 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.R
before callingbuild_site()
orbuild_articles()
. Notebuild_site
must be called to copyextra.css
todocs
, so must be used the first timeextra.css
is added or any time it is modified for the changes to take effect.