cdnify_tufte: CDNify a *tufte* page

View source: R/cdnify_tufte.R

cdnify_tufteR Documentation

CDNify a tufte page

Description

This function replaces dependencies in .html pages generated using the tufte package.

Usage

cdnify_tufte(filename, libdir = sub(".html$", "_files", filename))

Arguments

filename

.html file to CDNify.

libdir

Directory containing dependencies (defaults to filename_files).

Details

The page must have been knit with self_contained: false in the YAML header. For example, a valid header would be:

---
title: "An Example Using the Tufte Style"
author: "John Smith"
output:
  tufte::tufte_html:
    tufte_features: ["fonts", "background", "italics"]
    self_contained: false
---

szego/cdnce documentation built on March 11, 2023, 9:33 p.m.