Skip to content

Commit

Permalink
fix: paths for search and edit links (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenFluin authored Sep 13, 2024
1 parent 1e608db commit 1976686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generate-search-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function walk(dir) {
}
}

walk("src/pages");
walk("src/content/docs");

//console.dir(sitemap, { maxArrayLength: null });

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/github-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function getGithubEditUrl(Astro: Readonly<AstroGlobal>) {
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`;
Expand Down

0 comments on commit 1976686

Please sign in to comment.