diff options
Diffstat (limited to 'build/blog')
17 files changed, 145 insertions, 145 deletions
diff --git a/build/blog/2024/01/26/new-flat-blog/index.html b/build/blog/2024/01/26/new-flat-blog/index.html Binary files differindex 0fea27ab..5ea4fc41 100644 --- a/build/blog/2024/01/26/new-flat-blog/index.html +++ b/build/blog/2024/01/26/new-flat-blog/index.html diff --git a/build/blog/2024/01/27/docusaurus-admonition-heading-toc/index.html b/build/blog/2024/01/27/docusaurus-admonition-heading-toc/index.html Binary files differindex 72f6183a..677e5e2d 100644 --- a/build/blog/2024/01/27/docusaurus-admonition-heading-toc/index.html +++ b/build/blog/2024/01/27/docusaurus-admonition-heading-toc/index.html diff --git a/build/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/index.html b/build/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/index.html Binary files differindex d92f3b77..567e2833 100644 --- a/build/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/index.html +++ b/build/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/index.html diff --git a/build/blog/2024/03/23/aiki-kouen-opening-ceremony/index.html b/build/blog/2024/03/23/aiki-kouen-opening-ceremony/index.html Binary files differindex 0e2b0aae..bde1d528 100644 --- a/build/blog/2024/03/23/aiki-kouen-opening-ceremony/index.html +++ b/build/blog/2024/03/23/aiki-kouen-opening-ceremony/index.html diff --git a/build/blog/archive/index.html b/build/blog/archive/index.html Binary files differindex 0c764bba..f11da0ee 100644 --- a/build/blog/archive/index.html +++ b/build/blog/archive/index.html diff --git a/build/blog/atom.xml b/build/blog/atom.xml index ec6bc000..bfadfcdf 100644 --- a/build/blog/atom.xml +++ b/build/blog/atom.xml @@ -1,29 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <id>https://yasutakeyohei.com/docs/blog</id> + <id>https://yasutakeyohei.com/docs/blog/</id> <title>東京都小平市議・安竹洋平のまとめ Blog</title> <updated>2024-03-23T00:00:00.000Z</updated> <generator>https://github.com/jpmonette/feed</generator> - <link rel="alternate" href="https://yasutakeyohei.com/docs/blog"/> + <link rel="alternate" href="https://yasutakeyohei.com/docs/blog/"/> <subtitle>東京都小平市議・安竹洋平のまとめ Blog</subtitle> <icon>https://yasutakeyohei.com/docs/img/favicon.ico</icon> <entry> <title type="html"><![CDATA[小平市立合気公園・開園セレモニー]]></title> - <id>https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony</id> - <link href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony"/> + <id>https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/</id> + <link href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/"/> <updated>2024-03-23T00:00:00.000Z</updated> <summary type="html"><![CDATA[小平市上水南町二丁目の佐川幸義邸跡地に新設された合気公園の開園セレモニーに参加しました]]></summary> <content type="html"><![CDATA[<p>小平市上水南町二丁目の佐川幸義邸跡地に新設された小平市立合気公園がついに開園しました!</p> <p>令和6年3月23日(土)午前10時から現地で行われた開園セレモニーに参加しましたので、写真と動画で様子をお知らせします。</p> <!-- --> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="これまでの経緯">これまでの経緯<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%81%93%E3%82%8C%E3%81%BE%E3%81%A7%E3%81%AE%E7%B5%8C%E7%B7%AF" class="hash-link" aria-label="これまでの経緯 への直接リンク" title="これまでの経緯 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="これまでの経緯">これまでの経緯<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%81%93%E3%82%8C%E3%81%BE%E3%81%A7%E3%81%AE%E7%B5%8C%E7%B7%AF" class="hash-link" aria-label="これまでの経緯 への直接リンク" title="これまでの経緯 への直接リンク"></a></h2> <p>合気公園に関してこれまでの経緯はこちら↓にまとめています。</p> <ul> <li><a href="https://sagawa-aiki-park.com/keii-2/" target="_blank" rel="noopener noreferrer">旧佐川邸の公園化を考える会・これまでの経緯(2)</a></li> <li><a href="https://yasutakeyohei.com/books/reiwa3/20210219_teireikai/seigan-5.html" target="_blank" rel="noopener noreferrer">請願第5号 旧佐川邸の土地を売らないことも含め、市民の意見を聞きながら公園整備を行うことについて</a></li> -<li><a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou">(令和6年1月31日の様子)小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備進捗状況を見てきました</a></li> +<li><a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/">(令和6年1月31日の様子)小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備進捗状況を見てきました</a></li> </ul> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="セレモニーの様子">セレモニーの様子<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%82%BB%E3%83%AC%E3%83%A2%E3%83%8B%E3%83%BC%E3%81%AE%E6%A7%98%E5%AD%90" class="hash-link" aria-label="セレモニーの様子 への直接リンク" title="セレモニーの様子 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="セレモニーの様子">セレモニーの様子<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%82%BB%E3%83%AC%E3%83%A2%E3%83%8B%E3%83%BC%E3%81%AE%E6%A7%98%E5%AD%90" class="hash-link" aria-label="セレモニーの様子 への直接リンク" title="セレモニーの様子 への直接リンク"></a></h2> <p>次のような次第で、約30分間行われました。</p> <ol> <li>開会の辞(水と緑と公園課長)</li> @@ -49,19 +49,19 @@ <p><img decoding="async" loading="lazy" alt="除幕直前" src="https://yasutakeyohei.com/docs/assets/images/kensyouhi-jomaku-1-0764be06bd27039672ee1ffedb9a3a52.jpg" width="594" height="374" class="img_ev3q"></p> <p><img decoding="async" loading="lazy" alt="除幕直後" src="https://yasutakeyohei.com/docs/assets/images/kensyouhi-jomaku-2-bb2820bb69f6856cd72e237e18b88925.jpg" width="602" height="363" class="img_ev3q"><br> <!-- -->↑市長、市議会議長、木村氏、岡江氏により、顕彰碑の除幕が行われました。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="式次第小平市">式次第(小平市)<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%BC%8F%E6%AC%A1%E7%AC%AC%E5%B0%8F%E5%B9%B3%E5%B8%82" class="hash-link" aria-label="式次第(小平市) への直接リンク" title="式次第(小平市) への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="式次第小平市">式次第(小平市)<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%BC%8F%E6%AC%A1%E7%AC%AC%E5%B0%8F%E5%B9%B3%E5%B8%82" class="hash-link" aria-label="式次第(小平市) への直接リンク" title="式次第(小平市) への直接リンク"></a></h3> <iframe src="/docs/assets/files/R6_0323_kodairashiritu-aikikouen-sagawa-yukuyoshi-tei-atochi-kaien-ceremony-shidai-552ecdbb4551386e376f07dd38ddee65.pdf#toolbar=1&navpanes=0" class="tukokusyo"></iframe> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="そのほかの写真">そのほかの写真<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%81%9D%E3%81%AE%E3%81%BB%E3%81%8B%E3%81%AE%E5%86%99%E7%9C%9F" class="hash-link" aria-label="そのほかの写真 への直接リンク" title="そのほかの写真 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="そのほかの写真">そのほかの写真<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%81%9D%E3%81%AE%E3%81%BB%E3%81%8B%E3%81%AE%E5%86%99%E7%9C%9F" class="hash-link" aria-label="そのほかの写真 への直接リンク" title="そのほかの写真 への直接リンク"></a></h2> <p>次の写真と動画はセレモニー直後と3月28日(木)に撮影したものです。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="出入口">出入口<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="出入口 への直接リンク" title="出入口 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="出入口">出入口<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="出入口 への直接リンク" title="出入口 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="正面出入口" src="https://yasutakeyohei.com/docs/assets/images/syoumen-deiriguchi-993c6da7f0a6e8d5a702aac0ae706c54.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->正面出入口</p> <p><img decoding="async" loading="lazy" alt="北東側出入口" src="https://yasutakeyohei.com/docs/assets/images/hokutou-deiriguchi-0d7771b6e57c6bece71eee8bfd756597.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->北東側出入口</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="園名碑">園名碑<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%9C%92%E5%90%8D%E7%A2%91" class="hash-link" aria-label="園名碑 への直接リンク" title="園名碑 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="園名碑">園名碑<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%9C%92%E5%90%8D%E7%A2%91" class="hash-link" aria-label="園名碑 への直接リンク" title="園名碑 への直接�リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園・園名碑" src="https://yasutakeyohei.com/docs/assets/images/aiki-kouen-enmeihi-7b7eec9fb461601989a0c301d08ad1fe.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->道場に使われていた屋根瓦(鬼瓦)の一部が埋め込まれています。道場関係の方によるデザインです。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="顕彰碑">顕彰碑<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E9%A1%95%E5%BD%B0%E7%A2%91" class="hash-link" aria-label="顕彰碑 への直接リンク" title="顕彰碑 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="顕彰碑">顕彰碑<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E9%A1%95%E5%BD%B0%E7%A2%91" class="hash-link" aria-label="顕彰碑 への直接リンク" title="顕彰碑 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園・顕彰碑" src="https://yasutakeyohei.com/docs/assets/images/kensyouhi-17d2c18b534643c6cbedfcf309723e9f.jpg" width="600" height="800" class="img_ev3q"></p> <p><img decoding="async" loading="lazy" alt="合気公園・顕彰碑詳細" src="https://yasutakeyohei.com/docs/assets/images/kensyouhi-syousai-96cfd8ecd49a56680cf6e36dd22cb6fd.jpg" width="600" height="797" class="img_ev3q"></p> <blockquote> @@ -75,28 +75,28 @@ <!-- -->円満に滞り無く動じて居るのである<br> <!-- -->その調和が合氣なのである</p> </blockquote> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="日本庭園">日本庭園<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%EF%BF%BD%EF%BF%BD%E6%97%A5%E6%9C%AC%E5%BA%AD%E5%9C%92" class="hash-link" aria-label="日本庭園 への直接リンク" title="日本庭園 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="日本庭園">日本庭園<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E6%97%A5%E6%9C%AC%E5%BA%AD%E5%9C%92" class="hash-link" aria-label="日本庭園 への直接リンク" title="日本庭園 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="日本庭園(1)" src="https://yasutakeyohei.com/docs/assets/images/nihon-teien-1-cf8387f8e1a4e17848064b53b8b29418.jpg" width="800" height="600" class="img_ev3q"></p> <p><img decoding="async" loading="lazy" alt="日本庭園(2)" src="https://yasutakeyohei.com/docs/assets/images/nihon-teien-2-642c0d47f2360e012602791367e3bfba.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->早くも子どもたちが石に上って遊んでいました😍</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="道場跡地横にあるベンチ">道場跡地横にあるベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E9%81%93%E5%A0%B4%E8%B7%A1%E5%9C%B0%E6%A8%AA%E3%81%AB%E3%81%82%E3%82%8B%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="道場跡地横にあるベンチ への直接リンク" title="道場跡地横にあるベンチ への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="道場跡地横にあるベンチ">道場跡地横にあるベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E9%81%93%E5%A0%B4%E8%B7%A1%E5%9C%B0%E6%A8%AA%E3%81%AB%E3%81%82%E3%82%8B%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="道場跡地横にあるベンチ への直接リンク" title="道場跡地横にあるベンチ への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="道場跡地横のベンチ" src="https://yasutakeyohei.com/docs/assets/images/bench-19b176fdab1dce41a21a77fd28930c57.jpg" width="600" height="800" class="img_ev3q"><br> <!-- -->緑色に舗装された部分が道場跡地です。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="テーブル">テーブル<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB" class="hash-link" aria-label="テーブル への直接リンク" title="テーブル への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="テーブル">テーブル<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB" class="hash-link" aria-label="テーブル への直接リンク" title="テーブル への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="ベンチとテーブル" src="https://yasutakeyohei.com/docs/assets/images/bench-table-5376fa2f30e91288351c9d2398d657c9.jpg" width="600" height="800" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="パーゴラとベンチ">パーゴラとベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%83%91%E3%83%BC%E3%82%B4%E3%83%A9%E3%81%A8%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="パーゴラとベンチ への直接リンク" title="パーゴラとベンチ への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="パーゴラとベンチ">パーゴラとベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%83%91%E3%83%BC%E3%82%B4%E3%83%A9%E3%81%A8%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="パーゴラとベンチ への直接リンク" title="パーゴラとベンチ への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="パーゴラとベンチ" src="https://yasutakeyohei.com/docs/assets/images/pergola-bench-6bad09d18fc0f86074227af9f10ec229.jpg" width="1976" height="1052" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み">水飲み<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E6%B0%B4%E9%A3%B2%E3%81%BF" class="hash-link" aria-label="水飲み への直接リンク" title="水飲み への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み">水飲み<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E6%B0%B4%E9%A3%B2%E3%81%BF" class="hash-link" aria-label="水飲み への直接リンク" title="水飲み への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="水飲み" src="https://yasutakeyohei.com/docs/assets/images/mizunomi-6861b2b943081670f6dda518b9987a97.jpg" width="800" height="600" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="南西出入口への通路">南西出入口への通路<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%8D%97%E8%A5%BF%E5%87%BA%E5%85%A5%E5%8F%A3%E3%81%B8%E3%81%AE%E9%80%9A%E8%B7%AF" class="hash-link" aria-label="南西出入口への通路 への直接リンク" title="南西出入口への通路 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="南西出入口への通路">南西出入口への通路<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%8D%97%E8%A5%BF%E5%87%BA%E5%85%A5%E5%8F%A3%E3%81%B8%E3%81%AE%E9%80%9A%E8%B7%AF" class="hash-link" aria-label="南西出入口への通路 への直接リンク" title="南西出入口への通路 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="南西出入口への通路" src="https://yasutakeyohei.com/docs/assets/images/nansei-tuuro-f07e1f02537a2968c3e2a0525860c041.jpg" width="800" height="1067" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="看板">看板<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E7%9C%8B%E6%9D%BF" class="hash-link" aria-label="看板 への直接リンク" title="看板 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="看板">看板<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E7%9C%8B%E6%9D%BF" class="hash-link" aria-label="看板 への直接リンク" title="看板 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="公園の立て看板" src="https://yasutakeyohei.com/docs/assets/images/kanban-e593b20cd1889c5c83b5b2d98e3fa6e0.jpg" width="721" height="573" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="売却予定地">売却予定地<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0" class="hash-link" aria-label="売却予定地 への直接リンク" title="売却予定地 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="売却予定地">売却予定地<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0" class="hash-link" aria-label="売却予定地 への直接リンク" title="売却予定地 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="売却予定地" src="https://yasutakeyohei.com/docs/assets/images/urichi-ec052ff93ee9dcc44c923248d5cdea65.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->佐川幸義氏のご遺族から土地約1,300㎡と現金約3,000万円をご遺贈いただき、さらにふるさと納税で小平市として過去最多の約1,600万円ものご寄附をいただきました。ありがとうございました。それでもなお整備費用として約2千万円が不足しているという理由から、小林洋子市政である小平市は1区画を売却するとしました。</p> <p>路線価は約21万円/㎡ですので、土地の評価額は約2.7億円となります。合計で優に3億円もの寄附をいただいたことになります。また市民と市が理想的な形での協働ができたり、ふるさと納税で歴代記録を更新している画期的な事業だったわけですから、最後は市に残りの整備費用を出してもらいたかったところです。残念ですがこの1区画は令和6年度中に売却予定です。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動画">動画<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%8B%95%E7%94%BB" class="hash-link" aria-label="動画 への直接リンク" title="動画 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動画">動画<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%8B%95%E7%94%BB" class="hash-link" aria-label="動画 への直接リンク" title="動画 への直接リンク"></a></h2> <p>Xに投稿した動画をご覧ください。</p> <!-- --> <!-- --> @@ -115,72 +115,72 @@ </entry> <entry> <title type="html"><![CDATA[合気公園の整備進捗状況]]></title> - <id>https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou</id> - <link href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou"/> + <id>https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/</id> + <link href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/"/> <updated>2024-01-31T00:00:00.000Z</updated> <summary type="html"><![CDATA[小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備進捗状況を見てきました]]></summary> <content type="html"><![CDATA[<p>小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備状況を見てきましたので、写真と動画で現在の様子をお知らせします。</p> <p>順調に進んでいるようですね😊</p> <!-- --> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="これまでの経緯">これまでの経緯<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E3%81%93%E3%82%8C%E3%81%BE%E3%81%A7%E3%81%AE%E7%B5%8C%E7%B7%AF" class="hash-link" aria-label="これまでの経緯 への直接リンク" title="これまでの経緯 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="これまでの経緯">これまでの経緯<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E3%81%93%E3%82%8C%E3%81%BE%E3%81%A7%E3%81%AE%E7%B5%8C%E7%B7%AF" class="hash-link" aria-label="これまでの経緯 への直接リンク" title="これまでの経緯 への直接リンク"></a></h2> <p>合気公園に関してこれまでの経緯はこちら↓にまとめています。</p> <ul> <li><a href="https://sagawa-aiki-park.com/keii-2/" target="_blank" rel="noopener noreferrer">旧佐川邸の公園化を考える会・これまでの経緯(2)</a></li> <li><a href="https://yasutakeyohei.com/books/reiwa3/20210219_teireikai/seigan-5.html" target="_blank" rel="noopener noreferrer">請願第5号 旧佐川邸の土地を売らないことも含め、市民の意見を聞きながら公園整備を行うことについて</a></li> </ul> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="市民による公園整備案">市民による公園整備案<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%B8%82%E6%B0%91%E3%81%AB%E3%82%88%E3%82%8B%E5%85%AC%E5%9C%92%E6%95%B4%E5%82%99%E6%A1%88" class="hash-link" aria-label="市民による公園整備案 への直接リンク" title="市民による公園整備案 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="市民による公園整備案">市民による公園整備案<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%B8%82%E6%B0%91%E3%81%AB%E3%82%88%E3%82%8B%E5%85%AC%E5%9C%92%E6%95%B4%E5%82%99%E6%A1%88" class="hash-link" aria-label="市民による公園整備案 への直接リンク" title="市民による公園整備案 への直接リンク"></a></h3> <p>旧佐川邸の公園化を考える会が市に提出した公園計画案はこちら↓(<a href="https://sagawa-aiki-park.com/about-landscape-designer-suzuki-ryou/" target="_blank" rel="noopener noreferrer">ランドスケープデザイナー・鈴木綾氏</a>による)</p> <p><img decoding="async" loading="lazy" alt="旧佐川邸の公園化を考える会が市に提出した合気公園計画案" src="https://yasutakeyohei.com/docs/assets/images/aiki-kouen-simin-plan-48b76a337e6c5dfd8943e884a2f9f048.jpg" width="1147" height="796" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="市の整備イメージ案">市の整備イメージ案<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%B8%82%E3%81%AE%E6%95%B4%E5%82%99%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%E6%A1%88" class="hash-link" aria-label="市の整備イメージ案 への直接リンク" title="市の整備イメージ案 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="市の整備イメージ案">市の整備イメージ案<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%B8%82%E3%81%AE%E6%95%B4%E5%82%99%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%E6%A1%88" class="hash-link" aria-label="市の整備イメージ案 への直接リンク" title="市の整備イメージ案 への直接リンク"></a></h3> <p>上記の提案を受けて市が令和5年5月に提示した整備イメージ案がこちら↓</p> <p><img decoding="async" loading="lazy" alt="市民による計画案を受けて小平市水と緑と公園課が提示した合気公園整備イメージ案" src="https://yasutakeyohei.com/docs/assets/images/aiki-kouen-si-plan-129ef71b08ef22635cbf3182bd928a02.png" width="1110" height="918" class="img_ev3q"></p> <p>この整備イメージに基づいて整備が進んでいます。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="写真">写真<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%86%99%E7%9C%9F" class="hash-link" aria-label="写真 への直接リンク" title="写真 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="写真">写真<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%86%99%E7%9C%9F" class="hash-link" aria-label="写真 への直接リンク" title="写真 への直接リンク"></a></h2> <p>次の写真と動画は令和6年1月30日(火)に撮影したものです。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="お知らせ">お知らせ<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B" class="hash-link" aria-label="お知らせ への直接リンク" title="お知らせ への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="お知らせ">お知らせ<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B" class="hash-link" aria-label="お知らせ への直接リンク" title="お知らせ への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・お知らせ" src="https://yasutakeyohei.com/docs/assets/images/IMG_1825-64c4b9866c80fe0abbb0bf2e1fe1ebb9.jpg" width="551" height="542" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="野外卓顕彰碑背なしベンチ">野外卓・顕彰碑・背なしベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E9%87%8E%E5%A4%96%E5%8D%93%E9%A1%95%E5%BD%B0%E7%A2%91%E8%83%8C%E3%81%AA%E3%81%97%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="野外卓・顕彰碑・背なしベンチ への直接リンク" title="野外卓・顕彰碑・背なしベンチ への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="野外卓顕彰碑背なしベンチ">野外卓・顕彰碑・背なしベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E9%87%8E%E5%A4%96%E5%8D%93%E9%A1%95%E5%BD%B0%E7%A2%91%E8%83%8C%E3%81%AA%E3%81%97%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="野外卓・顕彰碑・背なしベンチ への直接リンク" title="野外卓・顕彰碑・背なしベンチ への直接リンク"></a></h3> <p>養生されている?道場跡の部分が見えます。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・野外卓・顕彰碑・背なしベンチ" src="https://yasutakeyohei.com/docs/assets/images/IMG_1833-b7ef33a610457fe1d526461184a41f08.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="パーゴラ顕彰碑">パーゴラ・顕彰碑<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E3%83%91%E3%83%BC%E3%82%B4%E3%83%A9%E9%A1%95%E5%BD%B0%E7%A2%91" class="hash-link" aria-label="パーゴラ・顕彰碑 への直接リンク" title="パーゴラ・顕彰碑 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="パーゴラ顕彰碑">パーゴラ・顕彰碑<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E3%83%91%E3%83%BC%E3%82%B4%E3%83%A9%E9%A1%95%E5%BD%B0%E7%A2%91" class="hash-link" aria-label="パーゴラ・顕彰碑 への直接リンク" title="パーゴラ・顕彰碑 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・パーゴラ・顕彰碑" src="https://yasutakeyohei.com/docs/assets/images/IMG_1835-cfa4076eb29b2b8cc0d8874943d80d73.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="メッシュフェンスブロック">メッシュフェンス・ブロック<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E3%83%A1%E3%83%83%E3%82%B7%E3%83%A5%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF" class="hash-link" aria-label="メッシュフェンス・ブロック への直接リンク" title="メッシュフェンス・ブロック への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="メッシュフェンスブロック">メッシュフェンス・ブロック<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E3%83%A1%E3%83%83%E3%82%B7%E3%83%A5%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF" class="hash-link" aria-label="メッシュフェンス・ブロック への直接リンク" title="メッシュフェンス・ブロック への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・メッシュフェンス・ブロック" src="https://yasutakeyohei.com/docs/assets/images/IMG_1837-f48b1fddbced472efa9120b6cc806bca.jpg" width="806" height="288" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み場東側出入口">水飲み場・東側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E6%B0%B4%E9%A3%B2%E3%81%BF%E5%A0%B4%E6%9D%B1%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="水飲み場・東側出入口 への直接リンク" title="水飲み場・東側出入口 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み場東側出入口">水飲み場・東側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E6%B0%B4%E9%A3%B2%E3%81%BF%E5%A0%B4%E6%9D%B1%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="水飲み場・東側出入口 への直接リンク" title="水飲み場・東側出入口 への直接リンク"></a></h3> <p>園名碑が少し写っています。トラックが止まっていて撮影できませんでした。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み場東側出入口-1">水飲み場・東側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E6%B0%B4%E9%A3%B2%E3%81%BF%E5%A0%B4%E6%9D%B1%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3-1" class="hash-link" aria-label="水飲み場・東側出入口 への直接リンク" title="水飲み場・東側出入口 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み場東側出入口-1">水飲み場・東側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E6%B0%B4%E9%A3%B2%E3%81%BF%E5%A0%B4%E6%9D%B1%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3-1" class="hash-link" aria-label="水飲み場・東側出入口 への直接リンク" title="水飲み場・東側出入口 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・水飲み場・東側出入口" src="https://yasutakeyohei.com/docs/assets/images/IMG_1839-ce33aef4d309c62629b14da7375ae8b0.jpg" width="806" height="510" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="庭園付近">庭園付近<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%BA%AD%E5%9C%92%E4%BB%98%E8%BF%91" class="hash-link" aria-label="庭園付近 への直接リンク" title="庭園付近 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="庭園付近">庭園付近<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%BA%AD%E5%9C%92%E4%BB%98%E8%BF%91" class="hash-link" aria-label="庭園付近 への直接リンク" title="庭園付近 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・庭園付近" src="https://yasutakeyohei.com/docs/assets/images/IMG_1840-0f3db6ae991c0f078f20fee60b8c3af1.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側出入口への道目隠しフェンス">西側出入口への道・目隠しフェンス<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3%E3%81%B8%E3%81%AE%E9%81%93%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9" class="hash-link" aria-label="西側出入口への道・目隠しフェンス への直接リンク" title="西側出入口への道・目隠�しフェンス への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側出入口への道目隠しフェンス">西側出入口への道・目隠しフェンス<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3%E3%81%B8%E3%81%AE%E9%81%93%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9" class="hash-link" aria-label="西側出入口への道・目隠しフェンス への直接リンク" title="西側出入口への道・目�隠しフェンス への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側出入口への道・目隠しフェンス" src="https://yasutakeyohei.com/docs/assets/images/IMG_1841-1213113daa3a84ea4ec1891433cef4d4.jpg" width="605" height="806" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="南東の角">南東の角<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%8D%97%E6%9D%B1%E3%81%AE%E8%A7%92" class="hash-link" aria-label="南東の角 への直接リンク" title="南東の角 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="南東の角">南東の角<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%8D%97%E6%9D%B1%E3%81%AE%E8%A7%92" class="hash-link" aria-label="南東の角 への直接リンク" title="南東の角 への直接リンク"></a></h3> <p>道路が拡幅されていることが分かります。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・南東の角" src="https://yasutakeyohei.com/docs/assets/images/IMG_1843-131de4b3c2c08bd035543f280d14c33d.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="庭園">庭園<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%BA%AD%E5%9C%92" class="hash-link" aria-label="庭園 への直接リンク" title="庭園 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="庭園">庭園<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%BA%AD%E5%9C%92" class="hash-link" aria-label="庭園 への直接リンク" title="庭園 への直接リンク"></a></h3> <p>このあたりは今後手が入るのかもですね。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・園庭" src="https://yasutakeyohei.com/docs/assets/images/IMG_1846-0fd9cb08e1b567000985b81091583cfa.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="売却予定地">売却予定地<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0" class="hash-link" aria-label="売却予定地 への直接リンク" title="売却予定地 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="売却予定地">売却予定地<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0" class="hash-link" aria-label="売却予定地 への直接リンク" title="売却予定地 への直接リンク"></a></h3> <p>奥の砂が盛ってあるところが売却予定地です。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・売却予定地(奥の砂が盛ってあるところ)" src="https://yasutakeyohei.com/docs/assets/images/IMG_1848-43e902c9da25fe7057d637033947e3c4.jpg" width="806" height="399" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="拡幅された東側道路">拡幅された東側道路<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E6%8B%A1%E5%B9%85%E3%81%95%E3%82%8C%E3%81%9F%E6%9D%B1%E5%81%B4%E9%81%93%E8%B7%AF" class="hash-link" aria-label="拡幅された東側道路 への直接リンク" title="拡幅された東��側道路 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="拡幅された東側道路">拡幅された東側道路<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E6%8B%A1%E5%B9%85%E3%81%95%E3%82%8C%E3%81%9F%E6%9D%B1%E5%81%B4%E9%81%93%E8%B7%AF" class="hash-link" aria-label="拡幅された東側道路 への直接リンク" title="拡幅された��東側道路 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・拡幅された東側道路" src="https://yasutakeyohei.com/docs/assets/images/IMG_1851-f078dce1352d522d9e6afa2735f029ae.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="道路拡幅は売却予定地前まで">道路拡幅は売却予定地前まで<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E9%81%93%E8%B7%AF%E6%8B%A1%E5%B9%85%E3%81%AF%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0%E5%89%8D%E3%81%BE%E3%81%A7" class="hash-link" aria-label="道路拡幅は売却予定地前まで への直接リンク" title="道路拡幅は売却予定地前まで への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="道路拡幅は売却予定地前まで">道路拡幅は売却予定地前まで<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E9%81%93%E8%B7%AF%E6%8B%A1%E5%B9%85%E3%81%AF%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0%E5%89%8D%E3%81%BE%E3%81%A7" class="hash-link" aria-label="道路拡幅は売却予定地前まで への直接リンク" title="道路拡幅は売却予定地前まで への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・道路拡幅は売却予定地前まで" src="https://yasutakeyohei.com/docs/assets/images/IMG_1852-dd9afeb80c05b28d253a05229a12650e.jpg" width="806" height="426" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="佐川氏が四股を踏んでいたとされる石">佐川氏が四股を踏んでいたとされる石<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E4%BD%90%E5%B7%9D%E6%B0%8F%E3%81%8C%E5%9B%9B%E8%82%A1%E3%82%92%E8%B8%8F%E3%82%93%E3%81%A7%E3%81%84%E3%81%9F%E3%81%A8%E3%81%95%E3%82%8C%E3%82%8B%E7%9F%B3" class="hash-link" aria-label="佐川氏が四股を踏んでいたとされる石 への直接リンク" title="佐川氏が四股を踏んでいたとされる石 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="佐川氏が四股を踏んでいたとされる石">佐川氏が四股を踏んでいたとされる石<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E4%BD%90%E5%B7%9D%E6%B0%8F%E3%81%8C%E5%9B%9B%E8%82%A1%E3%82%92%E8%B8%8F%E3%82%93%E3%81%A7%E3%81%84%E3%81%9F%E3%81%A8%E3%81%95%E3%82%8C%E3%82%8B%E7%9F%B3" class="hash-link" aria-label="佐川氏が四股を踏んでいたとされる石 への直接リンク" title="佐川氏が四股を踏んでいたとされる石 への直接リンク"></a></h3> <p>右下の平らな石が、佐川幸義氏が四股を踏んでいたとされる石です。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・四股を踏んでいたと思われる石" src="https://yasutakeyohei.com/docs/assets/images/IMG_1853-148e683f38a81ae796e46e2128dcf13d.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側出入口">西側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="西側出入口 への直接リンク" title="西側出入口 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側出入口">西側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="西側出入口 への直接リンク" title="西側出入口 への直接リンク"></a></h3> <p>案内板はまだ設置されていません。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側出入口" src="https://yasutakeyohei.com/docs/assets/images/IMG_1854-4dded2a7e4a1145d24e950330c1b5df5.jpg" width="806" height="545" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側園路と目隠しフェンス">西側園路と目隠しフェンス<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E5%9C%92%E8%B7%AF%E3%81%A8%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9" class="hash-link" aria-label="西側園路と目隠しフェンス への直接リンク" title="西側園路と目隠しフェンス への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側園路と目隠しフェンス">西側園路と目隠しフェンス<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E5%9C%92%E8%B7%AF%E3%81%A8%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9" class="hash-link" aria-label="西側園路と目隠しフェンス への直接リンク" title="西側園路と目隠しフェンス への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側園路と目隠しフェンス" src="https://yasutakeyohei.com/docs/assets/images/IMG_1855-fd4fdcc03efce5e08b84ab074160246f.jpg" width="605" height="806" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側の工事看板目隠しフェンス上部">西側の工事看板・目隠しフェンス上部<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E3%81%AE%E5%B7%A5%E4%BA%8B%E7%9C%8B%E6%9D%BF%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9%E4%B8%8A%E9%83%A8" class="hash-link" aria-label="西側の工事看板・目隠しフェンス上部 への直接リンク" title="西側の工事看板・目隠しフェンス上部 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側の工事看板目隠しフェンス上部">西側の工事看板・目隠しフェンス上部<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E3%81%AE%E5%B7%A5%E4%BA%8B%E7%9C%8B%E6%9D%BF%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9%E4%B8%8A%E9%83%A8" class="hash-link" aria-label="西側の工事看板・目隠しフェンス上部 への直接リンク" title="西側の工事看板・目隠しフェンス上部 への直接リンク"></a></h3> <p>目隠しフェンス上部は人の乗り越えられないような突起が出ています。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側の工事看板・目隠しフェンス上部" src="https://yasutakeyohei.com/docs/assets/images/IMG_1856-d0146a7d69bb5e78cd0e66baa9c4a838.jpg" width="504" height="704" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側園路の舗装">西側園路の舗装<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E5%9C%92%E8%B7%AF%E3%81%AE%E8%88%97%E8%A3%85" class="hash-link" aria-label="西側園路の舗装 への直接リンク" title="西側園路の舗装 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側園路の舗装">西側園路の舗装<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E5%9C%92%E8%B7%AF%E3%81%AE%E8%88%97%E8%A3%85" class="hash-link" aria-label="西側園路の舗装 への直接リンク" title="西側園路の舗装 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側園路の舗装" src="https://yasutakeyohei.com/docs/assets/images/IMG_1857-60cf5c630dd6c5ca0007dd430eb39cf3.jpg" width="605" height="806" class="img_ev3q"></p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動画">動画<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%8B%95%E7%94%BB" class="hash-link" aria-label="動画 への直接リンク" title="動画 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動画">動画<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%8B%95%E7%94%BB" class="hash-link" aria-label="動画 への直接リンク" title="動画 への直接リンク"></a></h2> <!-- --> <!-- --> <div class="react-tweet-theme root_D3qd root_Y6tr"><article class="article_kRZ8"><span class="skeleton_FMR8" style="height:3rem;margin-bottom:0.75rem"></span><span class="skeleton_FMR8" style="height:6rem;margin:0.5rem 0"></span><div style="border-top:var(--tweet-border);margin:0.5rem 0"></div><span class="skeleton_FMR8" style="height:2rem"></span><span class="skeleton_FMR8" style="height:2rem;border-radius:9999px;margin-top:0.5rem"></span></article></div> @@ -198,17 +198,17 @@ </entry> <entry> <title type="html"><![CDATA[Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法]]></title> - <id>https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc</id> - <link href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc"/> + <id>https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/</id> + <link href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/"/> <updated>2024-01-27T00:00:00.000Z</updated> <summary type="html"><![CDATA[Docusaurus(V3.1)では、注意書きや警告文(Admonition)は見出し(Heading)にはならず目次にも掲載されないので、Remark/RehypeのプラグインとSwizzleを活用して実現しました。]]></summary> - <content type="html"><![CDATA[<h2 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurus">Docusaurus🦖<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#docusaurus" class="hash-link" aria-label="Docusaurus🦖 への直接リンク" title="Docusaurus🦖 への直接リンク"></a></h2> + <content type="html"><![CDATA[<h2 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurus">Docusaurus🦖<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#docusaurus" class="hash-link" aria-label="Docusaurus🦖 への直接リンク" title="Docusaurus🦖 への直接リンク"></a></h2> <p>1ヵ月弱使いましたがこの<a href="https://docusaurus.io/" target="_blank" rel="noopener noreferrer">Docusaurus</a>(ドキュサウルス)は数あるCMSの中でも秀逸です。</p> <p>文書作成と管理が容易で、拡張の自由度も非常に高く、完全なオープンソース。</p> <p>議員活動に重要な「<strong>資料を作成しまとめて公開するツール</strong>」として現状の最適解と感じます。</p> <!-- --> <p>Facebookが母体なのでいろいろと気になるところですが、<a href="https://ja.legacy.reactjs.org/" target="_blank" rel="noopener noreferrer">React</a>を初めとして有益なソフトウェアを完全なオープンソースとして提供してくれていることは純粋にありがたいと感じます。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="admonitionのタイトルが見出しにならない">Admonitionのタイトルが見出しにならない<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#admonition%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%81%8C%E8%A6%8B%E5%87%BA%E3%81%97%E3%81%AB%E3%81%AA%E3%82%89%E3%81%AA%E3%81%84" class="hash-link" aria-label="Admonitionのタイトルが見出しにならない への直接リンク" title="Admonitionのタイトルが見出しにならない への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="admonitionのタイトルが見出しにならない">Admonitionのタイトルが見出しにならない<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#admonition%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%81%8C%E8%A6%8B%E5%87%BA%E3%81%97%E3%81%AB%E3%81%AA%E3%82%89%E3%81%AA%E3%81%84" class="hash-link" aria-label="Admonitionのタイトルが見出しにならない への直接リンク" title="Admonitionのタイトルが見出しにならない への直接リンク"></a></h2> <p>さてDocusaurusには<a href="https://docusaurus.io/docs/markdown-features/admonitions" target="_blank" rel="noopener noreferrer">Admonition</a>(注意書きや警告文)を容易にMarkdownで書く方法が用意されています。</p> <p>たとえばinfoなら、次のようにMarkdownで書けば、</p> <div class="language-mdx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionの記法(mdもしくはmdxに記載)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-mdx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">:::info[infoの例]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">ここに文章を書く</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">:::</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> @@ -222,47 +222,47 @@ <p>次のように本文中に見出しを書く方法もありますが</p> <div class="language-mdx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionの記法(mdもしくはmdxに記載)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-mdx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">:::info</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">#### テスト</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">~文章~</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">:::</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>見た目がイマイチになります。</p> -<div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>備考</div><div class="admonitionContent_UjKb"><h4 class="anchor anchorWithStickyNavbar_LWe7" id="テスト">テスト<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%83%86%E3%82%B9%E3%83%88" class="hash-link" aria-label="テスト への直接リンク" title="テスト への直接リンク"></a></h4><p>~文章~</p></div></div> +<div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>備考</div><div class="admonitionContent_UjKb"><h4 class="anchor anchorWithStickyNavbar_LWe7" id="テスト">テスト<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%83%86%E3%82%B9%E3%83%88" class="hash-link" aria-label="テスト への直接リンク" title="テスト への直接リンク"></a></h4><p>~文章~</p></div></div> <p><a href="https://github.com/facebook/docusaurus/discussions/7146" target="_blank" rel="noopener noreferrer">ほかのユーザーからの要望</a>も上がっており、私も少し不便に感じていたので、次の仕様になるようカスタマイズしましたのでその方法を解説します。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="カスタマイズ後はどうなるか">カスタマイズ後はどうなるか<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E5%BE%8C%E3%81%AF%E3%81%A9%E3%81%86%E3%81%AA%E3%82%8B%E3%81%8B" class="hash-link" aria-label="カスタマイズ後はどうなるか への直接リンク" title="カスタマイズ後はどうなるか への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="カスタマイズ後はどうなるか">カスタマイズ後はどうなるか<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E5%BE%8C%E3%81%AF%E3%81%A9%E3%81%86%E3%81%AA%E3%82%8B%E3%81%8B" class="hash-link" aria-label="カスタマイズ後はどうなるか への直接リンク" title="カスタマイズ後はどうなるか への直接リンク"></a></h2> <p>後述のカスタマイズをすると、Admonitionのタイトル部に(通常の見出しMarkdownと同様に)<strong>#を冒頭に2個以上入れる</strong> ことで見出しになります。またTOCにも反映されます。#を2個以上としているのは、H1をAdmonitionには使わないはずのため。#を入れない場合は見出しにならず、TOCにも反映されません。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトル冒頭にを入れた場合">タイトル冒頭に#を入れた場合<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E5%86%92%E9%A0%AD%E3%81%AB%E3%82%92%E5%85%A5%E3%82%8C%E3%81%9F%E5%A0%B4%E5%90%88" class="hash-link" aria-label="タイトル冒頭に#を入れた場合 への直接リンク" title="タイトル冒頭に#を入れた場合 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトル冒頭にを入れた場合">タイトル冒頭に#を入れた場合<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E5%86%92%E9%A0%AD%E3%81%AB%E3%82%92%E5%85%A5%E3%82%8C%E3%81%9F%E5%A0%B4%E5%90%88" class="hash-link" aria-label="タイトル冒頭に#を入れた場合 への直接リンク" title="タイトル冒頭に#を入れた場合 への直接リンク"></a></h3> <div class="language-mdx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionの記法(mdもしくはmdxに記載)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-mdx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">:::info[#### 見出しになりTOCに反映されるタイトルの例]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">#が4つ分のためH4見出しになります。TOCにも反映されます。</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">:::</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>↓</p> <!-- --> <div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span><h4 id="見出しになりtocに反映されるタイトルの例" class="anchor title anchorWithStickyNavbar_LWe7">見出しになり、TOCに反映されるタイトルの例</h4></div><div class="admonitionContent_UjKb"><p>#が4つ分のためH4見出しになります。TOCにも反映されます。</p></div></div> <p>このブログでもTOCに表示されています。<br> <!-- -->なおマウスカーソルを乗せた際にハッシュリンク(#)が表示されるようにするにはCSSの設定が必要です。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトル冒頭にを入れない場合">タイトル冒頭に#を入れない場合<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E5%86%92%E9%A0%AD%E3%81%AB%E3%82%92%E5%85%A5%E3%82%8C%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88" class="hash-link" aria-label="タイトル冒頭に#を入れない場合 への直接リンク" title="タイトル冒頭に#を入れない場合 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトル冒頭にを入れない場合">タイトル冒頭に#を入れない場合<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E5%86%92%E9%A0%AD%E3%81%AB%E3%82%92%E5%85%A5%E3%82%8C%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88" class="hash-link" aria-label="タイトル冒頭に#を入れない場合 への直接リンク" title="タイトル冒頭に#を入れない場合 への直接リンク"></a></h3> <div class="language-mdx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionの記法(mdもしくはmdxに記載)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-mdx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">:::info[見出しにならずTOCに反映されないタイトルの例]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">#がないため見出しにならず、TOCにも反映されません。</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">:::</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>↓</p> <!-- --> <div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span><h4 id="見出しにならずtocに反映されないタイトルの例" class="anchor title anchorWithStickyNavbar_LWe7">見出しにならず、TOCに反映されないタイトルの例</h4></div><div class="admonitionContent_UjKb"><p>#がないため見出しになりません。</p></div></div> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトルにhtmlを入れることも可能">タイトルにHTMLを入れることも可能<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%81%ABhtml%E3%82%92%E5%85%A5%E3%82%8C%E3%82%8B%E3%81%93%E3%81%A8%E3%82%82%E5%8F%AF%E8%83%BD" class="hash-link" aria-label="タイトルにHTML��を入れることも可能 への直接リンク" title="タイトルにHTMLを入れることも可能 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトルにhtmlを入れることも可能">タイトルにHTMLを入れることも可能<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%81%ABhtml%E3%82%92%E5%85%A5%E3%82%8C%E3%82%8B%E3%81%93%E3%81%A8%E3%82%82%E5%8F%AF%E8%83%BD" class="hash-link" aria-label="タイトルにHTMLを入れることも可能 への直接リンク" title="タイトルにHTMLを入れることも可能 への直接リンク"></a></h3> <p>なおタイトル部にHTMLを入れることもできます。TOCにも反映されます。</p> <!-- --> <div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span><h4 id="テスト123テスト下線" class="anchor title anchorWithStickyNavbar_LWe7">テスト<sup>123</sup>テスト<u>下線</u></h4></div><div class="admonitionContent_UjKb"><div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">タイトル部のmarkdownは次の通りです。</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">#### テスト<sup>123</sup>テスト<u>下線</u></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div></div> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="カスタマイズに利用した機能">カスタマイズに利用した機能<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E3%81%AB%E5%88%A9%E7%94%A8%E3%81%97%E3%81%9F%E6%A9%9F%E8%83%BD" class="hash-link" aria-label="カスタマイズに利用した機能 への直接リンク" title="カスタマイズに利用した機能 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="カスタマイズに利用した機能">カスタマイズに利用した機能<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E3%81%AB%E5%88%A9%E7%94%A8%E3%81%97%E3%81%9F%E6%A9%9F%E8%83%BD" class="hash-link" aria-label="カスタマイズに利用した機能 への直接リンク" title="カスタマイズに利用した機能 への直接リンク"></a></h2> <p>カスタマイズは次の機能を活用しました。</p> <ul> <li><a href="https://docusaurus.io/docs/markdown-features/plugins" target="_blank" rel="noopener noreferrer">Remark/Rehypeのプラグイン</a></li> <li><a href="https://docusaurus.io/docs/swizzling" target="_blank" rel="noopener noreferrer">Swizzling</a></li> </ul> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="remarkとrehypeについて">RemarkとRehypeについて<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#remark%E3%81%A8rehype%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" class="hash-link" aria-label="RemarkとRehypeについて への直接リンク" title="RemarkとRehypeについて への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="remarkとrehypeについて">RemarkとRehypeについて<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#remark%E3%81%A8rehype%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" class="hash-link" aria-label="RemarkとRehypeについて への直接リンク" title="RemarkとRehypeについて への直接リンク"></a></h3> <p>RemarkとRehypeは、MarkdownをHTMLに変換するプロセスにおいて、AST(抽象構文木・Abstract Syntax Tree)に作用するプラグインです。なお<a href="https://github.com/unifiedjs/unified" target="_blank" rel="noopener noreferrer">ASTを操作するオープンソースのエコシステム</a>の中にはもう1つ<a href="https://github.com/retextjs/retext" target="_blank" rel="noopener noreferrer">Retext</a>というプラグインもありますが、Docusaurusには実装されていないようです。</p> -<div class="language-md codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">markdownからHTMLへ変換処理の流れ</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-md codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">| ........................ process ........................... |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">| .......... parse ... | ... run ... | ... stringify ..........|</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token code keyword" style="color:#00009f"> +--------+ +----------+</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Input ->- | Parser | ->- Syntax Tree ->- | Compiler | ->- Output</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------+ | +----------+</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> X</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------------+</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> | Transformers |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------------+</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> +<div class="language-md codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">markdownからHTMLへ変換処理の流れ</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-md codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">| ........................ process ........................... |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">| .......... parse ... | ... run ... | ... stringify ..........|</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token code keyword" style="color:#00009f"> +--------+ +----------+</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Input ->- | Parser | ->- Syntax Tree ->- | Compiler | ->- Output</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------+ | +----------+</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> X</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------------+</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> | Transformers |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------------+</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボード��にコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>上図(<a href="https://github.com/unifiedjs/unified?tab=readme-ov-file#overview" target="_blank" rel="noopener noreferrer">Unified Overviewより</a>)にTransformersとあるところがRemark/Rehypeの動作するところ。</p> <p>RemarkはMarkdown形式で、RehypeはHTML形式でASTを扱います。どちらも同じようにASTを操作できますが、データ構造が違うため、目的に応じて選択することになるのかなと思います。</p> <p><a href="https://vivliostyle.github.io/vivliostyle_doc/ja/vivliostyle-user-group-vol2/spring-raining/index.html" target="_blank" rel="noopener noreferrer">こちらのサイト</a>などが詳しいです。</p> -<h4 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurusにおけるプラグインの実行タイミング">Docusaurusにおけるプラグインの実行タイミング<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#docusaurus%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%AE%E5%AE%9F%E8%A1%8C%E3%82%BF%E3%82%A4%E3%83%9F%E3%83%B3%E3%82%B0" class="hash-link" aria-label="Docusaurusにおけるプラグインの実行タイミング への直接リンク" title="Docusaurusにおけるプラグインの実行タイミング への直接リンク"></a></h4> +<h4 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurusにおけるプラグインの実行タイミング">Docusaurusにおけるプラグインの実行タイミング<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#docusaurus%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%AE%E5%AE%9F%E8%A1%8C%E3%82%BF%E3%82%A4%E3%83%9F%E3%83%B3%E3%82%B0" class="hash-link" aria-label="Docusaurusにおけるプラグインの実行タイミング への直接リンク" title="Docusaurusにおけるプラグインの実行タイミング への直接リンク"></a></h4> <p>Docusaurusでこれらのプラグインを利用するためにはdocusaurus.config.jsonに設定が必要です。<a href="https://docusaurus.io/docs/markdown-features/plugins" target="_blank" rel="noopener noreferrer">このページによると</a>次の4種類の設定値にてプラグインを登録できます。</p> <table><thead><tr><th></th><th>デフォルトプラグイン適用前</th><th>デフォルトプラグイン適用後</th></tr></thead><tbody><tr><td>Remark<br>Markdown形式</td><td>beforeDefaultRemarkPlugins</td><td>remarkPlugins</td></tr><tr><td>Rehype<br>HTML形式</td><td>beforeDefaultRehypePlugins</td><td>rehypePlugins</td></tr></tbody></table> <p>MarkdownからHTMLへの変換処理のところで、Docusaurusは自前のプラグイン(デフォルトプラグイン)を使い「見出しにidをつける」「ASTからTOCを作成する」などの処理を行っています。そのため今回のように「Amonitionのタイトルを読んでTOCに反映する」ためには、デフォルトプラグイン適用前と適用後の両方のタイミングでの処理が必要になります。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="swizzlingについて">Swizzlingについて<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#swizzling%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" class="hash-link" aria-label="Swizzlingについて への直接リンク" title="Swizzlingについて への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="swizzlingについて">Swizzlingについて<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#swizzling%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" class="hash-link" aria-label="Swizzlingについて への直接リンク" title="Swizzlingについて への直接リンク"></a></h3> <p>Swizzlingは<a href="https://docusaurus.io/docs/swizzling" target="_blank" rel="noopener noreferrer">こちら</a>に説明があるとおりの機能で、簡単に言うとReactのコンポーネントをカスタマイズできる機能です。</p> <p>Swizzlingの設定をすると、Docusaurusがデフォルトのコンポーネントの代わりに自動的にカスタマイズしたコンポーネントを使用します。</p> <p>今回は、デフォルトのAdmonitionにないID属性を持たせるためAdmonitionコンポーネントをカスタマイズしました。Swizzlingの設定をすることにより、デフォルトのAdmonitionの代わりにこのカスタムコンポーネントが使われるようにします。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動作原理">動作原理<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E5%8B%95%E4%BD%9C%E5%8E%9F%E7%90%86" class="hash-link" aria-label="動作原理 への直接リンク" title="動作原理 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動作原理">動作原理<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E5%8B%95%E4%BD%9C%E5%8E%9F%E7%90%86" class="hash-link" aria-label="動作原理 への直接リンク" title="動作原理 への直接リンク"></a></h2> <p>TOCは「ASTに含まれているheading要素を単純に配列に入れている」だけですが、この処理はカスタマイズで上書きできません。そこで、カスタマイズできる処理だけでAdmonitionのタイトルをTOCに反映する方法として次を思いつき、実装しました。</p> <ol> <li>docusaurusのデフォルトプラグインがTOCの処理を行うより前に、Admonitionのタイトル部を見出しとして新規作成し、Admonition要素の直前に追加する</li> @@ -270,31 +270,31 @@ <li>デフォルトプラグインの処理が終了したら作成した見出しは不要になるので削除する。その際、削除する見出しと同じタイトルをもつAdmonition要素を探し、idを与える</li> <li>AdmonitionコンポーネントでidをHTMLタグに付与する</li> </ol> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="実装">実装<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E5%AE%9F%E8%A3%85" class="hash-link" aria-label="実装 への直接リンク" title="実装 への直接リンク"></a></h2> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurusconfigjson">docusaurus.config.json<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#docusaurusconfigjson" class="hash-link" aria-label="docusaurus.config.json への直接リンク" title="docusaurus.config.json への直接リンク"></a></h3> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="実装">実装<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E5%AE%9F%E8%A3%85" class="hash-link" aria-label="実装 への直接リンク" title="実装 への直接リンク"></a></h2> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurusconfigjson">docusaurus.config.json<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#docusaurusconfigjson" class="hash-link" aria-label="docusaurus.config.json への直接リンク" title="docusaurus.config.json への直接リンク"></a></h3> <p>まずdocusaurus.config.jsonにimportとplugin設定を記入します(ハイライト部)。</p> <p>これでDocusaurusデフォルトプラグイン適用の前後にそれぞれ自作のRemark/Rehypeプラグインが実行されることになります。</p> <p>blogなどを入れている場合は、そのプロパティにも記載します。</p> <div class="language-js codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">docusaurus.config.json</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-js codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">admonitionTitleToHeadingBeforeTOC</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'./src/remark/admonition-title-to-heading-before-toc.js'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">admonitionTitleToHeadingAfterTOC</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'./src/rehype/admonition-title-to-heading-after-toc.js'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">default</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">presets</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token string" style="color:#e3116c">'classic'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token doc-comment comment" style="color:#999988;font-style:italic">/** </span><span class="token doc-comment comment keyword" style="color:#00009f;font-style:italic">@type</span><span class="token doc-comment comment" style="color:#999988;font-style:italic"> </span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">{</span><span class="token doc-comment comment class-name keyword" style="color:#00009f;font-style:italic">import</span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">(</span><span class="token doc-comment comment class-name string" style="color:#e3116c;font-style:italic">'@docusaurus/preset-classic'</span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">)</span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">.</span><span class="token doc-comment comment class-name" style="color:#999988;font-style:italic">Options</span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">}</span><span class="token doc-comment comment" style="color:#999988;font-style:italic"> */</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">docs</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">beforeDefaultRemarkPlugins</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">admonitionTitleToHeadingBeforeTOC</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">rehypePlugins</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">admonitionTitleToHeadingAfterTOC</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">blog</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">beforeDefaultRemarkPlugins</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">admonitionTitleToHeadingBeforeTOC</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">rehypePlugins</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">admonitionTitleToHeadingAfterTOC</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="remarkrehypeプラグイン">Remark/Rehypeプラグイン<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#remarkrehype%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3" class="hash-link" aria-label="Remark/Rehypeプラグイン への直接リンク" title="Remark/Rehypeプラグイン への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="remarkrehypeプラグイン">Remark/Rehypeプラグイン<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#remarkrehype%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3" class="hash-link" aria-label="Remark/Rehypeプラグイン への直接リンク" title="Remark/Rehypeプラグイン への直接リンク"></a></h3> <p>次にプラグインを実装します。</p> <p>docusaurusのsrcディレクトリ下にrehypeとremarkというディレクトリを作り、次のファイル名と内容で2つのプラグインを作ります。</p> <div class="language-js codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">src/rehype/admonition-title-to-heading-before-toc.js</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-js codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports punctuation" style="color:#393A34">{</span><span class="token imports">visit</span><span class="token imports punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'unist-util-visit'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:#d73a49">plugin</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">options</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:#d73a49">transformer</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">async</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">ast</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> newBeginningText </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">""</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> visitor </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">node</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> index</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> parent</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">type</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'containerDirective'</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// :::infoなどに続くタイトル冒頭Text部(冒頭#を含む(もしくは含まない)部分)を取得(:::info ##** )</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// (タイトル全体にはHTML等が含まれる可能性があるため冒頭Text部だけ操作する、残りはシャロ―コピー)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> beginningText </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">value</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// タイトル冒頭Text部に#が2つ以上連続しているとき</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">##</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">test</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">beginningText</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// タイトル冒頭部から#とそれに続く空白を削除</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> newBeginningText </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> beginningText</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">replace</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// タイトル部冒頭だけ更新し、残りはシャロ―コピー</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// まずタイトル部全体をシャロ―コピー</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> titleNodes </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain">node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// 冒頭要素のvalueを更新(ほかはシャロ―コピー)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> newTitleBeginningNode </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain">titleNodes</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">value</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> newBeginningText</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// タイトルノードの冒頭要素だけ更新(ほかはシャロ―コピー)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> newTitleNodes </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain">titleNodes </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> newTitleNodes</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> newTitleBeginningNode</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// visitしているcontainerDirectiveの前にheadingノードを追加</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">splice</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">index</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'heading'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">depth</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">beginningText</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">match</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">##</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">||</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">length</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// #の連続数がheadingの深さ</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> newTitleNodes</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// 次に検索するのはindexを2つ分飛ばしたノード</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> index </span><span class="token operator" style="color:#393A34">+</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">2</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token function" style="color:#d73a49">visit</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">ast</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'containerDirective'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> visitor</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> transformer</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">default</span><span class="token plain"> plugin</span><span class="token punctuation" style="color:#393A34">;</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <div class="language-js codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">src/rehype/admonition-title-to-heading-after-toc.js</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-js codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports punctuation" style="color:#393A34">{</span><span class="token imports">visit</span><span class="token imports punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'unist-util-visit'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:#d73a49">plugin</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">options</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:#d73a49">transformer</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">async</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">ast</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> hId </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword null nil" style="color:#00009f">null</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> hContent </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword null nil" style="color:#00009f">null</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token function" style="color:#d73a49">visit</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">ast</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'element'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">node</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> index</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> parent</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">h</span><span class="token regex regex-source language-regex char-class char-class-punctuation punctuation" style="color:#393A34">[</span><span class="token regex regex-source language-regex char-class range" style="color:#36acaa">2</span><span class="token regex regex-source language-regex char-class range range-punctuation operator" style="color:#393A34">-</span><span class="token regex regex-source language-regex char-class range" style="color:#36acaa">6</span><span class="token regex regex-source language-regex char-class char-class-punctuation punctuation" style="color:#393A34">]</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">$</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">test</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">tagName</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">id</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// H要素(h2~h6)を見つけた場合</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// IDとタイトルの冒頭Text部を取得する</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> hId </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">id</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> hContent </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">value</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">value</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// 続くAdmonitionを探す(docはH要素とadmonitionが連続しているが</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// blogではなぜか改行要素{ type:'text', value:'\n' }が間に入っているので念のため隣接3要素を探す</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">for</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> i </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> index </span><span class="token operator" style="color:#393A34">+</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"> i </span><span class="token operator" style="color:#393A34"><</span><span class="token plain"> index </span><span class="token operator" style="color:#393A34">+</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">4</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> i </span><span class="token operator" style="color:#393A34"><</span><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">length</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"> i</span><span class="token operator" style="color:#393A34">++</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">i</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">i</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">tagName</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'admonition'</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// admonition(div)を見つけた場合</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> admonitionNode </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">i</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// admonitionタイトルの冒頭Text部分を取得(properties.titleもしくはchildren[0].children[0].value)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> admonitionNodeTitle </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">title</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">title</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">value</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">##</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">test</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">admonitionNodeTitle</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> admonitionNodeTitle</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">replace</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> hContent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// #で始まっていて、タイトル冒頭部が同じ場合</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// divのidをHタグのidに設定</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">id</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> hId</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// H要素を削除</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">splice</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">index</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> transformer</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">default</span><span class="token plain"> plugin</span><span class="token punctuation" style="color:#393A34">;</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <div class="theme-admonition theme-admonition-note admonition_Gfwi alert alert--secondary"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>Admonitionのツリー構造</div><div class="admonitionContent_UjKb"><p>参考までに、Remarkのプラグインから見るとAdmonitionのASTはたとえば次のようになっています。</p><div class="language-javascript codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionのツリー構造(一例)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-javascript codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'containerDirective'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">name</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'info'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">attributes</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'paragraph'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">data</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">directiveLabel</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">true</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'text'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">value</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'#### info title もしHTML等が入ると(ここにaタグを入れると)'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'mdxJsxTextElement'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">name</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'a'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">attributes</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">data</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Array</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'text'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">value</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'このようにタイトル部が別々の要素として配列に入っている。'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">start</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">line</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1347</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">column</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">8</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">offset</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">34053</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">end</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">line</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1347</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">column</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">55</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">offset</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">34100</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'paragraph'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Array</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div></div> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="swizzling">Swizzling<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#swizzling" class="hash-link" aria-label="Swizzling への直接リンク" title="Swizzling への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="swizzling">Swizzling<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#swizzling" class="hash-link" aria-label="Swizzling への直接リンク" title="Swizzling への直接リンク"></a></h3> <p>次にSwizzlingです。</p> <p>Docusaurusのsrc/themeディレクトリにAdmonitionというディレクトリを作り、次の一例のファイルを格納します。</p> <p>なお<a href="https://docusaurus.io/docs/swizzling#ejecting" target="_blank" rel="noopener noreferrer">ここに説明がある通り</a>SwizzlingにはEjectingとWrappingの方法があります。</p> <p>WrappingではAdmonitionの内部までカスタマイズできないため「タイトル部分にidプロパティを付ける」といったことができません。そのためEjectingを使います。</p> <div class="theme-admonition theme-admonition-note admonition_Gfwi alert alert--secondary"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>注記</div><div class="admonitionContent_UjKb"><p>Ejectingを使う場合はバージョンアップによってデフォルトのコンポーネントと挙動が変わってくる可能性があるのでアップグレードの際は注意が必要です。</p></div></div> -<h4 class="anchor anchorWithStickyNavbar_LWe7" id="ejecting">Ejecting<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#ejecting" class="hash-link" aria-label="Ejecting への直接リン�ク" title="Ejecting への直接リンク"></a></h4> +<h4 class="anchor anchorWithStickyNavbar_LWe7" id="ejecting">Ejecting<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#ejecting" class="hash-link" aria-label="Ejecting への直接�リンク" title="Ejecting への直接リンク"></a></h4> <div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">npm run swizzle @docusaurus/theme-classic Admonition -- --eject</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>Docusaurus V3.1では次のようなメッセージが出ますので、YESを選びます。</p> <div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">? Do you really want to swizzle this unsafe internal component? » - Use arrow-keys. Return to submit.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> NO: cancel and stay safe</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">> YES: I know what I am doing!</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>Ejectingをすると、実質的にnode_modulesの@docusaurus/theme-classic/lib/themeにあるコンポーネントがsrc/themeディレクトリにコピーされます。</p> <p>あとはコピーされたコンポーネントをいじるだけです。</p> -<h4 class="anchor anchorWithStickyNavbar_LWe7" id="コードの変更">コードの変更<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AE%E5%A4%89%E6%9B%B4" class="hash-link" aria-label="コードの変更 への直接リンク" title="コードの変更 への直接リンク"></a></h4> +<h4 class="anchor anchorWithStickyNavbar_LWe7" id="コードの変更">コードの変更<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AE%E5%A4%89%E6%9B%B4" class="hash-link" aria-label="コードの変更 への直接リンク" title="コードの変更 への直接リンク"></a></h4> <p>Layoutファイルを次のように変更するのみです。</p> <div class="language-js codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">src/theme/Admonition/Layout/index.js</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-js codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports maybe-class-name">React</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'react'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">clsx</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'clsx'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports punctuation" style="color:#393A34">{</span><span class="token imports maybe-class-name">ThemeClassNames</span><span class="token imports punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'@docusaurus/theme-common'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">styles</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'./styles.module.css'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">headingStyles</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'@docusaurus/theme-classic/lib/theme/Heading/styles.module.css'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function maybe-class-name" style="color:#d73a49">AdmonitionContainer</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter punctuation" style="color:#393A34">{</span><span class="token parameter">type</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> className</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> children</span><span class="token parameter punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">div</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token function" style="color:#d73a49">clsx</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token maybe-class-name">ThemeClassNames</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">common</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonition</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token maybe-class-name">ThemeClassNames</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">common</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">admonitionType</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">type</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> styles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonition</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> className</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">children</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">div</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function maybe-class-name" style="color:#d73a49">AdmonitionHeading</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter punctuation" style="color:#393A34">{</span><span class="token parameter">icon</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> title</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> id</span><span class="token parameter punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> trimmedTitle </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// titleにHTML等が含まれている場合は文字列ではなく配列になる</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token punctuation" style="color:#393A34">(</span><span class="token keyword" style="color:#00009f">typeof</span><span class="token plain"> title </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"string"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// 文字列冒頭の#の数を数える(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">match</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">toString</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">match</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">||</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">length</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// #を省いたタイトルを得る</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> trimmedTitle </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">></span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">replace</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token keyword" style="color:#00009f">typeof</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"string"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">match</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">match</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">||</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">length</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> trimmedTitle </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">></span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">replace</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">slice</span><span class="token punctuation" style="color:#393A34">(</span><span class="token number" style="color:#36acaa">1</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// スクロール位置調整のcss</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> classNames </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">clsx</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"anchor"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"title"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> headingStyles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">anchorWithStickyNavbar</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// depthに応じて見出しタグをレンダー</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">div className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">styles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonitionHeading</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">span className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">styles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonitionIcon</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">icon</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">span</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">depth </span><span class="token operator" style="color:#393A34">==</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">3</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">h3</span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">classNames</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">h3</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">depth </span><span class="token operator" style="color:#393A34">==</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">4</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">h4</span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">classNames</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">h4</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">depth </span><span class="token operator" style="color:#393A34">==</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">5</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">h5</span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">classNames</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">h5</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">depth </span><span class="token operator" style="color:#393A34">==</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">6</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">h6</span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">classNames</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">h6</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">div</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function maybe-class-name" style="color:#d73a49">AdmonitionContent</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter punctuation" style="color:#393A34">{</span><span class="token parameter">children</span><span class="token parameter punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> children </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">div className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">styles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonitionContent</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">children</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">div</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token keyword null nil" style="color:#00009f">null</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">default</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function maybe-class-name" style="color:#d73a49">AdmonitionLayout</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">props</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">type</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> icon</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> children</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> className</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> props</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token maybe-class-name">AdmonitionContainer</span><span class="token plain"> type</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">type</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">className</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token maybe-class-name">AdmonitionHeading</span><span class="token plain"> title</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> icon</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">icon</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">/</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token maybe-class-name">AdmonitionContent</span><span class="token operator" style="color:#393A34">></span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">children</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token maybe-class-name">AdmonitionContent</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token maybe-class-name">AdmonitionContainer</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>上記を設定後、npm start等の再起動が必要です。</p> @@ -310,8 +310,8 @@ </entry> <entry> <title type="html"><![CDATA[新ふらっとブログ立ち上げました]]></title> - <id>https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog</id> - <link href="https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog"/> + <id>https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog/</id> + <link href="https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog/"/> <updated>2024-01-26T00:00:00.000Z</updated> <summary type="html"><![CDATA[新ふらっとブログ立ち上げました。議員活動やその裏で活用している技術について、誰かの役に立つかもしれないことを中心にまとめています。]]></summary> <content type="html"><![CDATA[<p>今後の展開を考え、これまでの議会活動等のまとめをこのDocusaurusの仕組みに移行しています。</p> diff --git a/build/blog/index.html b/build/blog/index.html index f6cb9fb8..1e8b2e28 100644 --- a/build/blog/index.html +++ b/build/blog/index.html @@ -3,7 +3,7 @@ <head> <meta charset="UTF-8"> <meta name="generator" content="Docusaurus v3.3.2"> -<title data-rh="true">ふらっとブログ | 東京都小平市議・安竹洋平のまとめ</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://yasutakeyohei.com/docs/img/docusaurus-social-card.jpg"><meta data-rh="true" name="twitter:image" content="https://yasutakeyohei.com/docs/img/docusaurus-social-card.jpg"><meta data-rh="true" property="og:url" content="https://yasutakeyohei.com/docs/blog"><meta data-rh="true" property="og:locale" content="ja"><meta data-rh="true" name="docusaurus_locale" content="ja"><meta data-rh="true" name="docsearch:language" content="ja"><meta data-rh="true" property="og:title" content="ふらっとブログ | 東京都小平市議・安竹洋平のまとめ"><meta data-rh="true" name="description" content="誰かの役に立ちそうなこと"><meta data-rh="true" property="og:description" content="誰かの役に立ちそうなこと"><meta data-rh="true" name="docusaurus_tag" content="blog_posts_list"><meta data-rh="true" name="docsearch:docusaurus_tag" content="blog_posts_list"><link data-rh="true" rel="icon" href="/docs/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://yasutakeyohei.com/docs/blog"><link data-rh="true" rel="alternate" href="https://yasutakeyohei.com/docs/blog" hreflang="ja"><link data-rh="true" rel="alternate" href="https://yasutakeyohei.com/docs/blog" hreflang="x-default"><link data-rh="true" rel="preconnect" href="https://GH3BU38Y7O-dsn.algolia.net" crossorigin="anonymous"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"Blog","@id":"https://yasutakeyohei.com/docs/blog","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog","headline":"ふらっとブログ","description":"誰かの役に立ちそうなこと","blogPost":[{"@type":"BlogPosting","@id":"https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony","url":"https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony","headline":"小平市立合気公園・開園セレモニー","name":"小平市立合気公園・開園セレモニー","description":"小平市上水南町二丁目の佐川幸義邸跡地に新設された合気公園の開園セレモニーに参加しました","datePublished":"2024-03-23T00:00:00.000Z","author":{"@type":"Person","name":"安竹 洋平","description":"東京都小平市議会議員","url":"https://yasutakeyohei.com","email":"yohei@yasutakeyohei.com","image":"https://cgit.yasutakeyohei.com/yohei.jpg"},"keywords":[]},{"@type":"BlogPosting","@id":"https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou","url":"https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou","headline":"合気公園の整備進捗状況","name":"合気公園の整備進捗状況","description":"小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備進捗状況を見てきました","datePublished":"2024-01-31T00:00:00.000Z","author":{"@type":"Person","name":"安竹 洋平","description":"東京都小平市議会議員","url":"https://yasutakeyohei.com","email":"yohei@yasutakeyohei.com","image":"https://cgit.yasutakeyohei.com/yohei.jpg"},"keywords":[]},{"@type":"BlogPosting","@id":"https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc","url":"https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc","headline":"Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法","name":"Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法","description":"Docusaurus(V3.1)では、注意書きや警告文(Admonition)は見出し(Heading)にはならず目次にも掲載されないので、Remark/RehypeのプラグインとSwizzleを活用して実現しました。","datePublished":"2024-01-27T00:00:00.000Z","author":{"@type":"Person","name":"安竹 洋平","description":"東京都小平市議会議員","url":"https://yasutakeyohei.com","email":"yohei@yasutakeyohei.com","image":"https://cgit.yasutakeyohei.com/yohei.jpg"},"keywords":[]},{"@type":"BlogPosting","@id":"https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog","url":"https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog","headline":"新ふらっとブログ立ち上げました","name":"新ふらっとブログ立ち上げました","description":"新ふらっとブログ立ち上げました。議員活動やその裏で活用している技術について、誰かの役に立つかもしれないことを中心にまとめています。","datePublished":"2024-01-26T00:00:00.000Z","author":{"@type":"Person","name":"安竹 洋平","description":"東京都小平市議会議員","url":"https://yasutakeyohei.com","email":"yohei@yasutakeyohei.com","image":"https://cgit.yasutakeyohei.com/yohei.jpg"},"keywords":[]}]}</script><link rel="alternate" type="application/rss+xml" href="/docs/blog/rss.xml" title="東京都小平市議・安竹洋平のまとめ RSS Feed"> +<title data-rh="true">ふらっとブログ | 東京都小平市議・安竹洋平のまとめ</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://yasutakeyohei.com/docs/img/docusaurus-social-card.jpg"><meta data-rh="true" name="twitter:image" content="https://yasutakeyohei.com/docs/img/docusaurus-social-card.jpg"><meta data-rh="true" property="og:url" content="https://yasutakeyohei.com/docs/blog/"><meta data-rh="true" property="og:locale" content="ja"><meta data-rh="true" name="docusaurus_locale" content="ja"><meta data-rh="true" name="docsearch:language" content="ja"><meta data-rh="true" property="og:title" content="ふらっとブログ | 東京都小平市議・安竹洋平のまとめ"><meta data-rh="true" name="description" content="誰かの役に立ちそうなこと"><meta data-rh="true" property="og:description" content="誰かの役に立ちそうなこと"><meta data-rh="true" name="docusaurus_tag" content="blog_posts_list"><meta data-rh="true" name="docsearch:docusaurus_tag" content="blog_posts_list"><link data-rh="true" rel="icon" href="/docs/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://yasutakeyohei.com/docs/blog/"><link data-rh="true" rel="alternate" href="https://yasutakeyohei.com/docs/blog/" hreflang="ja"><link data-rh="true" rel="alternate" href="https://yasutakeyohei.com/docs/blog/" hreflang="x-default"><link data-rh="true" rel="preconnect" href="https://GH3BU38Y7O-dsn.algolia.net" crossorigin="anonymous"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"Blog","@id":"https://yasutakeyohei.com/docs/blog","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog","headline":"ふらっとブログ","description":"誰かの役に立ちそうなこと","blogPost":[{"@type":"BlogPosting","@id":"https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony","url":"https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony","headline":"小平市立合気公園・開園セレモニー","name":"小平市立合気公園・開園セレモニー","description":"小平市上水南町二丁目の佐川幸義邸跡地に新設された合気公園の開園セレモニーに参加しました","datePublished":"2024-03-23T00:00:00.000Z","author":{"@type":"Person","name":"安竹 洋平","description":"東京都小平市議会議員","url":"https://yasutakeyohei.com","email":"yohei@yasutakeyohei.com","image":"https://cgit.yasutakeyohei.com/yohei.jpg"},"keywords":[]},{"@type":"BlogPosting","@id":"https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou","url":"https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou","headline":"合気公園の整備進捗状況","name":"合気公園の整備進捗状況","description":"小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備進捗状況を見てきました","datePublished":"2024-01-31T00:00:00.000Z","author":{"@type":"Person","name":"安竹 洋平","description":"東京都小平市議会議員","url":"https://yasutakeyohei.com","email":"yohei@yasutakeyohei.com","image":"https://cgit.yasutakeyohei.com/yohei.jpg"},"keywords":[]},{"@type":"BlogPosting","@id":"https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc","url":"https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc","headline":"Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法","name":"Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法","description":"Docusaurus(V3.1)では、注意書きや警告文(Admonition)は見出し(Heading)にはならず目次にも掲載されないので、Remark/RehypeのプラグインとSwizzleを活用して実現しました。","datePublished":"2024-01-27T00:00:00.000Z","author":{"@type":"Person","name":"安竹 洋平","description":"東京都小平市議会議員","url":"https://yasutakeyohei.com","email":"yohei@yasutakeyohei.com","image":"https://cgit.yasutakeyohei.com/yohei.jpg"},"keywords":[]},{"@type":"BlogPosting","@id":"https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog","mainEntityOfPage":"https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog","url":"https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog","headline":"新ふらっとブログ立ち上げました","name":"新ふらっとブログ立ち上げました","description":"新ふらっとブログ立ち上げました。議員活動やその裏で活用している技術について、誰かの役に立つかもしれないことを中心にまとめています。","datePublished":"2024-01-26T00:00:00.000Z","author":{"@type":"Person","name":"安竹 洋平","description":"東京都小平市議会議員","url":"https://yasutakeyohei.com","email":"yohei@yasutakeyohei.com","image":"https://cgit.yasutakeyohei.com/yohei.jpg"},"keywords":[]}]}</script><link rel="alternate" type="application/rss+xml" href="/docs/blog/rss.xml" title="東京都小平市議・安竹洋平のまとめ RSS Feed"> <link rel="alternate" type="application/atom+xml" href="/docs/blog/atom.xml" title="東京都小平市議・安竹洋平のまとめ Atom Feed"> <link rel="preconnect" href="https://www.google-analytics.com"> @@ -13,17 +13,17 @@ <link rel="search" type="application/opensearchdescription+xml" title="東京都小平市議・安竹洋平のまとめ" href="/docs/opensearch.xml"><link rel="stylesheet" href="/docs/assets/css/styles.923769e9.css"> -<script src="/docs/assets/js/runtime~main.9b03f782.js" defer="defer"></script> -<script src="/docs/assets/js/main.091f94e1.js" defer="defer"></script> +<script src="/docs/assets/js/runtime~main.4656a694.js" defer="defer"></script> +<script src="/docs/assets/js/main.e5fd5489.js" defer="defer"></script> </head> <body class="navigation-with-keyboard"> -<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"light")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><div role="region" aria-label="メインコンテンツまでスキップ"><a class="skipToContent_fXgn" href="#__docusaurus_skipToContent_fallback">メインコンテンツまでスキップ</a></div><nav aria-label="ナビゲーション" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="ナビゲーションバーを開く" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/docs/"><div class="navbar__logo"><img src="/docs/img/logo.svg" alt="My Site Logo" class="themedComponent_mlkZ themedComponent--light_NVdE"><img src="/docs/img/logo.svg" alt="My Site Logo" class="themedComponent_mlkZ themedComponent--dark_xIcU"></div><b class="navbar__title text--truncate">小平市議・安竹洋平のまとめ</b></a><a class="navbar__item navbar__link" href="/docs/ippan-situmon/">一般質問</a><a class="navbar__item navbar__link" href="/docs/gian-tou/">議案等</a><a class="navbar__item navbar__link" href="/docs/hattatu/">発達関連</a><a class="navbar__item navbar__link" href="/docs/tags">タグ分類</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/docs/blog">ふらっとブログ</a></div><div class="navbar__items navbar__items--right"><a href="https://cgit.yasutakeyohei.com/" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">CGit<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><div class="toggle_vylO colorModeToggle_DEke"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type="button" disabled="" title="ダークモードを切り替える(現在はライトモード)" aria-label="ダークモードを切り替える(現在はライトモード)" aria-live="polite"><svg viewBox="0 0 24 24" width="24" height="24" class="lightToggleIcon_pyhR"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" class="darkToggleIcon_wfgR"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg></button></div><div class="navbarSearchContainer_Bca1"><button type="button" class="DocSearch DocSearch-Button" aria-label="検索"><span class="DocSearch-Button-Container"><svg width="20" height="20" class="DocSearch-Search-Icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="DocSearch-Button-Placeholder">検索</span></span><span class="DocSearch-Button-Keys"></span></button></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="main-wrapper mainWrapper_z2l0"><div class="container margin-vert--lg"><div class="row"><aside class="col col--3"><nav class="sidebar_re4s thin-scrollbar" aria-label="最近のブログ記事のナビゲーション"><div class="sidebarItemTitle_pO2u margin-bottom--md">全記事</div><ul class="sidebarItemList_Yudw clean-list"><li class="sidebarItem__DBe"><a class="sidebarItemLink_mo7H" href="/docs/blog/2024/03/23/aiki-kouen-opening-ceremony">小平市立合気公園・開園セレモニー</a></li><li class="sidebarItem__DBe"><a class="sidebarItemLink_mo7H" href="/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou">合気公園の整備進捗状況</a></li><li class="sidebarItem__DBe"><a class="sidebarItemLink_mo7H" href="/docs/blog/2024/01/27/docusaurus-admonition-heading-toc">Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法</a></li><li class="sidebarItem__DBe"><a class="sidebarItemLink_mo7H" href="/docs/blog/2024/01/26/new-flat-blog">新ふらっとブログ立ち上げました</a></li></ul></nav></aside><main class="col col--7"><article class="margin-bottom--xl"><header><h2 class="title_f1Hy"><a href="/docs/blog/2024/03/23/aiki-kouen-opening-ceremony">小平市立合気公園・開園セレモニー</a></h2><div class="container_mt6G margin-vert--md"><time datetime="2024-03-23T00:00:00.000Z">2024年3月23日</time> · <!-- -->約7分</div><div class="margin-top--md margin-bottom--sm row"><div class="col col--6 authorCol_Hf19"><div class="avatar margin-bottom--sm"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer" class="avatar__photo-link"><img class="avatar__photo" src="https://cgit.yasutakeyohei.com/yohei.jpg" alt="安竹 洋平"></a><div class="avatar__intro"><div class="avatar__name"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer"><span>安竹 洋平</span></a></div><small class="avatar__subtitle">東京都小平市議会議員</small></div></div></div></div></header><div class="markdown"><p>小平市上水南町二丁目の佐川幸義邸跡地に新設された小平市立合気公園がついに開園しました!</p> -<p>令和6年3月23日(土)午前10時から現地で行われた開園セレモニーに参加しましたので、写真と動画で様子をお知らせします。</p></div><footer class="row docusaurus-mt-lg"><div class="col col--9"><b>タグ:</b><ul class="tags_jXut padding--none margin-left--sm"><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/合気公園">合気公園</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/佐川幸義氏">佐川幸義氏</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/公園">公園</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/まちづくり">まちづくり</a></li></ul></div><div class="col text--right col--3"><a aria-label="小平市立合気公園・開園セレモニーについてもっと見る" href="/docs/blog/2024/03/23/aiki-kouen-opening-ceremony"><b>もっと見る</b></a></div></footer></article><article class="margin-bottom--xl"><header><h2 class="title_f1Hy"><a href="/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou">合気公園の整備進捗状況</a></h2><div class="container_mt6G margin-vert--md"><time datetime="2024-01-31T00:00:00.000Z">2024年1月31日</time> · <!-- -->約6分</div><div class="margin-top--md margin-bottom--sm row"><div class="col col--6 authorCol_Hf19"><div class="avatar margin-bottom--sm"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer" class="avatar__photo-link"><img class="avatar__photo" src="https://cgit.yasutakeyohei.com/yohei.jpg" alt="安竹 洋平"></a><div class="avatar__intro"><div class="avatar__name"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer"><span>安竹 洋平</span></a></div><small class="avatar__subtitle">東京都小平市議会議員</small></div></div></div></div></header><div class="markdown"><p>小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備状況を見てきましたので、写真と動画で現在の様子をお知らせします。</p> -<p>順調に進んでいるようですね😊</p></div><footer class="row docusaurus-mt-lg"><div class="col col--9"><b>タグ:</b><ul class="tags_jXut padding--none margin-left--sm"><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/合気公園">合気公園</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/佐川幸義氏">佐川幸義氏</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/公園">公園</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/まちづくり">まちづくり</a></li></ul></div><div class="col text--right col--3"><a aria-label="合気公園の整備進捗状況についてもっと見る" href="/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou"><b>もっと見る</b></a></div></footer></article><article class="margin-bottom--xl"><header><h2 class="title_f1Hy"><a href="/docs/blog/2024/01/27/docusaurus-admonition-heading-toc">Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法</a></h2><div class="container_mt6G margin-vert--md"><time datetime="2024-01-27T00:00:00.000Z">2024年1月27日</time> · <!-- -->約17分</div><div class="margin-top--md margin-bottom--sm row"><div class="col col--6 authorCol_Hf19"><div class="avatar margin-bottom--sm"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer" class="avatar__photo-link"><img class="avatar__photo" src="https://cgit.yasutakeyohei.com/yohei.jpg" alt="安竹 洋平"></a><div class="avatar__intro"><div class="avatar__name"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer"><span>安竹 洋平</span></a></div><small class="avatar__subtitle">東京都小平市議会議員</small></div></div></div></div></header><div class="markdown"><h2 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurus">Docusaurus🦖<a href="#docusaurus" class="hash-link" aria-label="Docusaurus🦖 への直接リンク" title="Docusaurus🦖 への直接リンク"></a></h2> +<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"light")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><div role="region" aria-label="メインコンテンツまでスキップ"><a class="skipToContent_fXgn" href="#__docusaurus_skipToContent_fallback">メインコンテンツまでスキップ</a></div><nav aria-label="ナビゲーション" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="ナビゲーションバーを開く" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/docs/"><div class="navbar__logo"><img src="/docs/img/logo.svg" alt="My Site Logo" class="themedComponent_mlkZ themedComponent--light_NVdE"><img src="/docs/img/logo.svg" alt="My Site Logo" class="themedComponent_mlkZ themedComponent--dark_xIcU"></div><b class="navbar__title text--truncate">小平市議・安竹洋平のまとめ</b></a><a class="navbar__item navbar__link" href="/docs/ippan-situmon/">一般質問</a><a class="navbar__item navbar__link" href="/docs/gian-tou/">議案等</a><a class="navbar__item navbar__link" href="/docs/hattatu/">発達関連</a><a class="navbar__item navbar__link" href="/docs/tags/">タグ分類</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/docs/blog/">ふらっとブログ</a></div><div class="navbar__items navbar__items--right"><a href="https://cgit.yasutakeyohei.com/" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">CGit<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><div class="toggle_vylO colorModeToggle_DEke"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type="button" disabled="" title="ダー +<p>令和6年3月23日(土)午前10時から現地で行われた開園セレモニーに参加しましたので、写真と動画で様子をお知らせします。</p></div><footer class="row docusaurus-mt-lg"><div class="col col--9"><b>タグ:</b><ul class="tags_jXut padding--none margin-left--sm"><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/合気公園/">合気公園</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/佐川幸義氏/">佐川幸義氏</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/公園/">公園</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/まちづくり/">まちづくり</a></li></ul></div><div class="col text--right col--3"><a aria-label="小平市立合気公園・開園セレモニーについてもっと見る" href="/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/"><b>もっと見る</b></a></div></footer></article><article class="margin-bottom--xl"><header><h2 class="title_f1Hy"><a href="/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/">合気公園の整備進捗状況</a></h2><div class="container_mt6G margin-vert--md"><time datetime="2024-01-31T00:00:00.000Z">2024年1月31日</time> · <!-- -->約6分</div><div class="margin-top--md margin-bottom--sm row"><div class="col col--6 authorCol_Hf19"><div class="avatar margin-bottom--sm"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer" class="avatar__photo-link"><img class="avatar__photo" src="https://cgit.yasutakeyohei.com/yohei.jpg" alt="安竹 洋平"></a><div class="avatar__intro"><div class="avatar__name"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer"><span>安竹 洋平</span></a></div><small class="avatar__subtitle">東京都小平市議会議員</small></div></div></div></div></header><div class="markdown"><p>小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備状況を見てきましたので、写真と動画で現在の様子をお知らせします。</p> +<p>順調に進んでいるようですね😊</p></div><footer class="row docusaurus-mt-lg"><div class="col col--9"><b>タグ:</b><ul class="tags_jXut padding--none margin-left--sm"><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/合気公園/">合気公園</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/佐川幸義氏/">佐川幸義氏</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/公園/">公園</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/まちづくり/">まちづくり</a></li></ul></div><div class="col text--right col--3"><a aria-label="合気公園の整備進捗状況についてもっと見る" href="/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/"><b>もっと見る</b></a></div></footer></article><article class="margin-bottom--xl"><header><h2 class="title_f1Hy"><a href="/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/">Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法</a></h2><div class="container_mt6G margin-vert--md"><time datetime="2024-01-27T00:00:00.000Z">2024年1月27日</time> · <!-- -->約17分</div><div class="margin-top--md margin-bottom--sm row"><div class="col col--6 authorCol_Hf19"><div class="avatar margin-bottom--sm"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer" class="avatar__photo-link"><img class="avatar__photo" src="https://cgit.yasutakeyohei.com/yohei.jpg" alt="安竹 洋平"></a><div class="avatar__intro"><div class="avatar__name"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer"><span>安竹 洋平</span></a></div><small class="avatar__subtitle">東京都小平市議会議員</small></div></div></div></div></header><div class="markdown"><h2 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurus">Docusaurus🦖<a href="#docusaurus" class="hash-link" aria-label="Docusaurus🦖 への直接リンク" title="Docusaurus🦖 への直接リンク"></a></h2> <p>1ヵ月弱使いましたがこの<a href="https://docusaurus.io/" target="_blank" rel="noopener noreferrer">Docusaurus</a>(ドキュサウルス)は数あるCMSの中でも秀逸です。</p> <p>文書作成と管理が容易で、拡張の自由度も非常に高く、完全なオープンソース。</p> -<p>議員活動に重要な「<strong>資料を作成しまとめて公開するツール</strong>」として現状の最適解と感じます。</p></div><footer class="row docusaurus-mt-lg"><div class="col col--9"><b>タグ:</b><ul class="tags_jXut padding--none margin-left--sm"><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/技術">技術</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/docusaurus">docusaurus</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/v-3-1">v3.1</a></li></ul></div><div class="col text--right col--3"><a aria-label="Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法についてもっと見る" href="/docs/blog/2024/01/27/docusaurus-admonition-heading-toc"><b>もっと見る</b></a></div></footer></article><article class="margin-bottom--xl"><header><h2 class="title_f1Hy"><a href="/docs/blog/2024/01/26/new-flat-blog">新ふらっとブログ立ち上げました</a></h2><div class="container_mt6G margin-vert--md"><time datetime="2024-01-26T00:00:00.000Z">2024年1月26日</time> · <!-- -->約1分</div><div class="margin-top--md margin-bottom--sm row"><div class="col col--6 authorCol_Hf19"><div class="avatar margin-bottom--sm"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer" class="avatar__photo-link"><img class="avatar__photo" src="https://cgit.yasutakeyohei.com/yohei.jpg" alt="安竹 洋平"></a><div class="avatar__intro"><div class="avatar__name"><a href="https://yasutakeyohei.com" target="_blank" rel="noopener noreferrer"><span>安竹 洋平</span></a></div><small class="avatar__subtitle">東京都小平市議会議員</small></div></div></div></div></header><div class="markdown"><p>今後の展開を考え、これまでの議会活動等のまとめをこのDocusaurusの仕組みに移行しています。</p> +<p>議員活動に重要な「<strong>資料を作成しまとめて公開するツール</strong>」とし <p>ふらっとブログもこちらに新しく立ち上げることにしました。</p> -<p>議員活動や、その裏で活用している技術について、誰かの役に立つかもしれないことを中心にブログにしていきます😁</p></div><footer class="row docusaurus-mt-lg"><div class="col"><b>タグ:</b><ul class="tags_jXut padding--none margin-left--sm"><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/お知らせ">お知らせ</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/docs/blog/tags/docusaurus">docusaurus</a></li></ul></div></footer></article><nav class="pagination-nav" aria-label="ブログ記事一覧のナビゲーション"></nav></main></div></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title">まとめ</div><ul class="footer__items clean-list"><li class="footer__item"><a class="footer__link-item" href="/docs/ippan-situmon">一般質問</a></li><li class="footer__item"><a class="footer__link-item" href="/docs/gian-tou">議案等</a></li><li class="footer__item"><a class="footer__link-item" href="/docs/hattatu">発達関連</a></li><li class="footer__item"><a class="footer__link-item" href="/docs/tags">🏷️タグ分類</a></li><li class="footer__item"><a class="footer__link-item" href="/docs/search">🔎検索</a></li></ul></div><div class="col footer__col"><div class="footer__title">コミュニティ</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://twitter.com/yasutakeyohei" target="_blank" rel="noopener noreferrer" class="footer__link-item">X(旧Twitter)<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li></ul></div><div class="col footer__col"><div class="footer__title">More</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://yasutakeyohei.com/" target="_self" rel="noopener noreferrer" class="footer__link-item">安竹洋平オフィシャルサイト</a></li><li class="footer__item"><a href="https://yasutakeyohei.com/blog/" target="_self" rel="noopener noreferrer" class="footer__link-item">ふらっとブログ</a></li><li class="footer__item"><a href="https://cgit.yasutakeyohei.com/" target="_self" rel="noopener noreferrer" class="footer__link-item">Cgit(新)</a></li><li class="footer__item"><a href="https://github.com/yasutakeyohei" target="_blank" rel="noopener noreferrer" class="footer__link-item">GitHub(旧)<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2024 安竹洋平. Built with Docusaurus.</div></div></div></footer></div> +<p>議員活動や、その裏で活用している技術について、誰かの役に立つか </body> </html>
\ No newline at end of file diff --git a/build/blog/rss.xml b/build/blog/rss.xml index 725cd153..e04a5584 100644 --- a/build/blog/rss.xml +++ b/build/blog/rss.xml @@ -2,7 +2,7 @@ <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"> <channel> <title>東京都小平市議・安竹洋平のまとめ Blog</title> - <link>https://yasutakeyohei.com/docs/blog</link> + <link>https://yasutakeyohei.com/docs/blog/</link> <description>東京都小平市議・安竹洋平のまとめ Blog</description> <lastBuildDate>Sat, 23 Mar 2024 00:00:00 GMT</lastBuildDate> <docs>https://validator.w3.org/feed/docs/rss2.html</docs> @@ -10,21 +10,21 @@ <language>ja</language> <item> <title><![CDATA[小平市立合気公園・開園セレモニー]]></title> - <link>https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony</link> - <guid>https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony</guid> + <link>https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/</link> + <guid>https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/</guid> <pubDate>Sat, 23 Mar 2024 00:00:00 GMT</pubDate> <description><![CDATA[小平市上水南町二丁目の佐川幸義邸跡地に新設された合気公園の開園セレモニーに参加しました]]></description> <content:encoded><![CDATA[<p>小平市上水南町二丁目の佐川幸義邸跡地に新設された小平市立合気公園がついに開園しました!</p> <p>令和6年3月23日(土)午前10時から現地で行われた開園セレモニーに参加しましたので、写真と動画で様子をお知らせします。</p> <!-- --> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="これまでの経緯">これまでの経緯<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%81%93%E3%82%8C%E3%81%BE%E3%81%A7%E3%81%AE%E7%B5%8C%E7%B7%AF" class="hash-link" aria-label="これまでの経緯 への直接リンク" title="これまでの経緯 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="これまでの経緯">これまでの経緯<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%81%93%E3%82%8C%E3%81%BE%E3%81%A7%E3%81%AE%E7%B5%8C%E7%B7%AF" class="hash-link" aria-label="これまでの経緯 への直接リンク" title="これまでの経緯 への直接リンク"></a></h2> <p>合気公園に関してこれまでの経緯はこちら↓にまとめています。</p> <ul> <li><a href="https://sagawa-aiki-park.com/keii-2/" target="_blank" rel="noopener noreferrer">旧佐川邸の公園化を考える会・これまでの経緯(2)</a></li> <li><a href="https://yasutakeyohei.com/books/reiwa3/20210219_teireikai/seigan-5.html" target="_blank" rel="noopener noreferrer">請願第5号 旧佐川邸の土地を売らないことも含め、市民の意見を聞きながら公園整備を行うことについて</a></li> -<li><a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou">(令和6年1月31日の様子)小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備進捗状況を見てきました</a></li> +<li><a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/">(令和6年1月31日の様子)小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備進捗状況を見てきました</a></li> </ul> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="セレモニーの様子">セレモニーの様子<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%82%BB%E3%83%AC%E3%83%A2%E3%83%8B%E3%83%BC%E3%81%AE%E6%A7%98%E5%AD%90" class="hash-link" aria-label="セレモニーの様子 への直接リンク" title="セレモニーの様子 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="セレモニーの様子">セレモニーの様子<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%82%BB%E3%83%AC%E3%83%A2%E3%83%8B%E3%83%BC%E3%81%AE%E6%A7%98%E5%AD%90" class="hash-link" aria-label="セレモニーの様子 への直接リンク" title="セレモニーの様子 への直接リンク"></a></h2> <p>次のような次第で、約30分間行われました。</p> <ol> <li>開会の辞(水と緑と公園課長)</li> @@ -50,19 +50,19 @@ <p><img decoding="async" loading="lazy" alt="除幕直前" src="https://yasutakeyohei.com/docs/assets/images/kensyouhi-jomaku-1-0764be06bd27039672ee1ffedb9a3a52.jpg" width="594" height="374" class="img_ev3q"></p> <p><img decoding="async" loading="lazy" alt="除幕直後" src="https://yasutakeyohei.com/docs/assets/images/kensyouhi-jomaku-2-bb2820bb69f6856cd72e237e18b88925.jpg" width="602" height="363" class="img_ev3q"><br> <!-- -->↑市長、市議会議長、木村氏、岡江氏により、顕彰碑の除幕が行われました。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="式次第小平市">式次第(小平市)<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%BC%8F%E6%AC%A1%E7%AC%AC%E5%B0%8F%E5%B9%B3%E5%B8%82" class="hash-link" aria-label="式次第(小平市) への直接リンク" title="式次第(小平市) への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="式次第小平市">式次第(小平市)<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%BC%8F%E6%AC%A1%E7%AC%AC%E5%B0%8F%E5%B9%B3%E5%B8%82" class="hash-link" aria-label="式次第(小平市) への直接リンク" title="式次第(小平市) への直接リンク"></a></h3> <iframe src="/docs/assets/files/R6_0323_kodairashiritu-aikikouen-sagawa-yukuyoshi-tei-atochi-kaien-ceremony-shidai-552ecdbb4551386e376f07dd38ddee65.pdf#toolbar=1&navpanes=0" class="tukokusyo"></iframe> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="そのほかの写真">そのほかの写真<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%81%9D%E3%81%AE%E3%81%BB%E3%81%8B%E3%81%AE%E5%86%99%E7%9C%9F" class="hash-link" aria-label="そのほかの写真 への直接リンク" title="そのほかの写真 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="そのほかの写真">そのほかの写真<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%81%9D%E3%81%AE%E3%81%BB%E3%81%8B%E3%81%AE%E5%86%99%E7%9C%9F" class="hash-link" aria-label="そのほかの写真 への直接リンク" title="そのほかの写真 への直接リンク"></a></h2> <p>次の写真と動画はセレモニー直後と3月28日(木)に撮影したものです。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="出入口">出入口<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="出入口 への直接リンク" title="出入口 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="出入口">出入口<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="出入口 への直接リンク" title="出入口 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="正面出入口" src="https://yasutakeyohei.com/docs/assets/images/syoumen-deiriguchi-993c6da7f0a6e8d5a702aac0ae706c54.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->正面出入口</p> <p><img decoding="async" loading="lazy" alt="北東側出入口" src="https://yasutakeyohei.com/docs/assets/images/hokutou-deiriguchi-0d7771b6e57c6bece71eee8bfd756597.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->北東側出入口</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="園名碑">園名碑<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%9C%92%E5%90%8D%E7%A2%91" class="hash-link" aria-label="園名碑 への直接リンク" title="園名碑 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="園名碑">園名碑<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%9C%92%E5%90%8D%E7%A2%91" class="hash-link" aria-label="園名碑 への直接リンク" title="園名碑 への直接�リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園・園名碑" src="https://yasutakeyohei.com/docs/assets/images/aiki-kouen-enmeihi-7b7eec9fb461601989a0c301d08ad1fe.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->道場に使われていた屋根瓦(鬼瓦)の一部が埋め込まれています。道場関係の方によるデザインです。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="顕彰碑">顕彰碑<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E9%A1%95%E5%BD%B0%E7%A2%91" class="hash-link" aria-label="顕彰碑 への直接リンク" title="顕彰碑 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="顕彰碑">顕彰碑<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E9%A1%95%E5%BD%B0%E7%A2%91" class="hash-link" aria-label="顕彰碑 への直接リンク" title="顕彰碑 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園・顕彰碑" src="https://yasutakeyohei.com/docs/assets/images/kensyouhi-17d2c18b534643c6cbedfcf309723e9f.jpg" width="600" height="800" class="img_ev3q"></p> <p><img decoding="async" loading="lazy" alt="合気公園・顕彰碑詳細" src="https://yasutakeyohei.com/docs/assets/images/kensyouhi-syousai-96cfd8ecd49a56680cf6e36dd22cb6fd.jpg" width="600" height="797" class="img_ev3q"></p> <blockquote> @@ -76,28 +76,28 @@ <!-- -->円満に滞り無く動じて居るのである<br> <!-- -->その調和が合氣なのである</p> </blockquote> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="日本庭園">日本庭園<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%EF%BF%BD%EF%BF%BD%E6%97%A5%E6%9C%AC%E5%BA%AD%E5%9C%92" class="hash-link" aria-label="日本庭園 への直接リンク" title="日本庭園 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="日本庭園">日本庭園<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E6%97%A5%E6%9C%AC%E5%BA%AD%E5%9C%92" class="hash-link" aria-label="日本庭園 への直接リンク" title="日本庭園 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="日本庭園(1)" src="https://yasutakeyohei.com/docs/assets/images/nihon-teien-1-cf8387f8e1a4e17848064b53b8b29418.jpg" width="800" height="600" class="img_ev3q"></p> <p><img decoding="async" loading="lazy" alt="日本庭園(2)" src="https://yasutakeyohei.com/docs/assets/images/nihon-teien-2-642c0d47f2360e012602791367e3bfba.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->早くも子どもたちが石に上って遊んでいました😍</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="道場跡地横にあるベンチ">道場跡地横にあるベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E9%81%93%E5%A0%B4%E8%B7%A1%E5%9C%B0%E6%A8%AA%E3%81%AB%E3%81%82%E3%82%8B%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="道場跡地横にあるベンチ への直接リンク" title="道場跡地横にあるベンチ への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="道場跡地横にあるベンチ">道場跡地横にあるベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E9%81%93%E5%A0%B4%E8%B7%A1%E5%9C%B0%E6%A8%AA%E3%81%AB%E3%81%82%E3%82%8B%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="道場跡地横にあるベンチ への直接リンク" title="道場跡地横にあるベンチ への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="道場跡地横のベンチ" src="https://yasutakeyohei.com/docs/assets/images/bench-19b176fdab1dce41a21a77fd28930c57.jpg" width="600" height="800" class="img_ev3q"><br> <!-- -->緑色に舗装された部分が道場跡地です。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="テーブル">テーブル<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB" class="hash-link" aria-label="テーブル への直接リンク" title="テーブル への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="テーブル">テーブル<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB" class="hash-link" aria-label="テーブル への直接リンク" title="テーブル への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="ベンチとテーブル" src="https://yasutakeyohei.com/docs/assets/images/bench-table-5376fa2f30e91288351c9d2398d657c9.jpg" width="600" height="800" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="パーゴラとベンチ">パーゴラとベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E3%83%91%E3%83%BC%E3%82%B4%E3%83%A9%E3%81%A8%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="パーゴラとベンチ への直接リンク" title="パーゴラとベンチ への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="パーゴラとベンチ">パーゴラとベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E3%83%91%E3%83%BC%E3%82%B4%E3%83%A9%E3%81%A8%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="パーゴラとベンチ への直接リンク" title="パーゴラとベンチ への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="パーゴラとベンチ" src="https://yasutakeyohei.com/docs/assets/images/pergola-bench-6bad09d18fc0f86074227af9f10ec229.jpg" width="1976" height="1052" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み">水飲み<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E6%B0%B4%E9%A3%B2%E3%81%BF" class="hash-link" aria-label="水飲み への直接リンク" title="水飲み への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み">水飲み<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E6%B0%B4%E9%A3%B2%E3%81%BF" class="hash-link" aria-label="水飲み への直接リンク" title="水飲み への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="水飲み" src="https://yasutakeyohei.com/docs/assets/images/mizunomi-6861b2b943081670f6dda518b9987a97.jpg" width="800" height="600" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="南西出入口への通路">南西出入口への通路<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%8D%97%E8%A5%BF%E5%87%BA%E5%85%A5%E5%8F%A3%E3%81%B8%E3%81%AE%E9%80%9A%E8%B7%AF" class="hash-link" aria-label="南西出入口への通路 への直接リンク" title="南西出入口への通路 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="南西出入口への通路">南西出入口への通路<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%8D%97%E8%A5%BF%E5%87%BA%E5%85%A5%E5%8F%A3%E3%81%B8%E3%81%AE%E9%80%9A%E8%B7%AF" class="hash-link" aria-label="南西出入口への通路 への直接リンク" title="南西出入口への通路 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="南西出入口への通路" src="https://yasutakeyohei.com/docs/assets/images/nansei-tuuro-f07e1f02537a2968c3e2a0525860c041.jpg" width="800" height="1067" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="看板">看板<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E7%9C%8B%E6%9D%BF" class="hash-link" aria-label="看板 への直接リンク" title="看板 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="看板">看板<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E7%9C%8B%E6%9D%BF" class="hash-link" aria-label="看板 への直接リンク" title="看板 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="公園の立て看板" src="https://yasutakeyohei.com/docs/assets/images/kanban-e593b20cd1889c5c83b5b2d98e3fa6e0.jpg" width="721" height="573" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="売却予定地">売却予定地<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0" class="hash-link" aria-label="売却予定地 への直接リンク" title="売却予定地 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="売却予定地">売却予定地<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0" class="hash-link" aria-label="売却予定地 への直接リンク" title="売却予定地 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="売却予定地" src="https://yasutakeyohei.com/docs/assets/images/urichi-ec052ff93ee9dcc44c923248d5cdea65.jpg" width="800" height="600" class="img_ev3q"><br> <!-- -->佐川幸義氏のご遺族から土地約1,300㎡と現金約3,000万円をご遺贈いただき、さらにふるさと納税で小平市として過去最多の約1,600万円ものご寄附をいただきました。ありがとうございました。それでもなお整備費用として約2千万円が不足しているという理由から、小林洋子市政である小平市は1区画を売却するとしました。</p> <p>路線価は約21万円/㎡ですので、土地の評価額は約2.7億円となります。合計で優に3億円もの寄附をいただいたことになります。また市民と市が理想的な形での協働ができたり、ふるさと納税で歴代記録を更新している画期的な事業だったわけですから、最後は市に残りの整備費用を出してもらいたかったところです。残念ですがこの1区画は令和6年度中に売却予定です。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動画">動画<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony#%E5%8B%95%E7%94%BB" class="hash-link" aria-label="動画 への直接リンク" title="動画 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動画">動画<a href="https://yasutakeyohei.com/docs/blog/2024/03/23/aiki-kouen-opening-ceremony/#%E5%8B%95%E7%94%BB" class="hash-link" aria-label="動画 への直接リンク" title="動画 への直接リンク"></a></h2> <p>Xに投稿した動画をご覧ください。</p> <!-- --> <!-- --> @@ -112,72 +112,72 @@ </item> <item> <title><![CDATA[合気公園の整備進捗状況]]></title> - <link>https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou</link> - <guid>https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou</guid> + <link>https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/</link> + <guid>https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/</guid> <pubDate>Wed, 31 Jan 2024 00:00:00 GMT</pubDate> <description><![CDATA[小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備進捗状況を見てきました]]></description> <content:encoded><![CDATA[<p>小平市上水南町二丁目の佐川幸義邸跡地に新設される合気公園の整備状況を見てきましたので、写真と動画で現在の様子をお知らせします。</p> <p>順調に進んでいるようですね😊</p> <!-- --> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="これまでの経緯">これまでの経緯<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E3%81%93%E3%82%8C%E3%81%BE%E3%81%A7%E3%81%AE%E7%B5%8C%E7%B7%AF" class="hash-link" aria-label="これまでの経緯 への直接リンク" title="これまでの経緯 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="これまでの経緯">これまでの経緯<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E3%81%93%E3%82%8C%E3%81%BE%E3%81%A7%E3%81%AE%E7%B5%8C%E7%B7%AF" class="hash-link" aria-label="これまでの経緯 への直接リンク" title="これまでの経緯 への直接リンク"></a></h2> <p>合気公園に関してこれまでの経緯はこちら↓にまとめています。</p> <ul> <li><a href="https://sagawa-aiki-park.com/keii-2/" target="_blank" rel="noopener noreferrer">旧佐川邸の公園化を考える会・これまでの経緯(2)</a></li> <li><a href="https://yasutakeyohei.com/books/reiwa3/20210219_teireikai/seigan-5.html" target="_blank" rel="noopener noreferrer">請願第5号 旧佐川邸の土地を売らないことも含め、市民の意見を聞きながら公園整備を行うことについて</a></li> </ul> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="市民による公園整備案">市民による公園整備案<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%B8%82%E6%B0%91%E3%81%AB%E3%82%88%E3%82%8B%E5%85%AC%E5%9C%92%E6%95%B4%E5%82%99%E6%A1%88" class="hash-link" aria-label="市民による公園整備案 への直接リンク" title="市民による公園整備案 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="市民による公園整備案">市民による公園整備案<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%B8%82%E6%B0%91%E3%81%AB%E3%82%88%E3%82%8B%E5%85%AC%E5%9C%92%E6%95%B4%E5%82%99%E6%A1%88" class="hash-link" aria-label="市民による公園整備案 への直接リンク" title="市民による公園整備案 への直接リンク"></a></h3> <p>旧佐川邸の公園化を考える会が市に提出した公園計画案はこちら↓(<a href="https://sagawa-aiki-park.com/about-landscape-designer-suzuki-ryou/" target="_blank" rel="noopener noreferrer">ランドスケープデザイナー・鈴木綾氏</a>による)</p> <p><img decoding="async" loading="lazy" alt="旧佐川邸の公園化を考える会が市に提出した合気公園計画案" src="https://yasutakeyohei.com/docs/assets/images/aiki-kouen-simin-plan-48b76a337e6c5dfd8943e884a2f9f048.jpg" width="1147" height="796" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="市の整備イメージ案">市の整備イメージ案<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%B8%82%E3%81%AE%E6%95%B4%E5%82%99%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%E6%A1%88" class="hash-link" aria-label="市の整備イメージ案 への直接リンク" title="市の整備イメージ案 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="市の整備イメージ案">市の整備イメージ案<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%B8%82%E3%81%AE%E6%95%B4%E5%82%99%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%E6%A1%88" class="hash-link" aria-label="市の整備イメージ案 への直接リンク" title="市の整備イメージ案 への直接リンク"></a></h3> <p>上記の提案を受けて市が令和5年5月に提示した整備イメージ案がこちら↓</p> <p><img decoding="async" loading="lazy" alt="市民による計画案を受けて小平市水と緑と公園課が提示した合気公園整備イメージ案" src="https://yasutakeyohei.com/docs/assets/images/aiki-kouen-si-plan-129ef71b08ef22635cbf3182bd928a02.png" width="1110" height="918" class="img_ev3q"></p> <p>この整備イメージに基づいて整備が進んでいます。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="写真">写真<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%86%99%E7%9C%9F" class="hash-link" aria-label="写真 への直接リンク" title="写真 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="写真">写真<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%86%99%E7%9C%9F" class="hash-link" aria-label="写真 への直接リンク" title="写真 への直接リンク"></a></h2> <p>次の写真と動画は令和6年1月30日(火)に撮影したものです。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="お知らせ">お知らせ<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B" class="hash-link" aria-label="お知らせ への直接リンク" title="お知らせ への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="お知らせ">お知らせ<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B" class="hash-link" aria-label="お知らせ への直接リンク" title="お知らせ への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・お知らせ" src="https://yasutakeyohei.com/docs/assets/images/IMG_1825-64c4b9866c80fe0abbb0bf2e1fe1ebb9.jpg" width="551" height="542" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="野外卓顕彰碑背なしベンチ">野外卓・顕彰碑・背なしベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E9%87%8E%E5%A4%96%E5%8D%93%E9%A1%95%E5%BD%B0%E7%A2%91%E8%83%8C%E3%81%AA%E3%81%97%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="野外卓・顕彰碑・背なしベンチ への直接リンク" title="野外卓・顕彰碑・背なしベンチ への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="野外卓顕彰碑背なしベンチ">野外卓・顕彰碑・背なしベンチ<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E9%87%8E%E5%A4%96%E5%8D%93%E9%A1%95%E5%BD%B0%E7%A2%91%E8%83%8C%E3%81%AA%E3%81%97%E3%83%99%E3%83%B3%E3%83%81" class="hash-link" aria-label="野外卓・顕彰碑・背なしベンチ への直接リンク" title="野外卓・顕彰碑・背なしベンチ への直接リンク"></a></h3> <p>養生されている?道場跡の部分が見えます。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・野外卓・顕彰碑・背なしベンチ" src="https://yasutakeyohei.com/docs/assets/images/IMG_1833-b7ef33a610457fe1d526461184a41f08.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="パーゴラ顕彰碑">パーゴラ・顕彰碑<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E3%83%91%E3%83%BC%E3%82%B4%E3%83%A9%E9%A1%95%E5%BD%B0%E7%A2%91" class="hash-link" aria-label="パーゴラ・顕彰碑 への直接リンク" title="パーゴラ・顕彰碑 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="パーゴラ顕彰碑">パーゴラ・顕彰碑<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E3%83%91%E3%83%BC%E3%82%B4%E3%83%A9%E9%A1%95%E5%BD%B0%E7%A2%91" class="hash-link" aria-label="パーゴラ・顕彰碑 への直接リンク" title="パーゴラ・顕彰碑 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・パーゴラ・顕彰碑" src="https://yasutakeyohei.com/docs/assets/images/IMG_1835-cfa4076eb29b2b8cc0d8874943d80d73.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="メッシュフェンスブロック">メッシュフェンス・ブロック<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E3%83%A1%E3%83%83%E3%82%B7%E3%83%A5%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF" class="hash-link" aria-label="メッシュフェンス・ブロック への直接リンク" title="メッシュフェンス・ブロック への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="メッシュフェンスブロック">メッシュフェンス・ブロック<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E3%83%A1%E3%83%83%E3%82%B7%E3%83%A5%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF" class="hash-link" aria-label="メッシュフェンス・ブロック への直接リンク" title="メッシュフェンス・ブロック への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・メッシュフェンス・ブロック" src="https://yasutakeyohei.com/docs/assets/images/IMG_1837-f48b1fddbced472efa9120b6cc806bca.jpg" width="806" height="288" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み場東側出入口">水飲み場・東側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E6%B0%B4%E9%A3%B2%E3%81%BF%E5%A0%B4%E6%9D%B1%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="水飲み場・東側出入口 への直接リンク" title="水飲み場・東側出入口 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み場東側出入口">水飲み場・東側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E6%B0%B4%E9%A3%B2%E3%81%BF%E5%A0%B4%E6%9D%B1%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="水飲み場・東側出入口 への直接リンク" title="水飲み場・東側出入口 への直接リンク"></a></h3> <p>園名碑が少し写っています。トラックが止まっていて撮影できませんでした。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み場東側出入口-1">水飲み場・東側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E6%B0%B4%E9%A3%B2%E3%81%BF%E5%A0%B4%E6%9D%B1%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3-1" class="hash-link" aria-label="水飲み場・東側出入口 への直接リンク" title="水飲み場・東側出入口 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="水飲み場東側出入口-1">水飲み場・東側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E6%B0%B4%E9%A3%B2%E3%81%BF%E5%A0%B4%E6%9D%B1%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3-1" class="hash-link" aria-label="水飲み場・東側出入口 への直接リンク" title="水飲み場・東側出入口 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・水飲み場・東側出入口" src="https://yasutakeyohei.com/docs/assets/images/IMG_1839-ce33aef4d309c62629b14da7375ae8b0.jpg" width="806" height="510" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="庭園付近">庭園付近<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%BA%AD%E5%9C%92%E4%BB%98%E8%BF%91" class="hash-link" aria-label="庭園付近 への直接リンク" title="庭園付近 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="庭園付近">庭園付近<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%BA%AD%E5%9C%92%E4%BB%98%E8%BF%91" class="hash-link" aria-label="庭園付近 への直接リンク" title="庭園付近 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・庭園付近" src="https://yasutakeyohei.com/docs/assets/images/IMG_1840-0f3db6ae991c0f078f20fee60b8c3af1.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側出入口への道目隠しフェンス">西側出入口への道・目隠しフェンス<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3%E3%81%B8%E3%81%AE%E9%81%93%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9" class="hash-link" aria-label="西側出入口への道・目隠しフェンス への直接リンク" title="西側出入口への道・目隠�しフェンス への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側出入口への道目隠しフェンス">西側出入口への道・目隠しフェンス<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3%E3%81%B8%E3%81%AE%E9%81%93%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9" class="hash-link" aria-label="西側出入口への道・目隠しフェンス への直接リンク" title="西側出入口への道・目�隠しフェンス への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側出入口への道・目隠しフェンス" src="https://yasutakeyohei.com/docs/assets/images/IMG_1841-1213113daa3a84ea4ec1891433cef4d4.jpg" width="605" height="806" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="南東の角">南東の角<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%8D%97%E6%9D%B1%E3%81%AE%E8%A7%92" class="hash-link" aria-label="南東の角 への直接リンク" title="南東の角 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="南東の角">南東の角<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%8D%97%E6%9D%B1%E3%81%AE%E8%A7%92" class="hash-link" aria-label="南東の角 への直接リンク" title="南東の角 への直接リンク"></a></h3> <p>道路が拡幅されていることが分かります。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・南東の角" src="https://yasutakeyohei.com/docs/assets/images/IMG_1843-131de4b3c2c08bd035543f280d14c33d.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="庭園">庭園<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%BA%AD%E5%9C%92" class="hash-link" aria-label="庭園 への直接リンク" title="庭園 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="庭園">庭園<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%BA%AD%E5%9C%92" class="hash-link" aria-label="庭園 への直接リンク" title="庭園 への直接リンク"></a></h3> <p>このあたりは今後手が入るのかもですね。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・園庭" src="https://yasutakeyohei.com/docs/assets/images/IMG_1846-0fd9cb08e1b567000985b81091583cfa.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="売却予定地">売却予定地<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0" class="hash-link" aria-label="売却予定地 への直接リンク" title="売却予定地 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="売却予定地">売却予定地<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0" class="hash-link" aria-label="売却予定地 への直接リンク" title="売却予定地 への直接リンク"></a></h3> <p>奥の砂が盛ってあるところが売却予定地です。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・売却予定地(奥の砂が盛ってあるところ)" src="https://yasutakeyohei.com/docs/assets/images/IMG_1848-43e902c9da25fe7057d637033947e3c4.jpg" width="806" height="399" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="拡幅された東側道路">拡幅された東側道路<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E6%8B%A1%E5%B9%85%E3%81%95%E3%82%8C%E3%81%9F%E6%9D%B1%E5%81%B4%E9%81%93%E8%B7%AF" class="hash-link" aria-label="拡幅された東側道路 への直接リンク" title="拡幅された東��側道路 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="拡幅された東側道路">拡幅された東側道路<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E6%8B%A1%E5%B9%85%E3%81%95%E3%82%8C%E3%81%9F%E6%9D%B1%E5%81%B4%E9%81%93%E8%B7%AF" class="hash-link" aria-label="拡幅された東側道路 への直接リンク" title="拡幅された��東側道路 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・拡幅された東側道路" src="https://yasutakeyohei.com/docs/assets/images/IMG_1851-f078dce1352d522d9e6afa2735f029ae.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="道路拡幅は売却予定地前まで">道路拡幅は売却予定地前まで<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E9%81%93%E8%B7%AF%E6%8B%A1%E5%B9%85%E3%81%AF%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0%E5%89%8D%E3%81%BE%E3%81%A7" class="hash-link" aria-label="道路拡幅は売却予定地前まで への直接リンク" title="道路拡幅は売却予定地前まで への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="道路拡幅は売却予定地前まで">道路拡幅は売却予定地前まで<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E9%81%93%E8%B7%AF%E6%8B%A1%E5%B9%85%E3%81%AF%E5%A3%B2%E5%8D%B4%E4%BA%88%E5%AE%9A%E5%9C%B0%E5%89%8D%E3%81%BE%E3%81%A7" class="hash-link" aria-label="道路拡幅は売却予定地前まで への直接リンク" title="道路拡幅は売却予定地前まで への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・道路拡幅は売却予定地前まで" src="https://yasutakeyohei.com/docs/assets/images/IMG_1852-dd9afeb80c05b28d253a05229a12650e.jpg" width="806" height="426" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="佐川氏が四股を踏んでいたとされる石">佐川氏が四股を踏んでいたとされる石<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E4%BD%90%E5%B7%9D%E6%B0%8F%E3%81%8C%E5%9B%9B%E8%82%A1%E3%82%92%E8%B8%8F%E3%82%93%E3%81%A7%E3%81%84%E3%81%9F%E3%81%A8%E3%81%95%E3%82%8C%E3%82%8B%E7%9F%B3" class="hash-link" aria-label="佐川氏が四股を踏んでいたとされる石 への直接リンク" title="佐川氏が四股を踏んでいたとされる石 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="佐川氏が四股を踏んでいたとされる石">佐川氏が四股を踏んでいたとされる石<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E4%BD%90%E5%B7%9D%E6%B0%8F%E3%81%8C%E5%9B%9B%E8%82%A1%E3%82%92%E8%B8%8F%E3%82%93%E3%81%A7%E3%81%84%E3%81%9F%E3%81%A8%E3%81%95%E3%82%8C%E3%82%8B%E7%9F%B3" class="hash-link" aria-label="佐川氏が四股を踏んでいたとされる石 への直接リンク" title="佐川氏が四股を踏んでいたとされる石 への直接リンク"></a></h3> <p>右下の平らな石が、佐川幸義氏が四股を踏んでいたとされる石です。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・四股を踏んでいたと思われる石" src="https://yasutakeyohei.com/docs/assets/images/IMG_1853-148e683f38a81ae796e46e2128dcf13d.jpg" width="806" height="605" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側出入口">西側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="西側出入口 への直接リンク" title="西側出入口 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側出入口">西側出入口<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E5%87%BA%E5%85%A5%E5%8F%A3" class="hash-link" aria-label="西側出入口 への直接リンク" title="西側出入口 への直接リンク"></a></h3> <p>案内板はまだ設置されていません。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側出入口" src="https://yasutakeyohei.com/docs/assets/images/IMG_1854-4dded2a7e4a1145d24e950330c1b5df5.jpg" width="806" height="545" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側園路と目隠しフェンス">西側園路と目隠しフェンス<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E5%9C%92%E8%B7%AF%E3%81%A8%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9" class="hash-link" aria-label="西側園路と目隠しフェンス への直接リンク" title="西側園路と目隠しフェンス への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側園路と目隠しフェンス">西側園路と目隠しフェンス<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E5%9C%92%E8%B7%AF%E3%81%A8%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9" class="hash-link" aria-label="西側園路と目隠しフェンス への直接リンク" title="西側園路と目隠しフェンス への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側園路と目隠しフェンス" src="https://yasutakeyohei.com/docs/assets/images/IMG_1855-fd4fdcc03efce5e08b84ab074160246f.jpg" width="605" height="806" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側の工事看板目隠しフェンス上部">西側の工事看板・目隠しフェンス上部<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E3%81%AE%E5%B7%A5%E4%BA%8B%E7%9C%8B%E6%9D%BF%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9%E4%B8%8A%E9%83%A8" class="hash-link" aria-label="西側の工事看板・目隠しフェンス上部 への直接リンク" title="西側の工事看板・目隠しフェンス上部 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側の工事看板目隠しフェンス上部">西側の工事看板・目隠しフェンス上部<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E3%81%AE%E5%B7%A5%E4%BA%8B%E7%9C%8B%E6%9D%BF%E7%9B%AE%E9%9A%A0%E3%81%97%E3%83%95%E3%82%A7%E3%83%B3%E3%82%B9%E4%B8%8A%E9%83%A8" class="hash-link" aria-label="西側の工事看板・目隠しフェンス上部 への直接リンク" title="西側の工事看板・目隠しフェンス上部 への直接リンク"></a></h3> <p>目隠しフェンス上部は人の乗り越えられないような突起が出ています。</p> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側の工事看板・目隠しフェンス上部" src="https://yasutakeyohei.com/docs/assets/images/IMG_1856-d0146a7d69bb5e78cd0e66baa9c4a838.jpg" width="504" height="704" class="img_ev3q"></p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側園路の舗装">西側園路の舗装<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E8%A5%BF%E5%81%B4%E5%9C%92%E8%B7%AF%E3%81%AE%E8%88%97%E8%A3%85" class="hash-link" aria-label="西側園路の舗装 への直接リンク" title="西側園路の舗装 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="西側園路の舗装">西側園路の舗装<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E8%A5%BF%E5%81%B4%E5%9C%92%E8%B7%AF%E3%81%AE%E8%88%97%E8%A3%85" class="hash-link" aria-label="西側園路の舗装 への直接リンク" title="西側園路の舗装 への直接リンク"></a></h3> <p><img decoding="async" loading="lazy" alt="合気公園整備中・西側園路の舗装" src="https://yasutakeyohei.com/docs/assets/images/IMG_1857-60cf5c630dd6c5ca0007dd430eb39cf3.jpg" width="605" height="806" class="img_ev3q"></p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動画">動画<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou#%E5%8B%95%E7%94%BB" class="hash-link" aria-label="動画 への直接リンク" title="動画 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動画">動画<a href="https://yasutakeyohei.com/docs/blog/2024/01/31/sagawa-aiki-kouen-seibi-joukyou/#%E5%8B%95%E7%94%BB" class="hash-link" aria-label="動画 への直接リンク" title="動画 への直接リンク"></a></h2> <!-- --> <!-- --> <div class="react-tweet-theme root_D3qd root_Y6tr"><article class="article_kRZ8"><span class="skeleton_FMR8" style="height:3rem;margin-bottom:0.75rem"></span><span class="skeleton_FMR8" style="height:6rem;margin:0.5rem 0"></span><div style="border-top:var(--tweet-border);margin:0.5rem 0"></div><span class="skeleton_FMR8" style="height:2rem"></span><span class="skeleton_FMR8" style="height:2rem;border-radius:9999px;margin-top:0.5rem"></span></article></div> @@ -191,17 +191,17 @@ </item> <item> <title><![CDATA[Docusaurusの注意書きや警告文のタイトルを見出しにして、目次にも乗せる方法]]></title> - <link>https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc</link> - <guid>https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc</guid> + <link>https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/</link> + <guid>https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/</guid> <pubDate>Sat, 27 Jan 2024 00:00:00 GMT</pubDate> <description><![CDATA[Docusaurus(V3.1)では、注意書きや警告文(Admonition)は見出し(Heading)にはならず目次にも掲載されないので、Remark/RehypeのプラグインとSwizzleを活用して実現しました。]]></description> - <content:encoded><![CDATA[<h2 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurus">Docusaurus🦖<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#docusaurus" class="hash-link" aria-label="Docusaurus🦖 への直接リンク" title="Docusaurus🦖 への直接リンク"></a></h2> + <content:encoded><![CDATA[<h2 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurus">Docusaurus🦖<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#docusaurus" class="hash-link" aria-label="Docusaurus🦖 への直接リンク" title="Docusaurus🦖 への直接リンク"></a></h2> <p>1ヵ月弱使いましたがこの<a href="https://docusaurus.io/" target="_blank" rel="noopener noreferrer">Docusaurus</a>(ドキュサウルス)は数あるCMSの中でも秀逸です。</p> <p>文書作成と管理が容易で、拡張の自由度も非常に高く、完全なオープンソース。</p> <p>議員活動に重要な「<strong>資料を作成しまとめて公開するツール</strong>」として現状の最適解と感じます。</p> <!-- --> <p>Facebookが母体なのでいろいろと気になるところですが、<a href="https://ja.legacy.reactjs.org/" target="_blank" rel="noopener noreferrer">React</a>を初めとして有益なソフトウェアを完全なオープンソースとして提供してくれていることは純粋にありがたいと感じます。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="admonitionのタイトルが見出しにならない">Admonitionのタイトルが見出しにならない<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#admonition%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%81%8C%E8%A6%8B%E5%87%BA%E3%81%97%E3%81%AB%E3%81%AA%E3%82%89%E3%81%AA%E3%81%84" class="hash-link" aria-label="Admonitionのタイトルが見出しにならない への直接リンク" title="Admonitionのタイトルが見出しにならない への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="admonitionのタイトルが見出しにならない">Admonitionのタイトルが見出しにならない<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#admonition%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%81%8C%E8%A6%8B%E5%87%BA%E3%81%97%E3%81%AB%E3%81%AA%E3%82%89%E3%81%AA%E3%81%84" class="hash-link" aria-label="Admonitionのタイトルが見出しにならない への直接リンク" title="Admonitionのタイトルが見出しにならない への直接リンク"></a></h2> <p>さてDocusaurusには<a href="https://docusaurus.io/docs/markdown-features/admonitions" target="_blank" rel="noopener noreferrer">Admonition</a>(注意書きや警告文)を容易にMarkdownで書く方法が用意されています。</p> <p>たとえばinfoなら、次のようにMarkdownで書けば、</p> <div class="language-mdx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionの記法(mdもしくはmdxに記載)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-mdx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">:::info[infoの例]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">ここに文章を書く</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">:::</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> @@ -215,47 +215,47 @@ <p>次のように本文中に見出しを書く方法もありますが</p> <div class="language-mdx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionの記法(mdもしくはmdxに記載)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-mdx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">:::info</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">#### テスト</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">~文章~</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">:::</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>見た目がイマイチになります。</p> -<div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>備考</div><div class="admonitionContent_UjKb"><h4 class="anchor anchorWithStickyNavbar_LWe7" id="テスト">テスト<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%83%86%E3%82%B9%E3%83%88" class="hash-link" aria-label="テスト への直接リンク" title="テスト への直接リンク"></a></h4><p>~文章~</p></div></div> +<div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>備考</div><div class="admonitionContent_UjKb"><h4 class="anchor anchorWithStickyNavbar_LWe7" id="テスト">テスト<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%83%86%E3%82%B9%E3%83%88" class="hash-link" aria-label="テスト への直接リンク" title="テスト への直接リンク"></a></h4><p>~文章~</p></div></div> <p><a href="https://github.com/facebook/docusaurus/discussions/7146" target="_blank" rel="noopener noreferrer">ほかのユーザーからの要望</a>も上がっており、私も少し不便に感じていたので、次の仕様になるようカスタマイズしましたのでその方法を解説します。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="カスタマイズ後はどうなるか">カスタマイズ後はどうなるか<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E5%BE%8C%E3%81%AF%E3%81%A9%E3%81%86%E3%81%AA%E3%82%8B%E3%81%8B" class="hash-link" aria-label="カスタマイズ後はどうなるか への直接リンク" title="カスタマイズ後はどうなるか への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="カスタマイズ後はどうなるか">カスタマイズ後はどうなるか<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E5%BE%8C%E3%81%AF%E3%81%A9%E3%81%86%E3%81%AA%E3%82%8B%E3%81%8B" class="hash-link" aria-label="カスタマイズ後はどうなるか への直接リンク" title="カスタマイズ後はどうなるか への直接リンク"></a></h2> <p>後述のカスタマイズをすると、Admonitionのタイトル部に(通常の見出しMarkdownと同様に)<strong>#を冒頭に2個以上入れる</strong> ことで見出しになります。またTOCにも反映されます。#を2個以上としているのは、H1をAdmonitionには使わないはずのため。#を入れない場合は見出しにならず、TOCにも反映されません。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトル冒頭にを入れた場合">タイトル冒頭に#を入れた場合<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E5%86%92%E9%A0%AD%E3%81%AB%E3%82%92%E5%85%A5%E3%82%8C%E3%81%9F%E5%A0%B4%E5%90%88" class="hash-link" aria-label="タイトル冒頭に#を入れた場合 への直接リンク" title="タイトル冒頭に#を入れた場合 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトル冒頭にを入れた場合">タイトル冒頭に#を入れた場合<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E5%86%92%E9%A0%AD%E3%81%AB%E3%82%92%E5%85%A5%E3%82%8C%E3%81%9F%E5%A0%B4%E5%90%88" class="hash-link" aria-label="タイトル冒頭に#を入れた場合 への直接リンク" title="タイトル冒頭に#を入れた場合 への直接リンク"></a></h3> <div class="language-mdx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionの記法(mdもしくはmdxに記載)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-mdx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">:::info[#### 見出しになりTOCに反映されるタイトルの例]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">#が4つ分のためH4見出しになります。TOCにも反映されます。</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">:::</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>↓</p> <!-- --> <div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span><h4 id="見出しになりtocに反映されるタイトルの例" class="anchor title anchorWithStickyNavbar_LWe7">見出しになり、TOCに反映されるタイトルの例</h4></div><div class="admonitionContent_UjKb"><p>#が4つ分のためH4見出しになります。TOCにも反映されます。</p></div></div> <p>このブログでもTOCに表示されています。<br> <!-- -->なおマウスカーソルを乗せた際にハッシュリンク(#)が表示されるようにするにはCSSの設定が必要です。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトル冒頭にを入れない場合">タイトル冒頭に#を入れない場合<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E5%86%92%E9%A0%AD%E3%81%AB%E3%82%92%E5%85%A5%E3%82%8C%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88" class="hash-link" aria-label="タイトル冒頭に#を入れない場合 への直接リンク" title="タイトル冒頭に#を入れない場合 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトル冒頭にを入れない場合">タイトル冒頭に#を入れない場合<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E5%86%92%E9%A0%AD%E3%81%AB%E3%82%92%E5%85%A5%E3%82%8C%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88" class="hash-link" aria-label="タイトル冒頭に#を入れない場合 への直接リンク" title="タイトル冒頭に#を入れない場合 への直接リンク"></a></h3> <div class="language-mdx codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionの記法(mdもしくはmdxに記載)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-mdx codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">:::info[見出しにならずTOCに反映されないタイトルの例]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">#がないため見出しにならず、TOCにも反映されません。</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">:::</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>↓</p> <!-- --> <div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span><h4 id="見出しにならずtocに反映されないタイトルの例" class="anchor title anchorWithStickyNavbar_LWe7">見出しにならず、TOCに反映されないタイトルの例</h4></div><div class="admonitionContent_UjKb"><p>#がないため見出しになりません。</p></div></div> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトルにhtmlを入れることも可能">タイトルにHTMLを入れることも可能<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%81%ABhtml%E3%82%92%E5%85%A5%E3%82%8C%E3%82%8B%E3%81%93%E3%81%A8%E3%82%82%E5%8F%AF%E8%83%BD" class="hash-link" aria-label="タイトルにHTML��を入れることも可能 への直接リンク" title="タイトルにHTMLを入れることも可能 への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="タイトルにhtmlを入れることも可能">タイトルにHTMLを入れることも可能<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%81%ABhtml%E3%82%92%E5%85%A5%E3%82%8C%E3%82%8B%E3%81%93%E3%81%A8%E3%82%82%E5%8F%AF%E8%83%BD" class="hash-link" aria-label="タイトルにHTMLを入れることも可能 への直接リンク" title="タイトルにHTMLを入れることも可能 への直接リンク"></a></h3> <p>なおタイトル部にHTMLを入れることもできます。TOCにも反映されます。</p> <!-- --> <div class="theme-admonition theme-admonition-info admonition_Gfwi alert alert--info"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span><h4 id="テスト123テスト下線" class="anchor title anchorWithStickyNavbar_LWe7">テスト<sup>123</sup>テスト<u>下線</u></h4></div><div class="admonitionContent_UjKb"><div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">タイトル部のmarkdownは次の通りです。</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">#### テスト<sup>123</sup>テスト<u>下線</u></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div></div> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="カスタマイズに利用した機能">カスタマイズに利用した機能<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E3%81%AB%E5%88%A9%E7%94%A8%E3%81%97%E3%81%9F%E6%A9%9F%E8%83%BD" class="hash-link" aria-label="カスタマイズに利用した機能 への直接リンク" title="カスタマイズに利用した機能 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="カスタマイズに利用した機能">カスタマイズに利用した機能<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%E3%81%AB%E5%88%A9%E7%94%A8%E3%81%97%E3%81%9F%E6%A9%9F%E8%83%BD" class="hash-link" aria-label="カスタマイズに利用した機能 への直接リンク" title="カスタマイズに利用した機能 への直接リンク"></a></h2> <p>カスタマイズは次の機能を活用しました。</p> <ul> <li><a href="https://docusaurus.io/docs/markdown-features/plugins" target="_blank" rel="noopener noreferrer">Remark/Rehypeのプラグイン</a></li> <li><a href="https://docusaurus.io/docs/swizzling" target="_blank" rel="noopener noreferrer">Swizzling</a></li> </ul> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="remarkとrehypeについて">RemarkとRehypeについて<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#remark%E3%81%A8rehype%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" class="hash-link" aria-label="RemarkとRehypeについて への直接リンク" title="RemarkとRehypeについて への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="remarkとrehypeについて">RemarkとRehypeについて<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#remark%E3%81%A8rehype%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" class="hash-link" aria-label="RemarkとRehypeについて への直接リンク" title="RemarkとRehypeについて への直接リンク"></a></h3> <p>RemarkとRehypeは、MarkdownをHTMLに変換するプロセスにおいて、AST(抽象構文木・Abstract Syntax Tree)に作用するプラグインです。なお<a href="https://github.com/unifiedjs/unified" target="_blank" rel="noopener noreferrer">ASTを操作するオープンソースのエコシステム</a>の中にはもう1つ<a href="https://github.com/retextjs/retext" target="_blank" rel="noopener noreferrer">Retext</a>というプラグインもありますが、Docusaurusには実装されていないようです。</p> -<div class="language-md codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">markdownからHTMLへ変換処理の流れ</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-md codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">| ........................ process ........................... |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">| .......... parse ... | ... run ... | ... stringify ..........|</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token code keyword" style="color:#00009f"> +--------+ +----------+</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Input ->- | Parser | ->- Syntax Tree ->- | Compiler | ->- Output</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------+ | +----------+</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> X</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------------+</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> | Transformers |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------------+</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> +<div class="language-md codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">markdownからHTMLへ変換処理の流れ</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-md codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">| ........................ process ........................... |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">| .......... parse ... | ... run ... | ... stringify ..........|</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token code keyword" style="color:#00009f"> +--------+ +----------+</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Input ->- | Parser | ->- Syntax Tree ->- | Compiler | ->- Output</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------+ | +----------+</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> X</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------------+</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> | Transformers |</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> +--------------+</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボード��にコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>上図(<a href="https://github.com/unifiedjs/unified?tab=readme-ov-file#overview" target="_blank" rel="noopener noreferrer">Unified Overviewより</a>)にTransformersとあるところがRemark/Rehypeの動作するところ。</p> <p>RemarkはMarkdown形式で、RehypeはHTML形式でASTを扱います。どちらも同じようにASTを操作できますが、データ構造が違うため、目的に応じて選択することになるのかなと思います。</p> <p><a href="https://vivliostyle.github.io/vivliostyle_doc/ja/vivliostyle-user-group-vol2/spring-raining/index.html" target="_blank" rel="noopener noreferrer">こちらのサイト</a>などが詳しいです。</p> -<h4 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurusにおけるプラグインの実行タイミング">Docusaurusにおけるプラグインの実行タイミング<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#docusaurus%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%AE%E5%AE%9F%E8%A1%8C%E3%82%BF%E3%82%A4%E3%83%9F%E3%83%B3%E3%82%B0" class="hash-link" aria-label="Docusaurusにおけるプラグインの実行タイミング への直接リンク" title="Docusaurusにおけるプラグインの実行タイミング への直接リンク"></a></h4> +<h4 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurusにおけるプラグインの実行タイミング">Docusaurusにおけるプラグインの実行タイミング<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#docusaurus%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%AE%E5%AE%9F%E8%A1%8C%E3%82%BF%E3%82%A4%E3%83%9F%E3%83%B3%E3%82%B0" class="hash-link" aria-label="Docusaurusにおけるプラグインの実行タイミング への直接リンク" title="Docusaurusにおけるプラグインの実行タイミング への直接リンク"></a></h4> <p>Docusaurusでこれらのプラグインを利用するためにはdocusaurus.config.jsonに設定が必要です。<a href="https://docusaurus.io/docs/markdown-features/plugins" target="_blank" rel="noopener noreferrer">このページによると</a>次の4種類の設定値にてプラグインを登録できます。</p> <table><thead><tr><th></th><th>デフォルトプラグイン適用前</th><th>デフォルトプラグイン適用後</th></tr></thead><tbody><tr><td>Remark<br>Markdown形式</td><td>beforeDefaultRemarkPlugins</td><td>remarkPlugins</td></tr><tr><td>Rehype<br>HTML形式</td><td>beforeDefaultRehypePlugins</td><td>rehypePlugins</td></tr></tbody></table> <p>MarkdownからHTMLへの変換処理のところで、Docusaurusは自前のプラグイン(デフォルトプラグイン)を使い「見出しにidをつける」「ASTからTOCを作成する」などの処理を行っています。そのため今回のように「Amonitionのタイトルを読んでTOCに反映する」ためには、デフォルトプラグイン適用前と適用後の両方のタイミングでの処理が必要になります。</p> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="swizzlingについて">Swizzlingについて<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#swizzling%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" class="hash-link" aria-label="Swizzlingについて への直接リンク" title="Swizzlingについて への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="swizzlingについて">Swizzlingについて<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#swizzling%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" class="hash-link" aria-label="Swizzlingについて への直接リンク" title="Swizzlingについて への直接リンク"></a></h3> <p>Swizzlingは<a href="https://docusaurus.io/docs/swizzling" target="_blank" rel="noopener noreferrer">こちら</a>に説明があるとおりの機能で、簡単に言うとReactのコンポーネントをカスタマイズできる機能です。</p> <p>Swizzlingの設定をすると、Docusaurusがデフォルトのコンポーネントの代わりに自動的にカスタマイズしたコンポーネントを使用します。</p> <p>今回は、デフォルトのAdmonitionにないID属性を持たせるためAdmonitionコンポーネントをカスタマイズしました。Swizzlingの設定をすることにより、デフォルトのAdmonitionの代わりにこのカスタムコンポーネントが使われるようにします。</p> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動作原理">動作原理<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E5%8B%95%E4%BD%9C%E5%8E%9F%E7%90%86" class="hash-link" aria-label="動作原理 への直接リンク" title="動作原理 への直接リンク"></a></h2> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="動作原理">動作原理<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E5%8B%95%E4%BD%9C%E5%8E%9F%E7%90%86" class="hash-link" aria-label="動作原理 への直接リンク" title="動作原理 への直接リンク"></a></h2> <p>TOCは「ASTに含まれているheading要素を単純に配列に入れている」だけですが、この処理はカスタマイズで上書きできません。そこで、カスタマイズできる処理だけでAdmonitionのタイトルをTOCに反映する方法として次を思いつき、実装しました。</p> <ol> <li>docusaurusのデフォルトプラグインがTOCの処理を行うより前に、Admonitionのタイトル部を見出しとして新規作成し、Admonition要素の直前に追加する</li> @@ -263,31 +263,31 @@ <li>デフォルトプラグインの処理が終了したら作成した見出しは不要になるので削除する。その際、削除する見出しと同じタイトルをもつAdmonition要素を探し、idを与える</li> <li>AdmonitionコンポーネントでidをHTMLタグに付与する</li> </ol> -<h2 class="anchor anchorWithStickyNavbar_LWe7" id="実装">実装<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E5%AE%9F%E8%A3%85" class="hash-link" aria-label="実装 への直接リンク" title="実装 への直接リンク"></a></h2> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurusconfigjson">docusaurus.config.json<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#docusaurusconfigjson" class="hash-link" aria-label="docusaurus.config.json への直接リンク" title="docusaurus.config.json への直接リンク"></a></h3> +<h2 class="anchor anchorWithStickyNavbar_LWe7" id="実装">実装<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E5%AE%9F%E8%A3%85" class="hash-link" aria-label="実装 への直接リンク" title="実装 への直接リンク"></a></h2> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="docusaurusconfigjson">docusaurus.config.json<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#docusaurusconfigjson" class="hash-link" aria-label="docusaurus.config.json への直接リンク" title="docusaurus.config.json への直接リンク"></a></h3> <p>まずdocusaurus.config.jsonにimportとplugin設定を記入します(ハイライト部)。</p> <p>これでDocusaurusデフォルトプラグイン適用の前後にそれぞれ自作のRemark/Rehypeプラグインが実行されることになります。</p> <p>blogなどを入れている場合は、そのプロパティにも記載します。</p> <div class="language-js codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">docusaurus.config.json</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-js codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">admonitionTitleToHeadingBeforeTOC</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'./src/remark/admonition-title-to-heading-before-toc.js'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">admonitionTitleToHeadingAfterTOC</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'./src/rehype/admonition-title-to-heading-after-toc.js'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">default</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">presets</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token string" style="color:#e3116c">'classic'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token doc-comment comment" style="color:#999988;font-style:italic">/** </span><span class="token doc-comment comment keyword" style="color:#00009f;font-style:italic">@type</span><span class="token doc-comment comment" style="color:#999988;font-style:italic"> </span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">{</span><span class="token doc-comment comment class-name keyword" style="color:#00009f;font-style:italic">import</span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">(</span><span class="token doc-comment comment class-name string" style="color:#e3116c;font-style:italic">'@docusaurus/preset-classic'</span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">)</span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">.</span><span class="token doc-comment comment class-name" style="color:#999988;font-style:italic">Options</span><span class="token doc-comment comment class-name punctuation" style="color:#393A34;font-style:italic">}</span><span class="token doc-comment comment" style="color:#999988;font-style:italic"> */</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">docs</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">beforeDefaultRemarkPlugins</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">admonitionTitleToHeadingBeforeTOC</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">rehypePlugins</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">admonitionTitleToHeadingAfterTOC</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">blog</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">beforeDefaultRemarkPlugins</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">admonitionTitleToHeadingBeforeTOC</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">rehypePlugins</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">admonitionTitleToHeadingAfterTOC</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// ...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="remarkrehypeプラグイン">Remark/Rehypeプラグイン<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#remarkrehype%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3" class="hash-link" aria-label="Remark/Rehypeプラグイン への直接リンク" title="Remark/Rehypeプラグイン への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="remarkrehypeプラグイン">Remark/Rehypeプラグイン<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#remarkrehype%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3" class="hash-link" aria-label="Remark/Rehypeプラグイン への直接リンク" title="Remark/Rehypeプラグイン への直接リンク"></a></h3> <p>次にプラグインを実装します。</p> <p>docusaurusのsrcディレクトリ下にrehypeとremarkというディレクトリを作り、次のファイル名と内容で2つのプラグインを作ります。</p> <div class="language-js codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">src/rehype/admonition-title-to-heading-before-toc.js</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-js codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports punctuation" style="color:#393A34">{</span><span class="token imports">visit</span><span class="token imports punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'unist-util-visit'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:#d73a49">plugin</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">options</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:#d73a49">transformer</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">async</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">ast</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> newBeginningText </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">""</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> visitor </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">node</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> index</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> parent</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">type</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'containerDirective'</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// :::infoなどに続くタイトル冒頭Text部(冒頭#を含む(もしくは含まない)部分)を取得(:::info ##** )</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// (タイトル全体にはHTML等が含まれる可能性があるため冒頭Text部だけ操作する、残りはシャロ―コピー)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> beginningText </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">value</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// タイトル冒頭Text部に#が2つ以上連続しているとき</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">##</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">test</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">beginningText</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// タイトル冒頭部から#とそれに続く空白を削除</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> newBeginningText </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> beginningText</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">replace</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// タイトル部冒頭だけ更新し、残りはシャロ―コピー</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// まずタイトル部全体をシャロ―コピー</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> titleNodes </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain">node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// 冒頭要素のvalueを更新(ほかはシャロ―コピー)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> newTitleBeginningNode </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain">titleNodes</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">value</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> newBeginningText</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// タイトルノードの冒頭要素だけ更新(ほかはシャロ―コピー)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> newTitleNodes </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain">titleNodes </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> newTitleNodes</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> newTitleBeginningNode</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// visitしているcontainerDirectiveの前にheadingノードを追加</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">splice</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">index</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'heading'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">depth</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">beginningText</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">match</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">##</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">||</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">length</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// #の連続数がheadingの深さ</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> newTitleNodes</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// 次に検索するのはindexを2つ分飛ばしたノード</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> index </span><span class="token operator" style="color:#393A34">+</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">2</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token function" style="color:#d73a49">visit</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">ast</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'containerDirective'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> visitor</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> transformer</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">default</span><span class="token plain"> plugin</span><span class="token punctuation" style="color:#393A34">;</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <div class="language-js codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">src/rehype/admonition-title-to-heading-after-toc.js</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-js codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports punctuation" style="color:#393A34">{</span><span class="token imports">visit</span><span class="token imports punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'unist-util-visit'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:#d73a49">plugin</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">options</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:#d73a49">transformer</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">async</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">ast</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> hId </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword null nil" style="color:#00009f">null</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> hContent </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token keyword null nil" style="color:#00009f">null</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token function" style="color:#d73a49">visit</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">ast</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'element'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">node</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> index</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> parent</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">h</span><span class="token regex regex-source language-regex char-class char-class-punctuation punctuation" style="color:#393A34">[</span><span class="token regex regex-source language-regex char-class range" style="color:#36acaa">2</span><span class="token regex regex-source language-regex char-class range range-punctuation operator" style="color:#393A34">-</span><span class="token regex regex-source language-regex char-class range" style="color:#36acaa">6</span><span class="token regex regex-source language-regex char-class char-class-punctuation punctuation" style="color:#393A34">]</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">$</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">test</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">tagName</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">id</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// H要素(h2~h6)を見つけた場合</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// IDとタイトルの冒頭Text部を取得する</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> hId </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">id</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> hContent </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">value</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> node</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">value</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// 続くAdmonitionを探す(docはH要素とadmonitionが連続しているが</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// blogではなぜか改行要素{ type:'text', value:'\n' }が間に入っているので念のため隣接3要素を探す</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">for</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> i </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> index </span><span class="token operator" style="color:#393A34">+</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"> i </span><span class="token operator" style="color:#393A34"><</span><span class="token plain"> index </span><span class="token operator" style="color:#393A34">+</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">4</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> i </span><span class="token operator" style="color:#393A34"><</span><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">length</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"> i</span><span class="token operator" style="color:#393A34">++</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">i</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">i</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">tagName</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'admonition'</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// admonition(div)を見つけた場合</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> admonitionNode </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">i</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// admonitionタイトルの冒頭Text部分を取得(properties.titleもしくはchildren[0].children[0].value)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> admonitionNodeTitle </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">title</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">title</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">value</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">##</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">test</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">admonitionNodeTitle</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">&&</span><span class="token plain"> admonitionNodeTitle</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">replace</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> hContent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// #で始まっていて、タイトル冒頭部が同じ場合</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// divのidをHタグのidに設定</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> admonitionNode</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">properties</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">id</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> hId</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// H要素を削除</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> parent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">children</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">splice</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">index</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> transformer</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">default</span><span class="token plain"> plugin</span><span class="token punctuation" style="color:#393A34">;</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <div class="theme-admonition theme-admonition-note admonition_Gfwi alert alert--secondary"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>Admonitionのツリー構造</div><div class="admonitionContent_UjKb"><p>参考までに、Remarkのプラグインから見るとAdmonitionのASTはたとえば次のようになっています。</p><div class="language-javascript codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">Admonitionのツリー構造(一例)</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-javascript codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'containerDirective'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">name</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'info'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">attributes</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'paragraph'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">data</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">directiveLabel</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">true</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'text'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">value</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'#### info title もしHTML等が入ると(ここにaタグを入れると)'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'mdxJsxTextElement'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">name</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'a'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">attributes</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">data</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Array</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'text'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">value</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'このようにタイトル部が別々の要素として配列に入っている。'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">start</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">line</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1347</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">column</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">8</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">offset</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">34053</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">end</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">line</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1347</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">column</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">55</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">offset</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">34100</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">type</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'paragraph'</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">children</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Array</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token literal-property property" style="color:#36acaa">position</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token known-class-name class-name">Object</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div></div> -<h3 class="anchor anchorWithStickyNavbar_LWe7" id="swizzling">Swizzling<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#swizzling" class="hash-link" aria-label="Swizzling への直接リンク" title="Swizzling への直接リンク"></a></h3> +<h3 class="anchor anchorWithStickyNavbar_LWe7" id="swizzling">Swizzling<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#swizzling" class="hash-link" aria-label="Swizzling への直接リンク" title="Swizzling への直接リンク"></a></h3> <p>次にSwizzlingです。</p> <p>Docusaurusのsrc/themeディレクトリにAdmonitionというディレクトリを作り、次の一例のファイルを格納します。</p> <p>なお<a href="https://docusaurus.io/docs/swizzling#ejecting" target="_blank" rel="noopener noreferrer">ここに説明がある通り</a>SwizzlingにはEjectingとWrappingの方法があります。</p> <p>WrappingではAdmonitionの内部までカスタマイズできないため「タイトル部分にidプロパティを付ける」といったことができません。そのためEjectingを使います。</p> <div class="theme-admonition theme-admonition-note admonition_Gfwi alert alert--secondary"><div class="admonitionHeading_f1Ed"><span class="admonitionIcon_kpSf"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>注記</div><div class="admonitionContent_UjKb"><p>Ejectingを使う場合はバージョンアップによってデフォルトのコンポーネントと挙動が変わってくる可能性があるのでアップグレードの際は注意が必要です。</p></div></div> -<h4 class="anchor anchorWithStickyNavbar_LWe7" id="ejecting">Ejecting<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#ejecting" class="hash-link" aria-label="Ejecting への直接リン�ク" title="Ejecting への直接リンク"></a></h4> +<h4 class="anchor anchorWithStickyNavbar_LWe7" id="ejecting">Ejecting<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#ejecting" class="hash-link" aria-label="Ejecting への直接�リンク" title="Ejecting への直接リンク"></a></h4> <div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">npm run swizzle @docusaurus/theme-classic Admonition -- --eject</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>Docusaurus V3.1では次のようなメッセージが出ますので、YESを選びます。</p> <div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">? Do you really want to swizzle this unsafe internal component? » - Use arrow-keys. Return to submit.</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> NO: cancel and stay safe</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">> YES: I know what I am doing!</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>Ejectingをすると、実質的にnode_modulesの@docusaurus/theme-classic/lib/themeにあるコンポーネントがsrc/themeディレクトリにコピーされます。</p> <p>あとはコピーされたコンポーネントをいじるだけです。</p> -<h4 class="anchor anchorWithStickyNavbar_LWe7" id="コードの変更">コードの変更<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc#%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AE%E5%A4%89%E6%9B%B4" class="hash-link" aria-label="コードの変更 への直接リンク" title="コードの変更 への直接リンク"></a></h4> +<h4 class="anchor anchorWithStickyNavbar_LWe7" id="コードの変更">コードの変更<a href="https://yasutakeyohei.com/docs/blog/2024/01/27/docusaurus-admonition-heading-toc/#%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AE%E5%A4%89%E6%9B%B4" class="hash-link" aria-label="コードの変更 への直接リンク" title="コードの変更 への直接リンク"></a></h4> <p>Layoutファイルを次のように変更するのみです。</p> <div class="language-js codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_Ktv7">src/theme/Admonition/Layout/index.js</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-js codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports maybe-class-name">React</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'react'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">clsx</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'clsx'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports punctuation" style="color:#393A34">{</span><span class="token imports maybe-class-name">ThemeClassNames</span><span class="token imports punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'@docusaurus/theme-common'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">styles</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'./styles.module.css'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">import</span><span class="token plain"> </span><span class="token imports">headingStyles</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">from</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">'@docusaurus/theme-classic/lib/theme/Heading/styles.module.css'</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function maybe-class-name" style="color:#d73a49">AdmonitionContainer</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter punctuation" style="color:#393A34">{</span><span class="token parameter">type</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> className</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> children</span><span class="token parameter punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">div</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token function" style="color:#d73a49">clsx</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token maybe-class-name">ThemeClassNames</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">common</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonition</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token maybe-class-name">ThemeClassNames</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">common</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">admonitionType</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">type</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> styles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonition</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> className</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">children</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">div</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function maybe-class-name" style="color:#d73a49">AdmonitionHeading</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter punctuation" style="color:#393A34">{</span><span class="token parameter">icon</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> title</span><span class="token parameter punctuation" style="color:#393A34">,</span><span class="token parameter"> id</span><span class="token parameter punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">let</span><span class="token plain"> trimmedTitle </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// titleにHTML等が含まれている場合は文字列ではなく配列になる</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token punctuation" style="color:#393A34">(</span><span class="token keyword" style="color:#00009f">typeof</span><span class="token plain"> title </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"string"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// 文字列冒頭の#の数を数える(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">match</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">toString</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">match</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">||</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">length</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// #を省いたタイトルを得る</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> trimmedTitle </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">></span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">replace</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token keyword" style="color:#00009f">typeof</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">===</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"string"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">match</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">match</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">||</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">length</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> trimmedTitle </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> depth </span><span class="token operator" style="color:#393A34">></span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">replace</span><span class="token punctuation" style="color:#393A34">(</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token regex regex-source language-regex anchor function" style="color:#d73a49">^</span><span class="token regex regex-source language-regex" style="color:#36acaa">#</span><span class="token regex regex-source language-regex quantifier number" style="color:#36acaa">+</span><span class="token regex regex-delimiter" style="color:#36acaa">/</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">''</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">trim</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token spread operator" style="color:#393A34">...</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">.</span><span class="token method function property-access" style="color:#d73a49">slice</span><span class="token punctuation" style="color:#393A34">(</span><span class="token number" style="color:#36acaa">1</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// スクロール位置調整のcss</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> classNames </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> </span><span class="token function" style="color:#d73a49">clsx</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#e3116c">"anchor"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"title"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> headingStyles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">anchorWithStickyNavbar</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token comment" style="color:#999988;font-style:italic">// depthに応じて見出しタグをレンダー</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">div className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">styles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonitionHeading</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">span className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">styles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonitionIcon</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">icon</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">span</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:#393A34">=></span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">depth </span><span class="token operator" style="color:#393A34">==</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">3</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">h3</span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">classNames</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">h3</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">depth </span><span class="token operator" style="color:#393A34">==</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">4</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">h4</span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">classNames</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">h4</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">depth </span><span class="token operator" style="color:#393A34">==</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">5</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">h5</span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">classNames</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">h5</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">depth </span><span class="token operator" style="color:#393A34">==</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">6</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">h6</span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">classNames</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">h6</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">else</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">trimmedTitle</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">div</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function maybe-class-name" style="color:#d73a49">AdmonitionContent</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter punctuation" style="color:#393A34">{</span><span class="token parameter">children</span><span class="token parameter punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> children </span><span class="token operator" style="color:#393A34">?</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token plain">div className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">styles</span><span class="token punctuation" style="color:#393A34">.</span><span class="token property-access">admonitionContent</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">children</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token plain">div</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token keyword null nil" style="color:#00009f">null</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword module" style="color:#00009f">export</span><span class="token plain"> </span><span class="token keyword module" style="color:#00009f">default</span><span class="token plain"> </span><span class="token keyword" style="color:#00009f">function</span><span class="token plain"> </span><span class="token function maybe-class-name" style="color:#d73a49">AdmonitionLayout</span><span class="token punctuation" style="color:#393A34">(</span><span class="token parameter">props</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword" style="color:#00009f">const</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">type</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> icon</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> title</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> children</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> className</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">=</span><span class="token plain"> props</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token keyword control-flow" style="color:#00009f">return</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token maybe-class-name">AdmonitionContainer</span><span class="token plain"> type</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">type</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> className</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">className</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token maybe-class-name">AdmonitionHeading</span><span class="token plain"> title</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">title</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> icon</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">icon</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> id</span><span class="token operator" style="color:#393A34">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">id</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">/</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token maybe-class-name">AdmonitionContent</span><span class="token operator" style="color:#393A34">></span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">children</span><span class="token punctuation" style="color:#393A34">}</span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token maybe-class-name">AdmonitionContent</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token operator" style="color:#393A34"><</span><span class="token operator" style="color:#393A34">/</span><span class="token maybe-class-name">AdmonitionContainer</span><span class="token operator" style="color:#393A34">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="クリップボードにコードをコピー" title="コピー" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>上記を設定後、npm start等の再起動が必要です。</p> @@ -299,8 +299,8 @@ </item> <item> <title><![CDATA[新ふらっとブログ立ち上げました]]></title> - <link>https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog</link> - <guid>https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog</guid> + <link>https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog/</link> + <guid>https://yasutakeyohei.com/docs/blog/2024/01/26/new-flat-blog/</guid> <pubDate>Fri, 26 Jan 2024 00:00:00 GMT</pubDate> <description><![CDATA[新ふらっとブログ立ち上げました。議員活動やその裏で活用している技術について、誰かの役に立つかもしれないことを中心にまとめています。]]></description> <content:encoded><![CDATA[<p>今後の展開を考え、これまでの議会活動等のまとめをこのDocusaurusの仕組みに移行しています。</p> diff --git a/build/blog/tags/docusaurus/index.html b/build/blog/tags/docusaurus/index.html Binary files differindex defbaf60..6f4cfb35 100644 --- a/build/blog/tags/docusaurus/index.html +++ b/build/blog/tags/docusaurus/index.html diff --git a/build/blog/tags/index.html b/build/blog/tags/index.html Binary files differindex ebaa203a..289c9fe3 100644 --- a/build/blog/tags/index.html +++ b/build/blog/tags/index.html diff --git a/build/blog/tags/v-3-1/index.html b/build/blog/tags/v-3-1/index.html Binary files differindex 5cfee750..c369b8b1 100644 --- a/build/blog/tags/v-3-1/index.html +++ b/build/blog/tags/v-3-1/index.html diff --git a/build/blog/tags/お知らせ/index.html b/build/blog/tags/お知らせ/index.html Binary files differindex 9f72702b..bd6a9dd7 100644 --- a/build/blog/tags/お知らせ/index.html +++ b/build/blog/tags/お知らせ/index.html diff --git a/build/blog/tags/まちづくり/index.html b/build/blog/tags/まちづくり/index.html Binary files differindex 450eadc6..ef19682e 100644 --- a/build/blog/tags/まちづくり/index.html +++ b/build/blog/tags/まちづくり/index.html diff --git a/build/blog/tags/佐川幸義氏/index.html b/build/blog/tags/佐川幸義氏/index.html Binary files differindex 714f0bd9..8541de53 100644 --- a/build/blog/tags/佐川幸義氏/index.html +++ b/build/blog/tags/佐川幸義氏/index.html diff --git a/build/blog/tags/公園/index.html b/build/blog/tags/公園/index.html Binary files differindex fd1fadb5..6bbface7 100644 --- a/build/blog/tags/公園/index.html +++ b/build/blog/tags/公園/index.html diff --git a/build/blog/tags/合気公園/index.html b/build/blog/tags/合気公園/index.html Binary files differindex 5e686525..8fa32a9c 100644 --- a/build/blog/tags/合気公園/index.html +++ b/build/blog/tags/合気公園/index.html diff --git a/build/blog/tags/技術/index.html b/build/blog/tags/技術/index.html Binary files differindex 75a29929..c7f0678f 100644 --- a/build/blog/tags/技術/index.html +++ b/build/blog/tags/技術/index.html |