Ant Design Style Dumi ThemeAnt Design Style Dumi Theme
Guide
Components
Config
Changelog
⌘ K

Table of Contents

apiHeader
token
codePlacement
Config
Document Configuration
Custom
ApiHeader
Configuration
Footer
PREV
Config
NEXT
ApiHeader

相关资源

Ant Design
Ant Design Pro
Ant Design Pro Components
Umi-React 应用开发框架
Dumi-组件/文档研发工具
qiankun-微前端框架

社区

Medium
Twitter
yuqueAnt Design 语雀专栏
Ant Design 知乎专栏
体验科技专栏
seeconfSEE Conf-SEE Conf-蚂蚁体验科技大会

帮助

GitHub
更新日志
讨论

more products更多产品

yuque语雀-知识创作与分享工具
AntVAntV-数据可视化解决方案
EggEgg-企业级 Node.js 框架
kitchenKitchen-Sketch 工具集
xtech蚂蚁体验科技
Copyright © 2022-2024
Made with ❤️ by 蚂蚁集团 - AFX & 数字科技
‌
‌
‌
‌

Document Configuration

In addition to the default MarkDown configuration of dumi, some additional fields have been added to meet more customization needs.

apiHeader

Example

md

Field Table

Field NameDescriptionDefault ValueExample
pkgImported component librarypackage.nameantd
defaultImportWhether to enable defaultImportfalse-
docUrlThe markdown address of this document-https://github.com/xxx/xxx
sourceUrlPoints to the source code of this method-https://path/to/soure.tsx

token

The token configuration field is used to control the content size display in the document using tokens.

md

The supported token list is as follows:

Property NameTypeDefault ValueDescription
footerHeightnumber300Website footer height
sidebarWidthnumber240Sidebar width
tocWidthnumber176Directory width
contentMaxWidthnumber1152Maximum content width

codePlacement