deployCustomCSS: Deploy a custom CSS

View source: R/deployCustomCSS.R

deployCustomCSSR Documentation

Deploy a custom CSS

Description

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

Usage

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

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


LTLA/rebook documentation built on June 5, 2023, 6:24 p.m.