-
Notifications
You must be signed in to change notification settings - Fork 287
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
Could use_github_pages() turn on GitHub Pages? #224
Comments
I see this: https://developer.github.com/v3/repos/pages/#pages It's not immediately clear to me if activation via API is possible. More docs: |
Given this only needs to happen once per repo, and there are options that might differ from package to package, I don't think it's a good fit for usethis. |
Seems we can turn on via https://docs.github.com/en/rest/reference/repos#update-information-about-a-github-pages-site.
Saves a lot of clicks, even if it's done only once. Could also help existing repositories. |
Yeah, that seems reasonable, although I'd make |
And should also add url to front of |
* Introduce use_github_pages() Closes #224 * CNAME details * Logo modernization * Introduce use_tidy_pkgdown() * Might as well update use_pkgdown_travis() * Update pkgdown config * Fix an Rd link * Another Rd link * Work on docs, soften `path` enforcement * Tweaks based on more manual testing * Suggestions from code review * Update WORDLIST * Re-document() * Rework handling of CNAME * Tweaks re: editing pkgdown config * Return site metadata * Don't expose cname/URL stuff in use_tidy_pkgdown() * Update WORDLIST * Polishing
There is already support for
use_github_labels
inusethis
, it would be great to programmatically turn on GitHub Pages for a repo without having to visit the settings page.If the provided
source.branch
cannot be found then return the following error (a la http://style.tidyverse.org/error-messages.html#hints):The text was updated successfully, but these errors were encountered: