You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code, the snipped at the end could be found. This behavior is not working as expected and will lead to issues following in our implementation. The intention was to document pattern groups and subgroups. We have no way to show this documentation, and also the group or subgroup will not be rendered when higher order documentation is available.
We will need a new approach to this special case.
First of all, we need to implement something similar to the pattern documentation but just for the groups and subgroups. Afterward, we need to implement a method to gather this data and place it in the correct position.
For not the code snipped will be removed in #1252 and can be implemented again.
// loadPattern.js : 55constmp=require('./markdown_parser');constmarkdown_parser=newmp();if(fileObject.ext==='.md'){try{constproposedDirectory=path.resolve(patternlab.config.paths.source.patterns,fileObject.dir,fileObject.name);constproposedDirectoryStats=fs.statSync(proposedDirectory);if(proposedDirectoryStats.isDirectory()){constsubgroupMarkdownFileContents=fs.readFileSync(proposedDirectory+'.md','utf8');constsubgroupMarkdown=markdown_parser.parse(subgroupMarkdownFileContents);constsubgroupPattern=newPattern(relPath,null,patternlab);subgroupPattern.patternSectionSubgroup=true;subgroupPattern.patternDesc=subgroupMarkdown
? subgroupMarkdown.markdown
: '';subgroupPattern.flatPatternPath=subgroupPattern.flatPatternPath+'-'+subgroupPattern.fileName;subgroupPattern.isPattern=false;subgroupPattern.engine=null;patternlab.subgroupPatterns[subgroupPattern.patternPartial]=subgroupPattern;returnsubgroupPattern;}}catch(err){// no file exists, meaning it's a pattern markdown fileif(err.code!=='ENOENT'){logger.warning(err);}}}
The text was updated successfully, but these errors were encountered:
* feat(documentation): added (sub)groups documentation again #1262
* docs(patterndocumentation): added docs for how to do the pattern subgroups documentation
* chore(docs): added another small part
* chore(demo): added a subgroups demo file
* chore(docs): updated as requested
In the code, the snipped at the end could be found. This behavior is not working as expected and will lead to issues following in our implementation. The intention was to document pattern groups and subgroups. We have no way to show this documentation, and also the group or subgroup will not be rendered when higher order documentation is available.
We will need a new approach to this special case.
First of all, we need to implement something similar to the pattern documentation but just for the groups and subgroups. Afterward, we need to implement a method to gather this data and place it in the correct position.
For not the code snipped will be removed in #1252 and can be implemented again.
The text was updated successfully, but these errors were encountered: