md2html 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ module Md2html
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,22 @@
1
+ #-*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "md2html/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "md2html"
7
+ s.version = Md2html::VERSION
8
+ s.authors = ["jrmoran"]
9
+ s.homepage = 'https://github.com/jrmoran/md2html'
10
+ s.summary = 'Markdown to HTML'
11
+ s.description = 'Converts markdown to styled html with code highlighting'
12
+
13
+ s.add_dependency 'hpricot'
14
+ s.add_dependency 'rdiscount'
15
+
16
+ s.add_development_dependency 'yui-compressor'
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+ s.require_paths = ["lib"]
22
+ end
@@ -0,0 +1,30 @@
1
+ # Markdown to HTML
2
+
3
+ I usualy keep a `log.md` file to document every project. This file is
4
+ then converted to HTML. This script automates the process.
5
+
6
+ ## Installation
7
+
8
+ gem install md2html
9
+
10
+ ## Usage
11
+
12
+ md2html log.md
13
+
14
+ This will create a `log.html` file.
15
+
16
+ ![Screenshot]( http://i.imgur.com/1Op0n.png )
17
+
18
+ ## Modifiying The Layout
19
+ Layout files are in the `html` folder, when making changes to any `css`
20
+ or `js` file, run `rake layout` to build a minified version of the layout.
21
+
22
+
23
+ ## Credits
24
+ This project uses
25
+
26
+ * [Twitter's CSS Bootstrap](http://twitter.github.com/bootstrap)
27
+ * [Google's Code Prettify](http://code.google.com/p/google-code-prettify/)
28
+ * [Rdiscount](https://github.com/rtomayko/rdiscount)
29
+ * [Hpricot](https://github.com/hpricot/hpricot)
30
+ * [Ruby-YUI Compressor](https://github.com/sstephenson/ruby-yui-compressor)
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: md2html
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - jrmoran
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-11-01 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hpricot
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: rdiscount
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: yui-compressor
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ type: :development
47
+ version_requirements: *id003
48
+ description: Converts markdown to styled html with code highlighting
49
+ email:
50
+ executables:
51
+ - md2html
52
+ extensions: []
53
+
54
+ extra_rdoc_files: []
55
+
56
+ files:
57
+ - .gitignore
58
+ - Gemfile
59
+ - Rakefile
60
+ - bin/md2html
61
+ - lib/md2html.rb
62
+ - lib/md2html/cli.rb
63
+ - lib/md2html/html/bootstrap.css
64
+ - lib/md2html/html/layout.html
65
+ - lib/md2html/html/layout.min.html
66
+ - lib/md2html/html/prettify.css
67
+ - lib/md2html/html/prettify.js
68
+ - lib/md2html/version.rb
69
+ - md2html.gemspec
70
+ - readme.md
71
+ homepage: https://github.com/jrmoran/md2html
72
+ licenses: []
73
+
74
+ post_install_message:
75
+ rdoc_options: []
76
+
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: "0"
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
91
+ requirements: []
92
+
93
+ rubyforge_project:
94
+ rubygems_version: 1.8.11
95
+ signing_key:
96
+ specification_version: 3
97
+ summary: Markdown to HTML
98
+ test_files: []
99
+