Skip to content

Commit b0ba492

Browse files
authored
refactor: replace standard <a> tags with Docusaurus <Link> (#366)
1 parent a8d8388 commit b0ba492

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/theme/DocItem/Layout/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import DocItemContent from '@theme/DocItem/Content'
1212
import DocBreadcrumbs from '@theme/DocBreadcrumbs'
1313
import ContentVisibility from '@theme/ContentVisibility'
1414
import styles from './styles.module.css'
15+
import Link from '@docusaurus/Link'
16+
1517
/**
1618
* Decide if the toc should be rendered, on mobile or desktop viewports
1719
*/
@@ -53,7 +55,7 @@ export default function DocItemLayout({ children }) {
5355
<div className="alert alert--warning margin-top--md margin-bottom--md" role="alert">
5456
<p>Version 3 and before of Fastify are no longer maintained.</p>
5557
For information about support options for end-of-life versions, see the{' '}
56-
<a href="/docs/latest/Reference/LTS">Long Term Support</a> page.
58+
<Link to="/docs/latest/Reference/LTS">Long Term Support</Link> page.
5759
</div>
5860
)}
5961

src/theme/DocVersionBanner/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function DocVersionBannerEnabled({ className, versionMetadata }) {
103103
{versionNumber < 4 && (
104104
<div className="margin-top--md">
105105
For information about support options for end-of-life versions, see the{' '}
106-
<a href="/docs/latest/Reference/LTS">Long Term Support</a> page.
106+
<Link to="/docs/latest/Reference/LTS">Long Term Support</Link> page.
107107
</div>
108108
)}
109109
</div>

0 commit comments

Comments
 (0)