From 6b81059ca5240769dd2913783881903ddcbb413a Mon Sep 17 00:00:00 2001 From: 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> Date: Wed, 29 May 2024 21:37:09 +0900 Subject: Broken anchorsの警告が出ないよう修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/KaigirokuDougaLink.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = 📄 会議録{mada} - + useBrokenLinks().collectAnchor("kaigiroku"); return (
{kaigiroku} -- cgit v1.2.3-54-g00ecf