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。