Skip to content
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

feat: 能否支持文档版本切换功能? #208

Closed
easonzen opened this issue Jun 5, 2020 · 1 comment
Closed

feat: 能否支持文档版本切换功能? #208

easonzen opened this issue Jun 5, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@easonzen
Copy link

easonzen commented Jun 5, 2020

背景:目前使用技术方案lerna + dumi 开发组件库
需求:组件的迭代同时会伴随着组件文档的更新,但是有时希望看到以前某一个版本的组件文档。目前没有在dumi官网上找到解决这个问题的解决方案,期待回复,Thanks~

@easonzen easonzen added the enhancement New feature or request label Jun 5, 2020
@PeachScript
Copy link
Member

PeachScript commented Jun 5, 2020

不涉及 major 的切换可参考 dumi 官网使用 Badge 标记新版本特性:

### editLink <Badge>2.2.2+</Badge>

涉及 major 的切换,由于组件库本身已经存在不兼容,所以无法在同一文档中共存,可参考 Ant Design 官网采用导航菜单切换版本的形式:https://ant.design/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants