Skip to content
Instant Preview for GitHub's README formats
Ruby JavaScript HTML
Latest commit c5e64bc Jun 20, 2016 @kei-s committed on GitHub Merge pull request #116 from pazjacket/tachikoma/update-20160619135408
Exec tachikoma update 20160619135408
Failed to load latest commit information.
help
public s/Github/GitHub/ Dec 10, 2013
spec
views Fix link to underscore Nov 7, 2015
.gitignore
.tachikoma.yml Add tachikoma setting Aug 4, 2014
.travis.yml Retry poltergeist Nov 9, 2015
Gemfile Retry poltergeist Nov 9, 2015
Gemfile.lock Bundle update 20160619135408 Jun 19, 2016
LICENSE add LICENSE Jan 24, 2012
Procfile
README.markdown Add codeclimate badges Aug 18, 2014
Rakefile fix Rakefile Feb 1, 2012
app.rb
config.ru initial Aug 9, 2011

README.markdown

GitHub Preview TravisCI Dependency Status PullReview stats Code Climate Test Coverage

App on Heroku

http://github-preview.herokuapp.com/

Preview script

Put this into your path at e.g. ~/bin/github-preview and chmod +x it.
Then github-preview someproject/Readme.markdown

#!/usr/bin/env ruby
# open a given markdown file via github preview app
raise "gime a file!!" unless ARGV[0]

require 'cgi'
content = File.read(ARGV[0])
url = 'http://github-preview.herokuapp.com/'

exec "open '#{url}/?text=#{CGI.escape content}&format=markdown'"

Local development

bundle
bundle exec rspec spec
bundle exec thin start
open http://localhost:3000

Copy to Clipboard

Using ussy/clippy. Thanks a lot!

Something went wrong with that request. Please try again.