diff --git a/NAMESPACE b/NAMESPACE index b352783..ba30c0c 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -41,7 +41,7 @@ export(parse_q_tag) export(parse_quiz) export(parse_quiz_df) export(remove_yaml_header) -export(render_coursera) +export(render_without_toc) export(replace_html) export(replace_single_html) export(set_knitr_image_path) diff --git a/R/coursera.R b/R/coursera.R index 2b30b36..db70788 100644 --- a/R/coursera.R +++ b/R/coursera.R @@ -214,12 +214,12 @@ convert_coursera_quizzes <- function(input_quiz_dir = "quizzes", #' #' @importFrom utils download.file #' -render_coursera <- function(output_dir = file.path("docs", "coursera"), - output_yaml = "_output.yml", - convert_quizzes = FALSE, - input_quiz_dir = "quizzes", - output_quiz_dir = "coursera_quizzes", - verbose = TRUE) { +render_without_toc <- function(output_dir = file.path("docs", "no_toc"), + output_yaml = "_output.yml", + convert_quizzes = FALSE, + input_quiz_dir = "quizzes", + output_quiz_dir = "coursera_quizzes", + verbose = TRUE) { # Find root directory by finding `_bookdown.yml` file root_dir <- bookdown_path() @@ -305,7 +305,7 @@ render_coursera <- function(output_dir = file.path("docs", "coursera"), ) ###### Now do the rendering! ###### - message("Render bookdown without TOC for Coursera") + message("Render bookdown without TOC") # Do the render bookdown::render_book( diff --git a/man/coursera.Rd b/man/coursera.Rd index efa446a..ffe0c57 100644 --- a/man/coursera.Rd +++ b/man/coursera.Rd @@ -1,11 +1,11 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/coursera.R -\name{render_coursera} -\alias{render_coursera} +\name{render_without_toc} +\alias{render_without_toc} \title{Create TOC-less Bookdown for use in Coursera} \usage{ -render_coursera( - output_dir = file.path("docs", "coursera"), +render_without_toc( + output_dir = file.path("docs", "no_toc"), output_yaml = "_output.yml", convert_quizzes = FALSE, input_quiz_dir = "quizzes",