function injectDocumentationBlock(pattern, patternlab, isSubgroupPattern) {
    return new Pattern.createEmpty(
      {
        name: pattern.flatPatternPath,
        patternName: _.startCase(
          isSubgroupPattern ? pattern.patternSubgroup : pattern.patternGroup
        ),
        patternDesc: isSubgroupPattern
          ? pattern.patternSubgroupData.markdown
          : pattern.patternGroupData.markdown,
        patternPartial: `viewall-${pattern.patternGroup}-${
          isSubgroupPattern ? pattern.patternSubgroup : 'all'
        }`,
        patternSectionSubgroup: true,
        patternLink: path.join(
          isSubgroupPattern ? pattern.flatPatternPath : pattern.patternGroup,
          'index.html'
        ),
        isPattern: false,
        engine: null,
        flatPatternPath: pattern.flatPatternPath,
        isDocPattern: true,
        order: Number.MIN_SAFE_INTEGER,
      },
      patternlab
    );
  }
/**
   * For the given pattern, find or construct the view-all pattern block for the group
   * @param pattern - the pattern to derive our documentation pattern from
   * @param patternlab - global data store
   * @param isSubgroupPattern - whether or not this is a subgroupPattern or a typePattern (groupedPatterns not supported yet)
   * @returns the found or created pattern object
   */
For the given pattern, find or construct the view-all pattern block for the group
@param pattern - the pattern to derive our documentation pattern from
@param patternlab - global data store
@param isSubgroupPattern - whether or not this is a subgroupPattern or a typePattern (groupedPatterns not supported yet)
@returns the found or created pattern object
For the given pattern find or construct the view - all pattern block for the group @param pattern - the pattern to derive our documentation pattern from @param patternlab - global data store @param isSubgroupPattern - whether or not this is a subgroupPattern or a typePattern ( groupedPatterns not supported yet ) @returns the found or created pattern object
function injectDocumentationBlock(pattern, patternlab, isSubgroupPattern) {
    return new Pattern.createEmpty(
      {
        name: pattern.flatPatternPath,
        patternName: _.startCase(
          isSubgroupPattern ? pattern.patternSubgroup : pattern.patternGroup
        ),
        patternDesc: isSubgroupPattern
          ? pattern.patternSubgroupData.markdown
          : pattern.patternGroupData.markdown,
        patternPartial: `viewall-${pattern.patternGroup}-${
          isSubgroupPattern ? pattern.patternSubgroup : 'all'
        }`,
        patternSectionSubgroup: true,
        patternLink: path.join(
          isSubgroupPattern ? pattern.flatPatternPath : pattern.patternGroup,
          'index.html'
        ),
        isPattern: false,
        engine: null,
        flatPatternPath: pattern.flatPatternPath,
        isDocPattern: true,
        order: Number.MIN_SAFE_INTEGER,
      },
      patternlab
    );
  }
function injectDocumentationBlock ( pattern , patternlab , isSubgroupPattern ) { return new Pattern . createEmpty ( { name : pattern . flatPatternPath , patternName : _ . startCase ( isSubgroupPattern ? pattern . patternSubgroup : pattern . patternGroup ) , patternDesc : isSubgroupPattern ? pattern . patternSubgroupData . markdown : pattern . patternGroupData . markdown , patternPartial : ` ${ pattern . patternGroup } ${ isSubgroupPattern ? pattern . patternSubgroup : 'all' } ` , patternSectionSubgroup : true , patternLink : path . join ( isSubgroupPattern ? pattern . flatPatternPath : pattern . patternGroup , 'index.html' ) , isPattern : false , engine : null , flatPatternPath : pattern . flatPatternPath , isDocPattern : true , order : Number . MIN_SAFE_INTEGER , } , patternlab ) ; }
For the given pattern, find or construct the view-all pattern block for the group
 @param pattern - the pattern to derive our documentation pattern from
 @param patternlab - global data store
 @param isSubgroupPattern - whether or not this is a subgroupPattern or a typePattern (groupedPatterns not supported yet)
 @returns the found or created pattern object
For the given pattern find or construct the view - all pattern block for the group @param pattern - the pattern to derive our documentation pattern from @param patternlab - global data store @param isSubgroupPattern - whether or not this is a subgroupPattern or a typePattern ( groupedPatterns not supported yet ) @returns the found or created pattern object