make_images_section | R Documentation |
This will insert xml figure nodes into the images page, printing the alt text descriptions for users who are not using screen readers.
make_images_section(name, contents, parent)
name |
the name of the section, (may or may not be prefixed with |
contents |
an |
parent |
the parent div of the images page |
the section that was added to the parent
build_images()
, get_content()
if (FALSE) {
lsn <- "/path/to/lesson"
pkg <- pkgdown::as_pkgdown(fs::path(lsn, "site"))
# read in the All in One page and extract its content
img <- get_content("images", content = "self::*", pkg = pkg)
fig_content <- get_content("01-introduction", content = "/figure", pkg = pkg)
make_images_section("01-introduction", contents = fig_content, parent = img)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.