Skip to content

Commit

Permalink
fix: update document edit page links (#2320)
Browse files Browse the repository at this point in the history
* refactor: Update getDocFilePathToGithub function in links.ts

* chore: prettify

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
  • Loading branch information
anonymousRecords and joshuaellis authored Sep 24, 2024
1 parent 3576c9a commit f7fd4bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/app/helpers/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const getDocFilePathToGithub = (item?: FlattenedNavigation): string => {
if (!filePath) {
filePath = '_index'
} else {
filePath = filePath.split('.').join('')
filePath = filePath.replace(/\//g, '.')
}

if (item.hasChildren) {
Expand Down

0 comments on commit f7fd4bb

Please sign in to comment.