𝑾𝒖𝒙𝒉
𝑾𝒖𝒙𝒉
Same question.
这里还有更新吗?我想给 ahooks 提交一个 PR,可以丰富 hook 的 JSDoc 信息,对我而言。 hook 加入简单 `@see:` 可以直接在业务代码点击链接查看 hook 更多细节的内容。比如 Example 这些,可以把基础示例添加到 JSDoc 中。一直以来想提这个功能,还是先问有没有计划吧。可以的话我可以继续尝试下去。隔壁 VueUse 就 JSDos https://github.com/vueuse/vueuse/blob/fb08312267dde14cb6eb879119b03870bb711d8f/packages/core/templateRef/index.ts#L5-L11 。感谢大佬~
> 可以加上 `@see` 嗯嗯,那我整理一下,CV 一下这个事情。然后发起一个 PR
I think so too, as an active member of the [antd community](https://github.com/ant-design/ant-design/), their demos are very intuitive, and I'm familiar with the demo's build scheme, [dumi](https://github.com/umijs/dumi) is a great tool...
> 在 node_modules 里向 @ant-design/icons-svg/package.json 字段中添加具体的 React版本号, `@ant-design/icons-svg` 这个包好像就不需要 react 吧?
应该是 dumi 上游 umijs 用了 Webpack Module Federation 的特性导致的。查阅了几个相关的 issue, 貌似没找到解决方案,一个最简单粗暴的方法就是在 `.dumirc` 中添加 `mfsu: false` 来禁用模块联邦 😂 ref: - https://github.com/webpack/webpack/issues/13457 - https://github.com/okta/okta-auth-js/pull/1269/files#r942691060 - https://github.com/mui/material-ui/issues/24013
感觉可以通过自定义主题实现, 或者写插件支持魔改
> 有没有考虑过把 API 解析能力切回 react-docgen-typescript ? 好东西, 研究研究
> > > 有没有考虑过把API解析能力切回react-docgen-typescript? > > > > > > 好东西,研究 > > 研究出来了吗 没有,又菜又忙...
我直接 CV 了 vitepress 实现了一个自定义插件 https://github.com/Wxh16144/dumi-plugin-code-snippets 并且为此单独发了一个包,主要还是想先绕过 dumi 的 review 给着急用的开发者平替,但这个功能还是得内置到 dumi 会中更好。