From 8decfc0f2fd96a84078013c64323b7fe92727068 Mon Sep 17 00:00:00 2001 From: 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> Date: Thu, 25 Jan 2024 00:19:55 +0900 Subject: Admonitionタイトル見出し化機能の追加等 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index c1c0692e..03d5572b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -5,6 +5,8 @@ // See: https://docusaurus.io/docs/api/docusaurus-config import {themes as prismThemes} from 'prism-react-renderer'; +import admonitionTitleToHeading from './src/rehype/admonition-title-to-heading.js'; +import admonitionTitleToHeadingBeforeTOC from './src/remark/admonition-title-to-heading-before-toc.js'; /** @type {import('@docusaurus/types').Config} */ const config = { @@ -54,6 +56,10 @@ 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: [admonitionTitleToHeading], }, blog: false, theme: { @@ -94,7 +100,7 @@ const config = { type: 'docSidebar', sidebarId: 'dyslexiaSidebar', position: 'left', - label: '発達', + label: '発達関連', }, { to: 'tags', @@ -123,9 +129,17 @@ const config = { to: '/gian-tou', }, { - label: '発達', + label: '発達関連', to: '/hattatu', }, + { + label: '🏷️タグ分類', + to: 'tags', + }, + { + label: '🔎検索', + to: 'search', + }, ], }, { @@ -141,7 +155,7 @@ const config = { title: 'More', items: [ { - label: 'オフィシャルサイト', + label: '安竹洋平オフィシャルサイト', to: 'https://yasutakeyohei.com/', target: '_self', }, -- cgit v1.2.3-54-g00ecf