Update @theme/components/SourceLink.tsx

Co-authored-by: Maria Shodunke <maria-robobug@users.noreply.github.com>
This commit is contained in:
oeggert
2026-06-11 09:59:22 -07:00
committed by GitHub
parent 70365f0928
commit cf46cd0ea2

View File

@@ -15,7 +15,7 @@ function buildSourceHref(path: string, release: string): string {
// SourceLink for rendered page link
export function sourceLinkForLlms(node: Node): string {
const release = process.env.PUBLIC_XRPLD_RELEASE || ''
return `[Source] ${buildSourceHref(node.attributes.path, release)}`
return `[Source](${buildSourceHref(node.attributes.path, release)})`
}
export default function SourceLink(props: {