All plugins

Sitemap

sitemap.xml and robots.txt at the site root.

Built-in @docmd/plugin-sitemap

Overview

Walks the rendered output and writes a standards-compliant sitemap.xml and robots.txt. Respects page-level noindex frontmatter and uses canonical URLs configured in docmd.config.json.

Installation

# Sitemap ships with docmd — nothing to install. docmd build

This plugin is built into docmd — nothing to install.

Permissions

Runtime behaviour of this plugin during a build:

CapabilityUsed
Reads project filesYes
Writes to site/Yes
Network requestsNo
Runs subprocessNo

Capabilities

docmd hooks this plugin registers:

post-build

Tags

sitemapseoxml