hanna-bootstrap 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.0.5
@@ -51,8 +51,9 @@ class RDoc::Generator::Bootstrap
51
51
  new( options )
52
52
  end
53
53
 
54
- def initialize( options )
55
- @options = options
54
+ def initialize( store, options )
55
+ @options = options
56
+ @store = store
56
57
  @templatedir = Pathname.new(options.template_dir || File.expand_path('../hanna-bootstrap/template_files', __FILE__))
57
58
 
58
59
  @files = nil
@@ -87,12 +88,12 @@ class RDoc::Generator::Bootstrap
87
88
 
88
89
  end
89
90
 
90
- def generate( top_levels )
91
+ def generate
91
92
  @outputdir = Pathname.new( @options.op_dir ).expand_path( @basedir )
92
93
 
93
- @files = top_levels.sort
94
- @classes = RDoc::TopLevel.all_classes_and_modules.sort
95
- @methods = @classes.map(&:method_list).flatten.sort
94
+ @files = @store.all_files.sort
95
+ @classes = @store.all_classes_and_modules.sort
96
+ @methods = @classes.map {|m| m.method_list }.flatten.sort
96
97
  @attributes = @classes.map(&:attributes).flatten.sort
97
98
 
98
99
  # Now actually write the output
@@ -51,7 +51,7 @@ footer
51
51
  display: inline
52
52
  .show, &.collapsed .hide
53
53
  display: none
54
-
54
+
55
55
  h1.name
56
56
  .type
57
57
  font-size: 80%
@@ -66,3 +66,12 @@ h1.name
66
66
  font-weight: bold
67
67
  font-size: 18px
68
68
 
69
+ h1, h2, h3
70
+ span a
71
+ font-size: 0.5em
72
+ text-indent: 1em
73
+ display: inline-block
74
+ color: #fff
75
+ &:hover span a
76
+ color: #888
77
+
@@ -41,7 +41,7 @@
41
41
  %ul.dropdown-menu#search-results{ 'role' => 'menu', 'aria-labelledby' => 'search-query' }
42
42
 
43
43
  #main
44
- .container
44
+ .container#documentation
45
45
  = yield
46
46
 
47
47
  %footer
@@ -1,7 +1,7 @@
1
1
  module RDoc
2
2
  module Generator
3
3
  class Bootstrap
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanna-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-01-19 00:00:00.000000000 Z
15
+ date: 2013-05-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 1.8.24
181
+ rubygems_version: 1.8.23
182
182
  signing_key:
183
183
  specification_version: 3
184
184
  summary: Twitter Boostrap theme for RDoc