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`;