Skip to content

Commit 8c857a3

Browse files
authored
chore: Optimize release speed (#982)
* chore: add cn databend.md * fix: 优化release 速度
1 parent 86914e2 commit 8c857a3

File tree

1 file changed

+8
-1
lines changed
  • src/theme/MDXComponents

1 file changed

+8
-1
lines changed

src/theme/MDXComponents/A.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ function hasProtocolPrefix(str) {
77
return str.startsWith("http://") || str.startsWith("https://");
88
}
99
export default function MDXA(props) {
10+
if (props?.href?.includes("https://github.com/datafuselabs/databend/pull/")) {
11+
return <Link {...props} />;
12+
}
1013
if (hasProtocolPrefix(props?.href)) {
1114
return (
12-
<Tooltip destroyTooltipOnHide overlayClassName={styles.tooltip} title="Open in the new tab">
15+
<Tooltip
16+
destroyTooltipOnHide
17+
overlayClassName={styles.tooltip}
18+
title="Open in the new tab"
19+
>
1320
<span className={styles.linkWrap}>
1421
<a {...props} target="_blank" rel="noopener noreferrer" />
1522
<LinkSvg />

0 commit comments

Comments
 (0)