Skip to content

Commit 8f6637e

Browse files
Copilotnixel2007
andcommitted
Remove fallback logic from editLink pattern, just return empty string
Co-authored-by: nixel2007 <1132840+nixel2007@users.noreply.github.com>
1 parent 6ecddc8 commit 8f6637e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

.vitepress/config.mts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -199,20 +199,6 @@ export default defineConfig({
199199
}
200200
}
201201

202-
// Fallback to old logic for paths that don't have repo info
203-
const [_, repoName, ...rest] = relativePath.split('/')
204-
const repoNamePath = repoName?.replace(/\d+-/g, '') || ''
205-
const restPath = rest.join('/')
206-
const orgName = organization || 'autumn-library';
207-
208-
if (relativePath.startsWith('api/')) {
209-
return `https://github.com/${orgName}/${repoNamePath}/edit/master/docs/api/${restPath}`;
210-
}
211-
212-
if (relativePath.startsWith('products/')) {
213-
return `https://github.com/${orgName}/${repoNamePath}/edit/master/docs/product/${restPath}`;
214-
}
215-
216202
return ''
217203
}
218204
},

0 commit comments

Comments
 (0)