From 1976686a0aacbe13036fe857d80d0f7290e2bcdb Mon Sep 17 00:00:00 2001 From: Stephen Fluin Date: Fri, 13 Sep 2024 12:36:52 -0500 Subject: [PATCH] fix: paths for search and edit links (#1162) --- generate-search-index.js | 2 +- src/scripts/github-edit.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generate-search-index.js b/generate-search-index.js index c2952d630..d0894f177 100644 --- a/generate-search-index.js +++ b/generate-search-index.js @@ -112,7 +112,7 @@ function walk(dir) { } } -walk("src/pages"); +walk("src/content/docs"); //console.dir(sitemap, { maxArrayLength: null }); diff --git a/src/scripts/github-edit.ts b/src/scripts/github-edit.ts index a73410059..19c2e411e 100644 --- a/src/scripts/github-edit.ts +++ b/src/scripts/github-edit.ts @@ -8,7 +8,7 @@ export function getGithubEditUrl(Astro: Readonly) { if (currentPage == "/") { return `https://github.com/axelarnetwork/axelar-docs/blob/main/src/pages/index.astro`; } - return `https://github.com/axelarnetwork/axelar-docs/edit/main/src/pages${currentPage.replace( + return `https://github.com/axelarnetwork/axelar-docs/edit/main/src/content/docs/${currentPage.replace( /\/$/, "" )}.mdx`;