Skip to content

Commit 4bbba7e

Browse files
committed
chore: rename DocLink's prop src to dest
1 parent 2c5cff0 commit 4bbba7e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/DocLink.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
import { isLinkMissing, normalizeLink } from "../lib/doc-link";
33
44
interface Props {
5-
src: string;
5+
dest: string;
66
section?: string;
77
}
88
9-
const { src, section } = Astro.props;
9+
const { dest, section } = Astro.props;
1010
11-
const missing = await isLinkMissing(src);
12-
const link = normalizeLink(src) + (section ? "#" + section : "");
11+
const missing = await isLinkMissing(dest);
12+
const link = normalizeLink(dest) + (section ? "#" + section : "");
1313
---
1414

1515
{
1616
missing ? (
17-
<span class="doc-link missing" title={`${src} (missing)`}>
17+
<span class="doc-link missing" title={`${dest} (missing)`}>
1818
<slot />
1919
</span>
2020
) : (
21-
<a class="doc-link" href={link} title={src}>
21+
<a class="doc-link" href={link} title={dest}>
2222
<slot />
2323
</a>
2424
)

0 commit comments

Comments
 (0)