Skip to content

Commit

Permalink
Fixing some notes
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Jul 1, 2024
1 parent 6484c23 commit 190cc63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/coursera_and_leanpub.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ convert_coursera_quizzes <- function(input_quiz_dir = "quizzes",

#' Create TOC-less course website for use in Coursera or Leanpub
#'
#' Create a version of the course that does not have a TOC and has quizzes in the Coursera yaml format.
#' Create a version of the course that does not have a TOC and has quizzes in the Coursera yaml format.
#'
#' @param output_dir A folder (existing or not) that the TOC-less Bookdown for Coursera files should be saved. By default is file.path("docs", "coursera")
#' @param output_yaml A output.yml file to be provided to bookdown. By default is "_output.yml"
Expand All @@ -221,7 +221,7 @@ render_without_toc <- function(output_dir = file.path("docs", "no_toc"),
output_quiz_dir = "coursera_quizzes",
verbose = TRUE) {
# Find root directory by finding `_bookdown.yml` file
root_dir <- bookdown_path()
root_dir <- course_path()

# Output files:
output_dir <- file.path(root_dir, output_dir)
Expand Down
6 changes: 3 additions & 3 deletions R/iframe_leanpub.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' @param remove_resources_start remove the word `resources/` at the front
#' of any image path.
#' @param run_quiz_checks TRUE/FALSE run quiz checks
#' @param make_book_txt Should [ottrpal::bookdown_to_book_txt()] be run
#' @param make_book_txt Should [ottrpal::course_to_book_txt()] be run
#' to create a `Book.txt` in the output directory?
#' @param quiz_dir directory that contains the quiz .md files that should be
#' checked and incorporated into the Book.txt file. If you don't have quizzes,
Expand Down Expand Up @@ -110,10 +110,10 @@ website_to_embed_leanpub <- function(path = ".",
####################### Book.txt creation ####################################
out <- NULL
if (make_book_txt) {
if (verbose) message("Running bookdown_to_book_txt")
if (verbose) message("Running course_to_book_txt")
md_files <- basename(unlist(md_output_files))

bookdown_to_book_txt(
course_to_book_txt(
md_files = md_files,
output_dir = output_dir,
quiz_dir = quiz_dir,
Expand Down
2 changes: 1 addition & 1 deletion R/set_up.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ copy_quizzes <- function(quiz_dir = "quizzes", output_dir = "manuscript") {
#' @param remove_resources_start remove the word `resources/` at the front
#' of any image path.
#' @param run_quiz_checks TRUE/FALSE run quiz checks
#' @param make_book_txt Should [ottrpal::bookdown_to_book_txt()] be run
#' @param make_book_txt Should [ottrpal::course_to_book_txt()] be run
#' to create a `Book.txt` in the output directory?
#' @param quiz_dir directory that contains the quiz .md files that should be
#' checked and incorporated into the Book.txt file. If you don't have quizzes,
Expand Down

0 comments on commit 190cc63

Please sign in to comment.