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

For the development of other framework document parsing, can this functionality be added through plugin dependency instead of modifying the source code? #592

Open
kongwu- opened this issue Sep 4, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@kongwu-
Copy link

kongwu- commented Sep 4, 2023

Summary

For the development of other framework document parsing, this functionality can be added through plugin dependency instead of modifying the source code.

Modifying the source code is, after all, a bit too aggressive; once you change the source code for secondary development, you can no longer follow the updates of Smart-Doc, turning it into a one-time version.

Possible implementation ideas:

  • On the plugin side, add dependencies to extend user-defined frameworks.

  • At runtime, scan for implemented classes of specified interfaces, with each class serving as support for a framework; or use SPI extensions?

其他框架文档解析开发,这个功能是否可以通过添加plugin dependency形式,而不是修改源码。

修改源码毕竟还是太粗暴了,一旦改源码二次开发,基本无法再跟随smart-doc的更新,成了一次性的版本。

可能的实现思路:

  • 在plugin上,添加dependency,用于扩展用户自定义的框架

  • 运行时,扫描指定接口的实现类,每一个类作为一个框架的支持;或者SPI扩展?

@kongwu- kongwu- added the enhancement New feature or request label Sep 4, 2023
@shalousun
Copy link
Collaborator

shalousun commented Sep 4, 2023

@kongwu-
This will have to wait for a while, as Smart-Doc is currently preparing for some future community development projects. After preparations are complete, there will be some community weekly meetings and such, where you can participate in discussions. The main issue with other frameworks is that we lack understanding of the custom framework patterns used by many companies.
这个要等一段时间,smart-doc最近在筹备一些未来社区建设上的事情。后面筹备好会有一些社区的周会这些,可以参加讨论。对于其它框架这块的主要还是我们缺乏对很多公司自定义框架形态的了解。

@shalousun shalousun changed the title 其他框架文档解析开发,这个功能是否可以通过添加plugin dependency形式,而不是修改源码 For the development of other framework document parsing, can this functionality be added through plugin dependency instead of modifying the source code? Mar 10, 2024
@linwumingshi
Copy link
Collaborator

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

3 participants