Skip to content

Commit

Permalink
feat(clayui.com): Intercept the API and Markup files and format their…
Browse files Browse the repository at this point in the history
… names so they properly generate tabs
  • Loading branch information
kresimir-coko committed Sep 16, 2020
1 parent ba5b459 commit c4e97b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clayui.com/gatsby/onCreateNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ module.exports = exports.onCreateNode = ({actions, getNode, node}) => {
'@clayui/',
''
)}.html`;
} else {
} else if (
!relativePath.includes('api-') ||
!relativePath.includes('markup-')
) {
slug = `docs/components/${fileName
.replace('_', '-')
.toLowerCase()}.html`;
Expand Down

0 comments on commit c4e97b2

Please sign in to comment.