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
Use html_url from Pages endpoint (behind preview env flag) #60
Conversation
@parkr having a little trouble following the diff, due to noise. To confirm, it should use the API value for all fields (url, scheme, domain, etc.), and fall back to its own calculation, if the API isn't available, right? |
end | ||
|
||
def repo_info | ||
@repo_info ||= (Value.new(proc { |c| c.repository(nwo) }).render || Hash.new) | ||
end | ||
|
||
def repo_pages_info | ||
@repo_pages_info ||= (Value.new(proc { |c| c.pages(nwo) }).render || Hash.new) | ||
end |
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.
@benbalter this is key.
It uses the API value for all fields (taking the |
Thanks for the clarification. Makes sense to me. |
@benbalter Confirmed that the current code is opt-in via |
@jekyllbot: merge +minor |
Adds a
RepositoryCompat
class which has a fallback#pages_url
thatRepository#pages_url
uses in case it doesn't get the/pages
info./cc @jekyll/gh-pages for review.