-
Notifications
You must be signed in to change notification settings - Fork 336
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
Include arbitrary files #2064
Comments
Not sure if this will help, but I have a repo + pkgdown website where I host arbitrary files: https://github.com/vincentarelbundock/Rdatasets/ What I do is basically:
Note the important The specific steps I take are listed in a reminder at the bottom of my README, but they are repo-specific. |
Thanks - I do something similar right now but its helpful to see another example! Where this falls down for me is needing to do |
Indeed, we have a similar problem. We want to make available in the website a vignette that can only be built in PDF and we have to run a quite complicated sequence of commands: |
Seems like it would be reasonable to include some config that let you declare paths as "known" and not to be cleaned up. |
Alternatively we could have a convention like where all files in |
Actually, template packages use |
Oh, and indeed the code to do that already exists 😬 |
And it's already documented in https://pkgdown.r-lib.org/articles/customise.html#additional-html-and-files, so I'm going to close this issue 😄 |
Am I missing an automatic way to flag specific files which should be included in the built site? I'm trying to use the pkgdown site as a drat repository, and since pkgdown cleans the gh-pages branch on every rebuild, I'm having to manually add the files back.
Specifically, I need to place some files in
bin/
andsrc/contrib/
. I have these on my main branch, and ideally I'd like some way to tell pkgdown to just copy those locations/files directly over to gh-pages.The text was updated successfully, but these errors were encountered: