deployCustomCSS: Deploy a custom CSS

Description Usage Arguments Details Value Author(s) Examples

View source: R/deployCustomCSS.R

Description

Deploy a custom CSS to change the colors of the book's section headers, mostly to add some flavor to the book.

Usage

1
deployCustomCSS(path = "style.css", h2.col = "#87b13f", h3.col = "#1a81c2")

Arguments

path

String containing the path to the output CSS file.

h2.col

String containing the color to use for the section headers.

h3.col

String containing the color to use for the subsection headers.

Details

We quickly learned that it was unwise to be too adventurous with the colors. In particular, changing the colors of the table of contents was quite distracting. Altering the colors of the section headers provides a tasteful level of customization, with the default colors set (almost) to the Bioconductor color palette.

Value

The CSS file is overwritten at path. A NULL is invisibly returned.

Author(s)

Aaron Lun, based on work by Rob Amezquita and Kevin Rue-Albrecht

Examples

1
2
3
fname <- tempfile(fileext=".css")
deployCustomCSS(fname)
cat(readLines(fname), sep="\n")

rebook documentation built on Nov. 8, 2020, 4:56 p.m.