Skip to content

Commit

Permalink
Remove man page support, not ready for prime time.
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Apr 23, 2010
1 parent 74d41a9 commit d33f853
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 345 deletions.
23 changes: 0 additions & 23 deletions lib/github/markups.rb
Expand Up @@ -28,26 +28,3 @@
$1
end
end

#
# man pages!
#
command('groff -t -e -mandoc -Thtml -P -l -P -r -', /\d/) do |rendered, original|
# Try to grab the name and section.
if original =~ /^.TH (\S+).*?(\d).*$/
# Clear out the gunk, "MUSTACHE" => MUSTACHE
name, section = $1, $2
name.gsub!(/"|'/, '')

# make MUSTACHE(1)
title = "#{name}(#{section})"

# Classy divs.
left = "<div style='float:left'>#{title}</div>"
right = "<div style='float:right'>#{title}</div>"
end

if rendered =~ /<body>\s*(.+)\s*<\/body>/mi
$1.gsub(/<hr>/, '').gsub(/(<h1.+?h1>)/, "#{left}#{right}\\1")
end
end
138 changes: 0 additions & 138 deletions test/markups/README.1

This file was deleted.

184 changes: 0 additions & 184 deletions test/markups/README.1.html

This file was deleted.

0 comments on commit d33f853

Please sign in to comment.