View source: R/transform_vignettes.R
Vignettes files (originally placed in the folder "Vignettes") have the output "html_vignette", which doesn't allow to produce the Markdown files needed for docsifier to work. This function makes several things:
moves the .Rmd files from the "vignettes" folder in "docs/articles"
replaces the "output chunk" of each .Rmd file (in "docs/articles") so that it is "md_document" instead of "html_vignette"
render all of the modified .Rmd files (in "docs/articles"), which produce .md files.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.