pages_enabled()- returnsTRUEif a Pages site exists for the repo.pages_status()- returns more detailed information about a repo's Pages site.pages_create()- creates a Pages site for the provided repos.pages_delete()- deletes the Pages site for the provided repos.
Usage
pages_enabled(repo)
pages_status(repo)
pages_create(
repo,
build_type = c("legacy", "workflow"),
branch = "main",
path = "/docs"
)
pages_delete(repo)Arguments
- repo
Character. Address of repositories in
owner/nameformat.- build_type
Character. Either
"workflow"or"legacy"- the former uses GitHub actions to build and publish the site (requires a workflow file to achieve this).- branch
Character. Repository branch to publish.
- path
Character. Repository path to publish.
