Skip to content

Commit

Permalink
refactor: Update getDocFilePathToGithub function in links.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymousRecords committed Sep 17, 2024
1 parent 3576c9a commit cd77c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/app/helpers/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export const getDocFilePathToGithub = (item?: FlattenedNavigation): string => {
if (!filePath) {
filePath = '_index'
} else {
filePath = filePath.split('.').join('')
filePath = filePath.replace(/\//g, '.')
}

if (item.hasChildren) {
filePath = `${filePath}._index`
}

return `${BASE_URL}/docs.${filePath}.mdx`
}
}

0 comments on commit cd77c94

Please sign in to comment.