pub fn render_agents_txt(agents: &AgentsConfig, base_url: &str) -> StringExpand description
Pure-function renderer kept separate from I/O so unit tests can assert the exact byte layout without touching the filesystem.
ยงExamples
use ssg::postprocess::agentic_discovery::{AgentsConfig, render_agents_txt};
let cfg = AgentsConfig::default();
let body = render_agents_txt(&cfg, "https://example.com");
assert!(body.contains("User-agent: *"));
assert!(body.contains("Sitemap: https://example.com/sitemap.xml"));