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

Html pipeline #3

Merged
merged 3 commits into from Nov 29, 2012
Merged

Html pipeline #3

merged 3 commits into from Nov 29, 2012

Conversation

picandocodigo
Copy link
Collaborator

Modified it to use Github's html-pipeline instead of hitting the API. For some reason, I have to pass the :gfm => false parameter in order to ignore the breaklines from the markdown in the HTML.

@@ -19,5 +19,5 @@ Gem::Specification.new do |gem|

gem.add_dependency 'listen'
gem.add_dependency 'rb-fsevent'
gem.add_dependency 'httpclient'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

httpclient is still required for fetching the stylesheet links.

@adamlogic
Copy link
Member

This is awesome! Please verify the gemspec dependencies, and I will merge.

@picandocodigo
Copy link
Collaborator Author

Yep, I removed it in the first place since I was thinking about a way not to make an HTTP request at all. We could figure out a way to have the correct CSS in the gem maybe, but for the moment I think this is still an improvement since you make just one request for the CSS and don't use an API call to Github.

@adamlogic
Copy link
Member

I fetch the CSS links from github since the fingerprint on the URL will change over time. I do cache it for a day, but I'm thinking I'll change it to a week.

Thanks for this!

adamlogic added a commit that referenced this pull request Nov 29, 2012
Use Html pipeline locally instead of hitting the Github API
@adamlogic adamlogic merged commit ea7b6c2 into edgecase:master Nov 29, 2012
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.

None yet

2 participants