Skip to content

Commit

Permalink
feat: add quadrant alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Demian222 committed Jun 25, 2021
1 parent 4abcaa6 commit 2f3d9be
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main/js/generateMdAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@ const tplPath = path.resolve('src/main/tpl')
const alias = {
'languages-and-frameworks': 'languages-and-frameworks',
lf: 'languages-and-frameworks',
Platforms: 'Platforms',
platforms: 'Platforms',
Tools: 'Tools',
tools: 'Tools',
Techniques: 'Techniques',
techniques: 'Techniques',
platforms: 'platforms',
tools: 'tools',
techniques: 'techniques',
}

export function generatePath({ name, quadrant, tempDirResolved }) {
const entryMdName = name + '.md'
return path.join(
tempDirResolved,
'/entries',
alias[quadrant].toLowerCase(),
alias[quadrant.toLowerCase(),
entryMdName,
)
}
Expand Down

0 comments on commit 2f3d9be

Please sign in to comment.