-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: 如何将 father 2 中内置的 docz 切换为 dumi 做组件库研发? #241
Comments
按照上面方法从father doc 升级过来的,报错如下:
|
重新用回 father,命令改回 “father build” 后可以成功打包。 |
只切换 doc 部分不应该会影响到 build 的功能,有复现仓库吗 |
This was referenced Jan 15, 2021
不想迁移咋办?我能用旧版吗? |
能,卸载 father,手动安装 docz 最新版 + father-build |
Closed
PeachScript
changed the title
docs: 如何将 father 中内置的 docz 切换为 dumi 做组件库研发?
docs: 如何将 father 2 中内置的 docz 切换为 dumi 做组件库研发?
Aug 31, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
前言
dumi 是基于 Umi 的 React 组件库研发工具,能够提供开箱即用、顺滑流畅的组件研发体验,可和 father-build 一起搭配使用。
下个版本的 father 将会使用 dumi 作为内置文档工具。
迁移步骤
1. 更新依赖
移除无用的
father
依赖,改为father-build
和dumi
:2. 更新启动脚本
3. 移除
.fatherrc
中的无用配置export default { - doc: { /* 文档配置 */ }, }
4. 替换文档写法
修改
.mdx
为.md
,并将Playground
或者JSX
替换为代码块:5. 替换文档配置
检查
.md
文档中顶部的frontmatter
配置项,替换为 dumi 的配置项,例如:以上,大功告成,执行
npm run dev
开始全新的组件库研发体验。如果遇到问题请直接在下方反馈。
The text was updated successfully, but these errors were encountered: