playbook_ui 13.9.0.pre.alpha.play845allkitsbytypes1266 → 13.9.0.pre.alpha.play845allkitsbytypes1268
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/playbook/pb_doc_helper.rb +14 -15
- data/lib/playbook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1459debce41784ec755eba1ac6fdf18521ee10f8dcc805dc7f2b6a0274472c8b
|
4
|
+
data.tar.gz: 9adcfdaa074bb0704240e6c7810c2d70333b8d7d8e2beb5be2e22eab3eab0b46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d5de57e6df1a04a6fb72d129ac9a88c0b6e92cc7ca3662f7da4655457e8eb35d13a42e480abd6e420a8de2455236630122088dd5973870950437a2bee3e2db1
|
7
|
+
data.tar.gz: 97b1ea42c177dd4b04d5f613b059cdf2c46e148ca69e68ce2430a5bd03dc9afb44760394ccceb8be8d4dd30af10a9993332f0db52ab5caf4a2ff76045e9bea66
|
@@ -7,21 +7,20 @@ module Playbook
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def pb_kit(kit: "", type: "rails", show_code: true, limit_examples: false, dark_mode: false)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
end.join.yield_self(&method(:raw))
|
10
|
+
unless type == "swift"
|
11
|
+
examples = pb_doc_kit_examples(kit, type)
|
12
|
+
examples = examples.first(1) if limit_examples
|
13
|
+
examples.map do |example|
|
14
|
+
pb_rails "docs/kit_example", props: {
|
15
|
+
kit: kit,
|
16
|
+
example_title: example.values.first,
|
17
|
+
example_key: example.keys.first,
|
18
|
+
show_code: show_code,
|
19
|
+
type: type,
|
20
|
+
dark: dark_mode,
|
21
|
+
}
|
22
|
+
end.join.yield_self(&method(:raw))
|
23
|
+
end
|
25
24
|
end
|
26
25
|
|
27
26
|
# Deal with lists of kits, used in Playbook doc and Externally
|
data/lib/playbook/version.rb
CHANGED