View source: R/macro-blogdown.R
| do_blogdown | R Documentation |
do_blogdown() adds default steps related to package checks
to the "install", "before_deploy", "script" and "deploy" stages.
step_install_deps() in the "install" stage
blogdown::install_hugo() in the "install" stage to install the
latest version of HUGO.
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_blogdown() in the "deploy" stage,
forwarding all ... arguments.
step_do_push_deploy() in the "deploy" stage.
By default, the public/ directory is deployed to the gh-pages branch,
keeping the history. If the output directory of your blog/theme is not
"public" you need to change the "path" argument.
do_blogdown(
...,
deploy = NULL,
orphan = FALSE,
checkout = TRUE,
path = "public",
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_bookdown(),
do_drat(),
do_package_checks(),
do_pkgdown(),
do_readme_rmd(),
list_macros()
## Not run:
dsl_init()
do_blogdown()
dsl_get()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.