rokko 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/lib/rokko/layout.rb +4 -3
- data/lib/rokko/task.rb +14 -0
- data/lib/rokko/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
data/lib/rokko/layout.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'pathname'
|
2
|
+
|
2
3
|
module Rokko
|
3
4
|
class Layout < Mustache
|
4
5
|
self.template_path = File.dirname(__FILE__)
|
@@ -19,8 +20,8 @@ module Rokko
|
|
19
20
|
|
20
21
|
"<style type=\"text/css\" media=\"screen, projection\">#{docco}\n#{highlight}</style>"
|
21
22
|
else
|
22
|
-
"<link rel=\"stylesheet\" href=\"http://vast.github.com/rokko/v#{::Rokko::VERSION}/
|
23
|
-
<link rel=\"stylesheet\" href=\"http://vast.github.com/rokko/v#{::Rokko::VERSION}/
|
23
|
+
"<link rel=\"stylesheet\" href=\"http://vast.github.com/rokko/assets/v#{::Rokko::VERSION}/docco.css\" />
|
24
|
+
<link rel=\"stylesheet\" href=\"http://vast.github.com/rokko/assets/v#{::Rokko::VERSION}/highlight.css\" />"
|
24
25
|
end
|
25
26
|
end
|
26
27
|
|
@@ -28,7 +29,7 @@ module Rokko
|
|
28
29
|
js = if @options[:local]
|
29
30
|
"<script>#{File.read(File.join(File.dirname(__FILE__), 'assets', 'highlight.pack.js'))}</script>"
|
30
31
|
else
|
31
|
-
"<script src=\"http://vast.github.com/rokko/v#{::Rokko::VERSION}/
|
32
|
+
"<script src=\"http://vast.github.com/rokko/assets/v#{::Rokko::VERSION}/highlight.pack.js\"></script>"
|
32
33
|
end
|
33
34
|
|
34
35
|
js + "\n" + "<script>hljs.initHighlightingOnLoad();</script>\n"
|
data/lib/rokko/task.rb
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# Usage:
|
2
|
+
#
|
3
|
+
# Rokko::Task.new(:task_name, output_dir, filelist, opts)
|
4
|
+
#
|
5
|
+
# Example:
|
6
|
+
# Rokko::Task.new(:rokko, 'docs',
|
7
|
+
# ['lib/**/*.rb', 'README.md'],
|
8
|
+
# {:index => true, :local => true})
|
9
|
+
#
|
10
|
+
# Available options:
|
11
|
+
#
|
12
|
+
# * `:local` -- generate offline-ready documentation.
|
13
|
+
# * `:index` -- if value is a file name, then it will be used as an index. If value is `true` then
|
14
|
+
# an index file with table of contents will be generated.
|
1
15
|
require 'rokko'
|
2
16
|
|
3
17
|
module Rokko
|
data/lib/rokko/version.rb
CHANGED