Skip to content

Instantly share code, notes, and snippets.

View camagu's full-sized avatar

Camilo Aguilar camagu

  • Globant LLC
  • San Francisco
View GitHub Profile
@camagu
camagu / readme2ghpage.rb
Created July 13, 2012 04:47 — forked from hopsoft/readme2ghpage.rb
Convert your README.md on master to index.md on gh-pages
#!/usr/bin/env ruby
# checkout the readme from the master branch
`git checkout gh-pages; git checkout master README.md`
path = `pwd`.gsub(/\n/, "")
readme_path = File.join(path, "README.md")
index_path = File.join(path, "index.md")
# write the index readme file