mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
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:
@@ -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() },
|
||||
|
||||
Reference in New Issue
Block a user