struct

Hwaro::CLI::Commands::Tool::DeadlinkCommand::GeneratedRoutes

Inherits Struct < Value < Object

Routes the BUILD writes that have no source file to check against: the sitemap, robots.txt, llms.txt, the search index and the feeds.

Without this the checker only accepted them once public/ existed, so a check-links run in CI before hwaro build reported a site's own /rss.xml and /sitemap.xml links dead — the exact order a lint-then-build pipeline uses.

Constructors

new(paths : Set(String) = Set(String).new, feed_filename : String | Nil = nil, section_feed_filename : String | Nil = nil)
Source

Instance methods

feed_filename

The feed filename, when feeds are enabled. Feeds are ALSO emitted per section and per language (/posts/rss.xml, /ko/rss.xml), so those are resolved by feed_route?, which still requires the prefix to name a real section — matching the bare basename anywhere would have declared /nowhere/rss.xml live, hiding exactly the dead link this command exists to find.

Source
matches?(url : String) : Bool
Source
paths

Exact absolute paths (/sitemap.xml).

Source
section_feed_filename

The filename section and language feeds are written under — always rss.xml/atom.xml from [feeds] type, regardless of the root feed's filename or enabled (see Seo::Feeds).

Source