🔵 POST - Regenerate Fresh Website
Generate AI Site
Internal service that generates all static files
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Internal service that generates all static files
async def generate_ai_site(
url: str,
organize_result: dict,
scraped_pages: List[dict] = None
) -> dict
| Parameter | Type | Description |
|---|---|---|
url | str | Source website URL |
organize_result | dict | Result from organize_with_llm |
scraped_pages | list | Original scraped pages for replicas |
| File | Description |
|---|---|
index.html | Main landing page |
llms.txt | LLM-readable content file |
sitemap.xml | XML sitemap |
robots.txt | Robots directives |
data.json | Structured data |
/what-is-* | Q&A pages |
/pages/* | Markdown replica pages |
{
"status": "success",
"files": [...],
"qa_slugs": ["what-is-example", ...],
"replica_paths": ["/pages/about", ...]
}
src/app/shared/ai_website/service.py