manalang-bdoc 0.2.1 → 0.2.2
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.
- data/History.txt +5 -0
- data/README.rdoc +8 -0
- data/lib/bdoc.rb +2 -2
- data/templates/index.html +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -10,6 +10,8 @@ Hanna[http://github.com/mislav/hanna/tree/master] (a beautiful rdoc theme).
|
|
10
10
|
|
11
11
|
Check out the demo http://manalang.com/bdoc
|
12
12
|
|
13
|
+
http://img.skitch.com/20090406-8bhnftitwtrpd5xeu4acexerm6.png
|
14
|
+
|
13
15
|
== Install
|
14
16
|
|
15
17
|
[sudo] gem install manalang-bdoc
|
@@ -21,6 +23,12 @@ Check out the demo http://manalang.com/bdoc
|
|
21
23
|
That's it! This will create an index of all your local gems then launch your
|
22
24
|
default browser. Enjoy!
|
23
25
|
|
26
|
+
=== Specify output directory
|
27
|
+
|
28
|
+
Optionally you can specify the output directory on the command line:
|
29
|
+
|
30
|
+
bdoc /path/to/bdoc
|
31
|
+
|
24
32
|
== LICENSE:
|
25
33
|
|
26
34
|
(The MIT License)
|
data/lib/bdoc.rb
CHANGED
@@ -8,7 +8,7 @@ require 'launchy'
|
|
8
8
|
require 'json'
|
9
9
|
|
10
10
|
module Bdoc
|
11
|
-
VERSION = '0.2.
|
11
|
+
VERSION = '0.2.2'
|
12
12
|
|
13
13
|
class << self
|
14
14
|
attr_accessor :output_dir
|
@@ -59,6 +59,6 @@ module Bdoc
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
self.output_dir = File.join(Dir.tmpdir,"bdoc")
|
62
|
+
self.output_dir = ARGV[0] || File.join(Dir.tmpdir,"bdoc")
|
63
63
|
self.output_index = File.join(@output_dir,"index.html")
|
64
64
|
end
|
data/templates/index.html
CHANGED
@@ -155,7 +155,7 @@ body { background: #aaa }
|
|
155
155
|
<% if gem[:versions].last[:rdoc_index] %>
|
156
156
|
<a href="<%= gem[:versions].last[:rdoc_index] %>" class="gemname" title="<%= ERB::Util.h gem[:description] %>" rel="<%= gem[:homepage] %>"><%= gem[:name] %></a>
|
157
157
|
<% else %>
|
158
|
-
<span class="gemname quiet" title="<%= gem[:description] %>">*<%= gem[:name] %></span>
|
158
|
+
<span class="gemname quiet" title="<%= ERB::Util.h gem[:description] %>">*<%= gem[:name] %></span>
|
159
159
|
<% end %>
|
160
160
|
<span class="version hide"><%= gem[:versions].last[:version] %></span>
|
161
161
|
</span>
|