aboutsummaryrefslogtreecommitdiff
path: root/docusaurus.config.js
diff options
context:
space:
mode:
author安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com>2024-01-25 00:19:55 +0900
committer安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com>2024-01-25 00:19:55 +0900
commit8decfc0f2fd96a84078013c64323b7fe92727068 (patch)
tree7cb80f31f2dece2d1f4c61fd29070303316ddbae /docusaurus.config.js
parentdaebaa7821d0424e220f9fa300b6fbe2608ff374 (diff)
Admonitionタイトル見出し化機能の追加等
Diffstat (limited to 'docusaurus.config.js')
-rw-r--r--docusaurus.config.js20
1 files 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',
},