+3
−2
src/aicatalog.cpp
0 → 100644
+81
−0
src/aicatalog.h
0 → 100644
+44
−0
+43
−0
+1
−0
Loading
A validator flagged ai-catalog.json as invalid: /.well-known/ai-catalog.json returned the HTML 404 page. blogi now generates it per https://ai-catalog.io/spec/ (specVersion "1.0", host, entries): - served under the blog prefix (/blog/.well-known/ai-catalog.json) and, since blogi also answers "/", at /.well-known/ai-catalog.json - Content-Type application/ai-catalog+json (UTF-8 JSON via json-c) - host.displayName = SITE_TITLE (fallback: domain), host.identifier = domain - entries only for endpoints blogi really serves: sitemap.xml (application/xml) and llms.txt (text/plain, as served); identifiers urn:air:{domain}:{prefix or "site"}:{sitemap|llms-txt}; every entry has url (never data); URLs via Config::absoluteurl (no doubled /blog, no :443/:80) - <link rel="ai-catalog" type="application/ai-catalog+json"> in the head next to the canonical link Own choice, the spec sets none: Access-Control-Allow-Origin: * and Cache-Control: public, max-age=3600. Also installs siteurl.h (conf.h includes it since e34ba9d6, so out-of-tree plugin builds against the installed headers needed it). Adds tests/aicatalog_test (valid JSON, required fields, url xor data, no unknown fields, no /blog/blog or default ports). Co-Authored-By:Claude Opus 5.5 <noreply@anthropic.com>