module

Hwaro::Services

Constants

CHECK_GROUPS = [CheckGroup.new(key: :config, default_heading: "config.toml", checks: [CheckSpec.new("file present & parseable", ["config-not-found", "config-parse-error"]), CheckSpec.new("base_url, title", ["base-url-missing", "base-url-trailing-slash", "title-default"]), CheckSpec.new("sitemap (changefreq, priority)", ["sitemap-changefreq-invalid", "sitemap-priority-range"]), CheckSpec.new("taxonomies (duplicates)", ["taxonomy-duplicate", "language-duplicate"]), CheckSpec.new("search (format)", ["search-format-invalid"]), CheckSpec.new("languages (default_language resolves)", ["default-language-undefined"]), CheckSpec.new("markdown / pwa (valid enums)", ["markdown-math-engine-invalid", "pwa-cache-strategy-invalid"]), CheckSpec.new("deployment / related (refs resolve)", ["deployment-target-undefined", "related-taxonomy-undefined"]), CheckSpec.new("referenced files & dirs", ["config-path-missing", "config-dir-missing"])]), CheckGroup.new(key: :templates, default_heading: "templates/", checks: [CheckSpec.new("required files (page.html, section.html)", ["template-dir-missing", "template-required-missing"]), CheckSpec.new("template syntax", ["template-syntax-error", "template-read-error"])]), CheckGroup.new(key: :content, default_heading: "content/", checks: [CheckSpec.new("front matter (TOML/YAML parse)", ["content-frontmatter-invalid", "content-read-error"])])]

Single source of truth for the inline status lines emitted by hwaro doctor. Anything that adds a new diagnostic to Services::Doctor should also list its issue id(s) here so the check shows up in human output. The previous duplication — one list in this service and another in the CLI command — is gone, so updating one place is enough.

Nested types