File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/PatternLab/PatternData/Exporters Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ public function run($type = "", $subtype = "") {
48
48
49
49
foreach ($ this ->store as $ patternStoreKey => $ patternStoreData ) {
50
50
51
+ // Docs for patternTypes (i.e. `atoms.md`), don't have these rules and need them to pass below conditionals
52
+ if (
53
+ !isset ($ patternStoreData ['depth ' ])
54
+ && !isset ($ patternStoreData ['hidden ' ])
55
+ && !isset ($ patternStoreData ['noviewall ' ])
56
+ ) {
57
+ $ patternStoreData ["hidden " ] = false ;
58
+ $ patternStoreData ["noviewall " ] = false ;
59
+ $ patternStoreData ["depth " ] = 0 ;
60
+ }
51
61
$ canShow = isset ($ patternStoreData ["hidden " ]) && (!$ patternStoreData ["hidden " ]) && (!$ patternStoreData ["noviewall " ]);
52
62
53
63
if (($ patternStoreData ["category " ] == "pattern " ) && $ canShow && ($ patternStoreData ["depth " ] > 1 ) && (!in_array ($ patternStoreData ["type " ],$ this ->styleGuideExcludes ))) {
@@ -104,7 +114,7 @@ public function run($type = "", $subtype = "") {
104
114
105
115
}
106
116
107
- } else if (($ patternStoreData ["category " ] == "pattern " ) && $ canShow &&(isset ($ patternStoreData ["full " ]) && ($ type === $ patternStoreData ["full " ] || $ type === "" ))) {
117
+ } else if (($ patternStoreData ["category " ] == "pattern " ) && $ canShow && (isset ($ patternStoreData ["full " ]) && ($ type === $ patternStoreData ["full " ] || $ type === "" ))) {
108
118
// This is for `patternType` docs. Given this structure:
109
119
// - _patterns/
110
120
// - atoms/
You can’t perform that action at this time.
0 commit comments