View source: R/macro-bookdown.R
| do_bookdown | R Documentation |
do_bookdown() adds default steps related to package checks
to the "install", "before_deploy", "script" and "deploy" stages.
step_install_deps() in the "install" stage
step_session_info() in the "install" stage.
step_setup_ssh() in the "before_deploy"
to setup the upcoming deployment (if deploy is set),
step_setup_push_deploy() in the "before_deploy" stage
(if deploy is set),
step_build_bookdown() in the "deploy" stage,
forwarding all ... arguments.
step_do_push_deploy() in the "deploy" stage.
By default, the _book/ directory is deployed
to the gh-pages branch, keeping the history.
do_bookdown(
...,
deploy = NULL,
orphan = FALSE,
checkout = TRUE,
path = "_book",
branch = "gh-pages",
remote_url = NULL,
commit_message = NULL,
commit_paths = ".",
force = FALSE,
private_key_name = "TIC_DEPLOY_KEY",
cname = NULL
)
... |
Passed on to |
deploy |
|
orphan |
|
checkout |
|
path |
|
branch |
|
remote_url |
|
commit_message |
|
commit_paths |
|
force |
|
private_key_name |
|
cname |
( |
Other macros:
do_blogdown(),
do_drat(),
do_package_checks(),
do_pkgdown(),
do_readme_rmd(),
list_macros()
## Not run:
dsl_init()
do_bookdown()
dsl_get()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.