Skip to content

Commit b3dbda4

Browse files
committed
chore: comment out local page check in createRelativeLink function
1 parent 95b2121 commit b3dbda4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/mdx.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,14 @@ export function createRelativeLink(
248248
let repositoryUrl = `${repository.repository_url}/blob/${version.github_branch || version.version}/${href}`;
249249
// console.debug("### Creating relative link for:", href, repositoryUrl);
250250

251-
if (isLocal) {
251+
// if (isLocal) {
252252
// 1. limited_files take precedence
253253
let localPage = source.getPage([repository.repo, version.version, href.replace(/\.mdx?$/, "").toLowerCase()])
254254
if (!localPage &&repository.docsPath) {
255255
// 2. search in the docsPath
256256
// (replace leading 'repository.docsPath' if any)
257257
localPage = source.getPage([repository.repo, version.version, href.replace(new RegExp(`^${repository.docsPath}/?`), "").replace(/\.mdx?$/, "").toLowerCase()])
258-
}
258+
// }
259259

260260
if (localPage) {
261261
console.debug("### Found local page for link:", href, "->", localPage.url);

0 commit comments

Comments
 (0)