Skip to content

Commit

Permalink
Update troubleshooting-structure-adjustment.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAntunesCosta committed Nov 11, 2024
1 parent 071a1a9 commit ae620ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs-utils/troubleshooting-structure-adjustment.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ function moveAllTags(folderPath) {
dir = `${folderPath}/${dir}`
console.log(dir)
if (fs.statSync(dir).isFile() && (dir.endsWith('.md') || dir.endsWith('.mdx'))) {
console.log('FILE')
moveArticleTagsToFrontmatter(dir)
} else {
console.log('FOLDER')
moveAllTags(dir)
}
}
Expand Down

0 comments on commit ae620ac

Please sign in to comment.