所有插件
站点地图
在站点根目录生成 sitemap.xml 和 robots.txt。
概览
遍历渲染输出并生成符合标准的 sitemap.xml 和 robots.txt。遵循页面级 noindex frontmatter,并使用 docmd.config.json 中配置的规范 URL。
安装
# Sitemap ships with docmd — nothing to install.
docmd build
This plugin is built into docmd — nothing to install.
权限
该插件在构建过程中的运行时行为:
| 权限项 | 使用状态 |
|---|---|
| 读取项目文件 | 是 |
| 写入 site/ | 是 |
| 网络请求 | 否 |
| 运行子进程 | 否 |
功能特性
此插件注册的 docmd 钩子:
post-build