feat(llms): معرفی آرشیو تصاویر پروژه‌ها در llms.txt — تا دستیارهای AI آن را کشف کنند

This commit is contained in:
aramesh-site deploy
2026-10-09 23:46:33 +00:00
parent 365e4b9417
commit 47f1505a2e
+13
View File
@@ -740,6 +740,19 @@ def llms_txt(db: Session = Depends(get_db)):
contact_lines.append(f"- Office: {_clip(detail, 120)}") contact_lines.append(f"- Office: {_clip(detail, 120)}")
if contact_lines: if contact_lines:
lines += ["", "## Contact", *contact_lines] lines += ["", "## Contact", *contact_lines]
# راهنمای دستیارهای AI: تصاویر هر پروژه به‌صورت آرشیو ZIP با manifest قابل دریافت است
project_count = db.query(models.Project).count()
if project_count:
lines += [
"",
"## Project images (machine-readable)",
f"- [{project_count} projects with image archives]"
f"({_absolute('/projects-images.json')}): JSON index — page URL, image count,"
" area, year and a ZIP download link for every project.",
f"- Per project: {_absolute('/projects/{slug}/images.zip')} — ZIP of that project's"
" photos plus manifest.json (specs, per-image captions). Replace {slug} with the"
" URL-encoded project slug from the index above.",
]
# llms.txt زنده از دیتابیس ساخته می‌شود — بدون کش تا همیشه تازه باشد # llms.txt زنده از دیتابیس ساخته می‌شود — بدون کش تا همیشه تازه باشد
return Response( return Response(
content="\n".join(lines) + "\n", content="\n".join(lines) + "\n",