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

Support sub-directories within assets #1033

Merged
merged 4 commits into from
Jun 28, 2019
Merged

Conversation

ijlyttle
Copy link
Contributor

Fix #939:

This permits subdirectories to be copied recursively from the assets directory into the root directory of the pkgdown site.

This change was made in two parts:

  • copy_asset_directory(): remove directories from the recursive file listings
  • file_copy_to(): create all directories, not just the root directory of the destination

As well, I have added a couple of tests.

I think this is ready for review; please let me know if I need to add/fix anything.

Thanks!

@jayhesselberth jayhesselberth requested a review from hadley June 28, 2019 11:39
@jayhesselberth jayhesselberth changed the title Fix #939: support sub-directories within assets Support sub-directories within assets Jun 28, 2019
@jayhesselberth
Copy link
Collaborator

Looks good to me.

@jayhesselberth jayhesselberth merged commit 04d3a76 into r-lib:master Jun 28, 2019
@ijlyttle ijlyttle deleted the assets-ijl branch June 28, 2019 21:32
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.

template: assets can't include directories
3 participants