# build analysis
files <- list.files(
path = here::here("analysis"),
pattern = "*.Rmd",
full.names = TRUE
)
purrr::walk(
.x = files,
.f = function(x) {
rmarkdown::render(
input = x,
output_format = prettydoc::html_pretty(
theme = "cayman",
math = "mathjax",
keep_md = FALSE,
self_contained = TRUE
)
)
}
)
# build book
bookdown::render_book(
input = here::here(),
params = list(
show_code = FALSE
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.