yard_klippstein_template 0.0.27 → 0.0.28
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/Manifest.txt
CHANGED
@@ -11,6 +11,7 @@ templates/default/fulldoc/html/full_list_method.erb
|
|
11
11
|
templates/default/fulldoc/html/setup.rb
|
12
12
|
templates/default/layout/html/footer.erb
|
13
13
|
templates/default/layout/html/setup.rb
|
14
|
+
templates/default/module/html/box_info.erb
|
14
15
|
templates/default/module/html/item_summary.erb
|
15
16
|
templates/default/module/setup.rb
|
16
17
|
lib/yard_klippstein_template.rb
|
@@ -1,4 +1,8 @@
|
|
1
1
|
<div id="subclasses">
|
2
|
-
|
3
|
-
<
|
4
|
-
|
2
|
+
<dl class="box">
|
3
|
+
<div class="row">
|
4
|
+
<dt class="r1 last">Subclasses:</dt>
|
5
|
+
<dd class="r1 last"><%= @subclasses.map {|name, child| linkify(child, name) }.join(", ") %></dd>
|
6
|
+
</div>
|
7
|
+
</dl>
|
8
|
+
</div>
|
@@ -1,4 +1,37 @@
|
|
1
|
+
/* Box */
|
2
|
+
|
3
|
+
#filecontents dl.box, dl.box {
|
4
|
+
display: table;
|
5
|
+
border-top: 1px #c6c6c6 dotted;
|
6
|
+
margin: 2px 0 5px 0;
|
7
|
+
padding-left:0px;
|
8
|
+
width: 100%;
|
9
|
+
}
|
10
|
+
|
11
|
+
#filecontents dl.box div, dl.box div {
|
12
|
+
display: table-row;
|
13
|
+
margin: 0px;
|
14
|
+
padding: 2px 0px 2px 0px;
|
15
|
+
line-height:1.5em;
|
16
|
+
}
|
17
|
+
|
18
|
+
#filecontents dl.box dt, dl.box dt {
|
19
|
+
display: table-cell;
|
20
|
+
background: none;
|
21
|
+
border: 0px;
|
22
|
+
padding: 1px 10px;
|
23
|
+
border-bottom: 1px #c6c6c6 dotted;
|
24
|
+
white-space:nowrap;
|
25
|
+
font-weight: normal !important;
|
26
|
+
}
|
1
27
|
|
28
|
+
#filecontents dl.box dd, dl.box dd {
|
29
|
+
display: table-cell;
|
30
|
+
background: white;
|
31
|
+
border-bottom: 1px #c6c6c6 dotted;
|
32
|
+
margin:0;
|
33
|
+
padding: 1px 0px 1px 3px;
|
34
|
+
}
|
2
35
|
|
3
36
|
/* Headlines */
|
4
37
|
|
@@ -130,7 +163,6 @@
|
|
130
163
|
border-bottom: 1px #c6c6c6 dotted;
|
131
164
|
white-space:nowrap;
|
132
165
|
font-weight: normal !important;
|
133
|
-
|
134
166
|
}
|
135
167
|
|
136
168
|
dl.rdoc-list dd {
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<% n = 1 %>
|
2
|
+
<dl class="box">
|
3
|
+
<% if CodeObjects::ClassObject === object && object.superclass %>
|
4
|
+
<div class="row">
|
5
|
+
<dt class="r<%=n%>">Inherits:</dt>
|
6
|
+
<dd class="r<%=n%>">
|
7
|
+
<span class="inheritName"><%= linkify object.superclass %></span>
|
8
|
+
<% if object.superclass.name != :BasicObject %>
|
9
|
+
<ul class="fullTree">
|
10
|
+
<li><%= linkify P(:Object) %></li>
|
11
|
+
<% object.inheritance_tree.reverse.each_with_index do |obj, i| %>
|
12
|
+
<li class="next"><%= obj == object ? obj.path : linkify(obj) %></li>
|
13
|
+
<% end %>
|
14
|
+
</ul>
|
15
|
+
<a href="#" class="inheritanceTree">show all</a>
|
16
|
+
<% end %>
|
17
|
+
</dd>
|
18
|
+
</div>
|
19
|
+
<% n = 2 %>
|
20
|
+
<% end %>
|
21
|
+
<% [[:class, "Extended by"], [:instance, "Includes"]].each do |scope, name| %>
|
22
|
+
<% if (mix = object.mixins(scope)).size > 0 %>
|
23
|
+
<div class="row">
|
24
|
+
<dt class="r<%=n%>"><%= name %>:</dt>
|
25
|
+
<dd class="r<%=n%>"><%= mix.sort_by {|o| o.path }.map {|o| linkify(o) }.join(", ") %></dd>
|
26
|
+
</div>
|
27
|
+
<% n = n == 2 ? 1 : 2 %>
|
28
|
+
<% end %>
|
29
|
+
<% end %>
|
30
|
+
<% if (mixed_into = mixed_into(object)).size > 0 %>
|
31
|
+
<div class="row">
|
32
|
+
<dt class="r<%=n%>">Included in:</dt>
|
33
|
+
<dd class="r<%=n%>"><%= mixed_into.sort_by {|o| o.path }.map {|o| linkify(o) }.join(", ") %></dd>
|
34
|
+
</div>
|
35
|
+
<% n = n == 2 ? 1 : 2 %>
|
36
|
+
<% end %>
|
37
|
+
<% unless object.root? %>
|
38
|
+
<div class="row">
|
39
|
+
<dt class="r<%=n%> last">Defined in:</dt>
|
40
|
+
<dd class="r<%=n%> last"><%= erb(:defines) %></dd>
|
41
|
+
</div>
|
42
|
+
<% end %>
|
43
|
+
</dl>
|
44
|
+
<div class="clear"></div>
|
45
|
+
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard_klippstein_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.28
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- templates/default/fulldoc/html/setup.rb
|
101
101
|
- templates/default/layout/html/footer.erb
|
102
102
|
- templates/default/layout/html/setup.rb
|
103
|
+
- templates/default/module/html/box_info.erb
|
103
104
|
- templates/default/module/html/item_summary.erb
|
104
105
|
- templates/default/module/setup.rb
|
105
106
|
- lib/yard_klippstein_template.rb
|