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

The plan of father-doc in alpha stage #23

Closed
PeachScript opened this issue Dec 4, 2019 · 2 comments
Closed

The plan of father-doc in alpha stage #23

PeachScript opened this issue Dec 4, 2019 · 2 comments

Comments

@PeachScript
Copy link
Member

  1. SSR 的支持
  2. 自定义主题的支持
  3. 给预览框加上外部在线编辑器链接
  4. 右侧的 affix menu
  5. ...
@xiaohuoni
Copy link
Member

xiaohuoni commented Dec 4, 2019

2.自定义主题的支持
我的想法大概是只要在这里放权,可以使用umi默认的约定layout,只需要向组件注入menu和pagelayout等数据即可。这样用户就可以完全的自定义。
https://github.com/umijs/father-doc/blob/d79a04cbc12f48096d36ef95d07f2b47db87855a/packages/umi-plugin-father-doc/src/routes/getRouteConfig.ts#L12

相关问题应该会有《多主题的支持》
感觉可以把现有的加载 layout 文件 改成加载 headmenufooter等文件,这样后续可以提供配置,加上umi ui plugin 可视化的组合。

@PeachScript
Copy link
Member Author

2.自定义主题的支持
...

这点我们的想法一致,需要放权的还有 import 自定义组件( Alert、Previewer )的地方,但这里目前处理得比较丑陋,开放主题的时候需要做优化

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

No branches or pull requests

2 participants