summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorGravatar JuanM04 <me@juanm04.com> 2021-07-16 07:59:46 -0300
committerGravatar GitHub <noreply@github.com> 2021-07-16 06:59:46 -0400
commitf64ff85b267b732dc2598bb9c80418622e435cfb (patch)
tree06a3c7df4647f36c1354a4873595d325cade9379 /docs/src
parent36f75b9d53c33b1f97de54770a8ff51e4dd37a45 (diff)
downloadastro-f64ff85b267b732dc2598bb9c80418622e435cfb.tar.gz
astro-f64ff85b267b732dc2598bb9c80418622e435cfb.tar.zst
astro-f64ff85b267b732dc2598bb9c80418622e435cfb.zip
Changed URLs to match the release (#711)
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/components/AvatarList.astro6
-rw-r--r--docs/src/layouts/Main.astro2
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/src/components/AvatarList.astro b/docs/src/components/AvatarList.astro
index 09fc089b9..589e296b9 100644
--- a/docs/src/components/AvatarList.astro
+++ b/docs/src/components/AvatarList.astro
@@ -1,8 +1,8 @@
---
// fetch all commits for just this page's path
-const { path } = Astro.props;
-const url = `https://api.github.com/repos/snowpackjs/astro-docs/commits?path=${path}`;
-const commitsURL = `https://github.com/snowpackjs/astro-docs/commits/main/${path}`;
+const path = "docs/" + Astro.props.path;
+const url = `https://api.github.com/repos/snowpackjs/astro/commits?path=${path}`;
+const commitsURL = `https://github.com/snowpackjs/astro/commits/main/${path}`;
async function getCommits(url) {
try {
diff --git a/docs/src/layouts/Main.astro b/docs/src/layouts/Main.astro
index c389db281..396e2b0b3 100644
--- a/docs/src/layouts/Main.astro
+++ b/docs/src/layouts/Main.astro
@@ -9,7 +9,7 @@ const { content } = Astro.props;
const headers = content?.astro?.headers;
const currentPage = Astro.request.url.pathname;
const currentFile = currentPage === '/' ? 'src/pages/index.md' : `src/pages${currentPage.replace(/\/$/, "")}.md`;
-const githubEditUrl = `https://github.com/snowpackjs/astro-docs/blob/main/${currentFile}`;
+const githubEditUrl = `https://github.com/snowpackjs/astro/blob/main/docs/${currentFile}`;
---
<html lang="{content.lang ?? 'en-us'}">