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

文章更新规则 #14

Open
excing opened this issue Feb 13, 2023 · 0 comments
Open

文章更新规则 #14

excing opened this issue Feb 13, 2023 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@excing
Copy link
Contributor

excing commented Feb 13, 2023

讨论区更新触发 Action 工作流,进而开始执行页面更新。

  • 增量更新;
  • 全量更新;
  • 仅渲染页面(仅调试模式下有效)。

增量更新

比对已有页面的 Hash 值或更新时间,如果完全一致,则跳过,否则更新为最近版本,此模式需要一个页岩更新日志,以记录已有页面的信息(Hash 值、最近更新时间等等)。

此模式可以避免破坏原有页面的数据,避免再次请求 OpenAI(如果有)。

全量更新

删除所有已有页面,重新生成新的页面。此模式无需任何额外的文件。

仅渲染页面(仅调试模式下有效)

调试模式下,数据保存在内存中,当修改主题模板后,使用此模式,可以快速渲染并预览新的页面。

@excing excing added bug Something isn't working enhancement New feature or request labels Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant