From 47f1505a2ed57fa37c4765c56e5cc9f8afb21db8 Mon Sep 17 00:00:00 2001 From: aramesh-site deploy Date: Fri, 9 Oct 2026 23:46:33 +0000 Subject: [PATCH] =?UTF-8?q?feat(llms):=20=D9=85=D8=B9=D8=B1=D9=81=DB=8C=20?= =?UTF-8?q?=D8=A2=D8=B1=D8=B4=DB=8C=D9=88=20=D8=AA=D8=B5=D8=A7=D9=88=DB=8C?= =?UTF-8?q?=D8=B1=20=D9=BE=D8=B1=D9=88=DA=98=D9=87=E2=80=8C=D9=87=D8=A7=20?= =?UTF-8?q?=D8=AF=D8=B1=20llms.txt=20=E2=80=94=20=D8=AA=D8=A7=20=D8=AF?= =?UTF-8?q?=D8=B3=D8=AA=DB=8C=D8=A7=D8=B1=D9=87=D8=A7=DB=8C=20AI=20=D8=A2?= =?UTF-8?q?=D9=86=20=D8=B1=D8=A7=20=DA=A9=D8=B4=D9=81=20=DA=A9=D9=86=D9=86?= =?UTF-8?q?=D8=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/seo_pages.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/backend/app/seo_pages.py b/backend/app/seo_pages.py index 4666c26..9525afa 100644 --- a/backend/app/seo_pages.py +++ b/backend/app/seo_pages.py @@ -740,6 +740,19 @@ def llms_txt(db: Session = Depends(get_db)): contact_lines.append(f"- Office: {_clip(detail, 120)}") if 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 زنده از دیتابیس ساخته می‌شود — بدون کش تا همیشه تازه باشد return Response( content="\n".join(lines) + "\n",