A wrapper around staticdocs providing a way to port R documentation into a readthedocs flavored website.
See here for an example.
# install.packages("devtools")
devtools::install_github("sahilseth/readthedocs")
library(staticdocs)
librar(readthedocs)
require(tools)
outwd = "flowrdocs/source/rd" ## assuming sphnix reads from the source directory
pkg = staticdocs::as.sd_package(pkg = ".",
site_path = outwd,
templates_path = system.file("templates", package = "readthedocs"))
tmp <- build_topics(pkg = pkg)
tmp <- build_vignettes(pkg = pkg)
Then one needs to call sphnix to build the website locally OR update this to github and point readthedocs.org to it. Refer to readthedocs for more information regarding this setup.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.