Skip to contents

Builds a pkgdown site for a single package after validating that the package exists in the monorepo and is listed under custom:packages in the central pkgdown.yaml. The destination directory is derived from the package name by replacing dots with underscores.

Usage

pkd_build_package(package, dest_dir, monorepo_dir = ".")

Arguments

package

Package name (e.g., "g6tr.cjt").

dest_dir

Directory where the built site should be written.

monorepo_dir

Monorepo root containing packages/ and pkgdown/pkgdown.yaml. Defaults to ".".

Value

Returns the destination directory path invisibly.

Examples

if (FALSE) { # \dontrun{
pkd_build_package("g6tr.cjt", dest_dir = "../g6tr-docs")
} # }