From 05714f08e06ea66b44de9ac72404f9f7859e36e5 Mon Sep 17 00:00:00 2001 From: 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> Date: Sat, 27 Jan 2024 01:23:49 +0900 Subject: blogにもプラグイン登録 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index a0aae9ad..570112a1 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -56,8 +56,7 @@ const config = { // Remove this to remove the "edit this page" links. //editUrl: // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', - //remarkPlugins: [sectionPrefix], - //beforeDefaultRehypePlugins: [admonitionTitleToHeadingBeforeTOC], + beforeDefaultRemarkPlugins: [admonitionTitleToHeadingBeforeTOC], rehypePlugins: [admonitionTitleToHeadingAfterTOC], }, @@ -67,6 +66,9 @@ const config = { postsPerPage: 'ALL', blogSidebarTitle: '全記事', blogSidebarCount: 'ALL', + + beforeDefaultRemarkPlugins: [admonitionTitleToHeadingBeforeTOC], + rehypePlugins: [admonitionTitleToHeadingAfterTOC], }, theme: { customCss: './src/css/custom.css', @@ -116,7 +118,7 @@ const config = { { to: 'blog', position: 'left', - label: '技術ブログ', + label: 'ふらっとブログ', }, { href: 'https://cgit.yasutakeyohei.com/', -- cgit v1.2.3-54-g00ecf