Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow template packages to provide a default configuration _pkgdown.yml #1565

Merged
merged 8 commits into from
Mar 15, 2021

Conversation

maelle
Copy link
Collaborator

@maelle maelle commented Mar 12, 2021

Fix #1499

R/init.R Outdated
"assets"
)

if (length(assets) > 0) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current code was assuming a template package had to provide assets, which this PR fixes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this check should go in copy_asset_dir()

R/package.r Show resolved Hide resolved
R/utils-fs.R Show resolved Hide resolved
@maelle maelle marked this pull request as ready for review March 12, 2021 10:41
@maelle maelle requested a review from hadley March 12, 2021 15:24
NEWS.md Outdated Show resolved Hide resolved
R/init.R Outdated
"assets"
)

if (length(assets) > 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this check should go in copy_asset_dir()

R/package.r Show resolved Hide resolved
R/utils-fs.R Show resolved Hide resolved
R/utils.r Outdated Show resolved Hide resolved
@maelle maelle changed the title Support configuration file in template package Allow template packages to provide a default configuration _pkgdown.yml Mar 15, 2021
@maelle maelle merged commit 95af5d4 into master Mar 15, 2021
@maelle maelle deleted the config branch March 15, 2021 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pkgdown config file in template packages
2 participants