We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa5c063 commit 696f3edCopy full SHA for 696f3ed
src/components/header/Header.astro
@@ -10,13 +10,14 @@ export interface Props {
10
}
11
12
const { lang, name, displayName, nolink } = Astro.props;
13
-const dest = `${lang}.headers.${name}`;
+const langPrefix = lang == "C" ? "/c" : "/cpp";
14
+const src = `${langPrefix}/library/headers/${name}`;
15
16
const extension = lang === "C" ? ".h" : "";
17
const text = displayName ?? `<${name}${extension}>`;
18
19
const As = nolink ? Fragment : DocLink;
-const asProps = nolink ? {} : { dest };
20
+const asProps = nolink ? {} : { src };
21
---
22
23
<As {...asProps}>
0 commit comments