From 4caabdbff5b99f19c8a0de47908ca62d89796cb0 Mon Sep 17 00:00:00 2001 From: whg517 Date: Mon, 24 Aug 2026 11:30:30 +0800 Subject: [PATCH] fix: remove duplicated markdown and themes config keys PR #35 was stacked on #33, so it carried #33's mermaid commit. #35 merged first, then #33 merged its own copy of the same change, leaving docusaurus.config.ts with two `markdown` keys and two `themes` keys. This broke main two ways: docusaurus.config.ts(34,3): error TS1117: An object literal cannot have multiple properties with the same name. TypeScript Lint has failed on main since fa4beab, and because the deploy job needs that check, the site has not deployed since c8a5e91. Functionally the duplicate `markdown` key also silently reverted the deprecation fix: the second literal wins, and it has no `hooks` member, so markdown.hooks.onBrokenMarkdownLinks was dropped and the v4 deprecation warning came back. Drop the duplicate block, keeping the one that carries hooks. Co-Authored-By: Claude Opus 5 --- docusaurus.config.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 62f8df8..5da09b1 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -30,12 +30,6 @@ const config: Config = { }, themes: ['@docusaurus/theme-mermaid'], - // Render ```mermaid fenced blocks as diagrams instead of plain code blocks. - markdown: { - mermaid: true, - }, - themes: ['@docusaurus/theme-mermaid'], - // Even if you don't use internationalization, you can use this field to set // useful metadata like html lang. For example, if your site is Chinese, you // may want to replace "en" with "zh-Hans".