feat(llms): معرفی آرشیو تصاویر پروژهها در llms.txt — تا دستیارهای AI آن را کشف کنند
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user