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
)
A character vector of the HTML code before the document title.
A character vector of the table of contents.
The body of a chapter.
The URL of the previous/next chapter (may be
NULL
).
The Rmd filename of the current chapter (may be NULL
).
The HTML filename of the current chapter (may be
NULL
).
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
).