get_chapters: Make Leanpub file that has embed webpage of a chapter

View source: R/leanpub.R

get_chaptersR Documentation

Make Leanpub file that has embed webpage of a chapter

Description

Make Leanpub file that has embed webpage of a chapter

Usage

get_chapters(
  path = ".",
  html_page = file.path("docs", "index.html"),
  base_url = "."
)

Arguments

path

path to the bookdown or quarto course repository, must have a '_bookdown.yml' or '_quarto.yml' file

html_page

The file path of the rendered index.html file. It can be a url

base_url

The base url of where the chapters are published – the url to provide to the iframe in Leanpub e.g. https://jhudatascience.org/OTTR_Template/coursera

Value

A data.frame of the chapter urls and their titles that are to be ported to Leanpub. This can be passed to


ottrpal documentation built on April 3, 2025, 7:46 p.m.