-
Notifications
You must be signed in to change notification settings - Fork 301
Introduce use_github_pages() and use_tidy_pkgdown() #1271
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
Conversation
7ee5aad to
9eb08a4
Compare
9eb08a4 to
ec52595
Compare
|
@hadley Is this what you had in mind? |
hadley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! It's above and beyond what I was expecting, and I can see that it's going to save a bunch time and protect us against many minor mistakes when creating websites.
R/pkgdown.R
Outdated
| #' | ||
| #' @rdname tidyverse | ||
| #' @export | ||
| use_tidy_pkgdown <- function(cname = NULL) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just occurred to me: should we say something about tidytemplate for sites tidyverse org? Or maybe it's not worth it, given adding a new tidyverse package is a relatively rare occurrence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's possible we should offer ourselves better templating for pkgdown config, but I definitely would not get into that here in this PR or, probably for v2.0.0.
| Remotes: | ||
| r-lib/gert, | ||
| r-lib/gh | ||
| r-lib/gh#139 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to fail as soon as the PR is closed. It's a bit safer (but not as descriptive) to refer to a branch with the @branch notation instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't plan for this situation to last very long, but yes you're right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both are going to break when we merge and delete the branch. I'll update this as soon as we merge in gh.
Closes #224