make_embed_markdown: Make Leanpub file that has embed webpage of a chapter

View source: R/leanpub.R

make_embed_markdownR Documentation

Make Leanpub file that has embed webpage of a chapter

Description

Make Leanpub file that has embed webpage of a chapter

Usage

make_embed_markdown(
  path = ".",
  url,
  chapt_title,
  img_path,
  output_dir = "manuscript",
  footer_text = "",
  width_spec = 800,
  height_spec = 600,
  verbose = TRUE
)

Arguments

path

path to the bookdown or quarto course repository, must have a '_bookdown.yml' or '_quarto.yml' file

url

The url to the chapter that is to be embed

chapt_title

Title of chapter to be used as file name and printed on iframe

img_path

File path to image to use for poster

output_dir

output directory to put files. It should likely be relative to path

footer_text

Optionally can add a bit of text that will be added to the end of each file before the references section.

width_spec

How wide should the iframe be in pixels?

height_spec

How high should the iframe be in pixels?

verbose

print diagnostic messages

Value

A markdown file with an iframe of the provided chapter


ottrpal documentation built on April 3, 2025, 7:46 p.m.