rtfdoc 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/lib/rtfdoc/version.rb +1 -1
- data/src/attributes.erb +9 -2
- data/src/css/application.scss +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3536b8048b251df0869eb0bb16378eadc247d8cd4d46382ace2899a49cfc1f30
|
|
4
|
+
data.tar.gz: b659fd9034ca9183b442dd39e7e1eebe75644fc01d166bf37f84cd54d1de31df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0f64a36efec12b759cca63ef5f6c9dabea13e3f56a08061e9d2c08a34ea37eeaff96c35aacb30fd472e20bcb86414b3fe708d17c5ec96800107fc733e5fc700
|
|
7
|
+
data.tar.gz: 7b83e3baab95dcd2bbc0e6eaed000224ddc565b5b64b0553b765b8be88e27bac16c5c86514b0d58be4c178036a9430b4e13c2470a6c9831d2ccbb758107eea36
|
data/lib/rtfdoc/version.rb
CHANGED
data/src/attributes.erb
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div class="list-item-description">
|
|
13
13
|
<%= to_html(hash['desc']) %>
|
|
14
14
|
</div>
|
|
15
|
-
<% if hash
|
|
15
|
+
<% if hash.key?('children') || hash.key?('after_children') %>
|
|
16
16
|
<div class="section-list section-list-child">
|
|
17
17
|
<h5
|
|
18
18
|
class="section-list-title section-list-title-child"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<span>Show child attributes</span>
|
|
27
27
|
</h5>
|
|
28
28
|
<ul class="child-list hidden">
|
|
29
|
-
<% hash['children'].each do |child_name, child_hash| %>
|
|
29
|
+
<% Array(hash['children']).each do |child_name, child_hash| %>
|
|
30
30
|
<li class="list-item">
|
|
31
31
|
<div class="list-item-label">
|
|
32
32
|
<div class="list-item-name"><%= child_name %></div>
|
|
@@ -37,6 +37,13 @@
|
|
|
37
37
|
</div>
|
|
38
38
|
</li>
|
|
39
39
|
<% end %>
|
|
40
|
+
<% if (str = hash['after_children']) %>
|
|
41
|
+
<li class="list-item">
|
|
42
|
+
<div class="list-item-description">
|
|
43
|
+
<%= to_html(str) %>
|
|
44
|
+
</div>
|
|
45
|
+
</li>
|
|
46
|
+
<% end %>
|
|
40
47
|
</ul>
|
|
41
48
|
</div>
|
|
42
49
|
<% end %>
|
data/src/css/application.scss
CHANGED
|
@@ -556,7 +556,9 @@ h3 {
|
|
|
556
556
|
cursor: pointer;
|
|
557
557
|
color: var(--child-list-title-hover-color); }
|
|
558
558
|
.section-list .section-list-title-child.child-revealed {
|
|
559
|
-
border-bottom: 1px solid var(--divider-color);
|
|
559
|
+
border-bottom: 1px solid var(--divider-color);
|
|
560
|
+
width: 100%;
|
|
561
|
+
}
|
|
560
562
|
.section-list .section-list-title-child.child-revealed .svg-plus {
|
|
561
563
|
transform: rotate(45deg); }
|
|
562
564
|
.section-list .section-list-title-child .svg-plus {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rtfdoc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ccocchi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: erubi
|