build_chapter | R Documentation |
Given the HTML header, body, and footer, etc, build an HTML page.
build_chapter(
head,
toc,
chapter,
link_prev,
link_next,
rmd_cur,
html_cur,
foot
)
head |
A character vector of the HTML code before the document title. |
toc |
A character vector of the table of contents. |
chapter |
The body of a chapter. |
link_prev , link_next |
The URL of the previous/next chapter (may be
|
rmd_cur |
The Rmd filename of the current chapter (may be |
html_cur |
The HTML filename of the current chapter (may be
|
foot |
A character vector of the HTML code after the chapter body. |
This function is for expert use only. The head
and foot
arguments may not be strictly the HTML header and footer. It depends on the
HTML comment tokens in the template (see html_chapters
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.