chore(site): markdown supports custom anchors (#53316)

* chore(site): markdown supports custom anchors

wait: https://github.com/umijs/dumi/pull/2268

* chore: update deps

* chore: update

* chore: comment

* chore(deps): bump dumi to `2.4.20`

* chore: temp scripts

* Revert "chore: temp scripts"

This reverts commit 49a2ab86c4.
This commit is contained in:
𝑾𝒖𝒙𝒉
2025-04-02 11:03:02 +08:00
committed by GitHub
parent 08cdaf21c7
commit 48b8efbfde
5 changed files with 99 additions and 11 deletions

View File

@@ -5,6 +5,7 @@ import os from 'node:os';
import rehypeAntd from './.dumi/rehypeAntd';
import remarkAntd from './.dumi/remarkAntd';
import remarkAnchor from './.dumi/remarkAnchor';
import { version } from './package.json';
export default defineConfig({
@@ -52,7 +53,7 @@ export default defineConfig({
'@ant-design/icons$': '@ant-design/icons/lib',
},
extraRehypePlugins: [rehypeAntd],
extraRemarkPlugins: [remarkAntd],
extraRemarkPlugins: [remarkAntd, remarkAnchor],
metas: [
{ name: 'theme-color', content: '#1677ff' },
{ name: 'build-time', content: Date.now().toString() },