Skip to content

Commit efedc1c

Browse files
Merge pull request #211 from NaverPayDev/feature/118
[#118] fix: docs 페이지 편집 링크 404 문제 수정
2 parents 058d7b7 + c5b125c commit efedc1c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/docs/docusaurus.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ const config: Config = {
4141
{
4242
docs: {
4343
sidebarPath: './sidebars.ts',
44-
editUrl: (params) => `https://github.com/NaverPayDev/pie/tree/main/packages/${params.docPath}`,
44+
editUrl: (params) => {
45+
const docPath = params.docPath.startsWith('@naverpay/')
46+
? params.docPath.replace('@naverpay/', '')
47+
: params.docPath
48+
return `https://github.com/NaverPayDev/pie/blob/main/packages/${docPath}`
49+
},
4550
},
4651
blog: {
4752
showReadingTime: true,

0 commit comments

Comments
 (0)