Skip to main content

Module rebuild

Module rebuild 

Source
Expand description

批量重建文章 HTML 与目录。

用于数据迁移或修复:遍历符合条件的文章,将 Markdown 重新渲染为 HTML, 并更新 content_html 与 toc_html 字段。 Dioxus server function,注册在 /api 路径下。 仅在 feature = "server" 启用的服务端构建中执行数据库更新。

Constants§

MAX_DISPLAY_ERRORS 🔒
返回给前端展示的最大错误条数。
REBUILD_BATCH_LIMIT 🔒
单次重建批处理数量上限。

Functions§

rebuild_content_html
批量重建文章 content_html 与 toc_html。
rebuild_post_content_html
重新渲染指定文章的 content_html 与 toc_html。