aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com>2024-05-29 21:37:09 +0900
committer安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com>2024-05-29 21:37:09 +0900
commit6b81059ca5240769dd2913783881903ddcbb413a (patch)
tree529cf2fbbc7e6efd700fd777e4aa99bde38d8e7d
parent035f7a766239287102a463d23ffca903934a3d70 (diff)
Broken anchorsの警告が出ないよう修正
-rw-r--r--src/components/KaigirokuDougaLink.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/KaigirokuDougaLink.js b/src/components/KaigirokuDougaLink.js
index 3d07b778..e6724392 100644
--- a/src/components/KaigirokuDougaLink.js
+++ b/src/components/KaigirokuDougaLink.js
@@ -1,11 +1,12 @@
import React from 'react';
import ExternalLink from './ExternalLink.js';
import headingStyles from '@docusaurus/theme-classic/lib/theme/Heading/styles.module.css';
+import useBrokenLinks from '@docusaurus/useBrokenLinks';
export default function KaigirokuDougaLink({kaigirokuHref, dougaHref}) {
let mada = kaigirokuHref ? "" : "(まだ公開されていません)";
let kaigiroku = <ExternalLink href={kaigirokuHref}>📄 会議録{mada}</ExternalLink>
-
+ useBrokenLinks().collectAnchor("kaigiroku");
return (
<div className={headingStyles.anchorWithStickyNavbar} id="kaigiroku">
{kaigiroku}