make_embed_markdown | R Documentation |
Make Leanpub file that has embed webpage of a chapter
make_embed_markdown(
path = ".",
url,
chapt_title,
img_path,
output_dir = "manuscript",
footer_text = "",
width_spec = 800,
height_spec = 600,
verbose = TRUE
)
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 |
A markdown file with an iframe of the provided chapter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.