Продвинутые примеры
Сложные сценарии использования llms.txt
Мультиязычный сайт
Заголовок раздела «Мультиязычный сайт»Для сайтов с несколькими языками создавайте отдельные файлы:
Структура файлов
Заголовок раздела «Структура файлов»/llms.txt → Английская версия (default)/ru/llms.txt → Русская версия/es/llms.txt → Испанская версияПример /llms.txt (English)
Заголовок раздела «Пример /llms.txt (English)»# Documentation Hub
> Comprehensive guides and API reference for developers.
## Getting Started
- [Quick Start](https://docs.example.com/en/quickstart): 5-minute setup guide- [Installation](https://docs.example.com/en/install): System requirements
## API Reference
- [REST API](https://docs.example.com/en/api/rest): HTTP endpoints- [GraphQL](https://docs.example.com/en/api/graphql): GraphQL schemaПример /ru/llms.txt (Русский)
Заголовок раздела «Пример /ru/llms.txt (Русский)»# Документация
> Подробные руководства и справочник API для разработчиков.
## Начало работы
- [Быстрый старт](https://docs.example.com/ru/quickstart): Настройка за 5 минут- [Установка](https://docs.example.com/ru/install): Системные требования
## Справочник API
- [REST API](https://docs.example.com/ru/api/rest): HTTP-эндпоинты- [GraphQL](https://docs.example.com/ru/api/graphql): Схема GraphQLВерсионированная документация
Заголовок раздела «Версионированная документация»Для проектов с несколькими версиями:
Текущая версия
Заголовок раздела «Текущая версия»# MyLibrary v3.0
> Modern JavaScript utility library (current stable).
## Documentation
- [Migration from v2](https://mylib.dev/docs/v3/migration): Breaking changes- [What's New](https://mylib.dev/docs/v3/changelog): New features in v3- [API Reference](https://mylib.dev/docs/v3/api): Complete API docs
## Legacy
- [v2 Documentation](https://mylib.dev/docs/v2/): Previous stable version- [v1 Documentation](https://mylib.dev/docs/v1/): Legacy version (deprecated)Ссылка на llms.txt разных версий
Заголовок раздела «Ссылка на llms.txt разных версий»https://mylib.dev/docs/v3/llms.txthttps://mylib.dev/docs/v2/llms.txthttps://mylib.dev/docs/v1/llms.txtМонорепозиторий
Заголовок раздела «Монорепозиторий»Для проектов с несколькими пакетами:
# Acme Platform
> Suite of tools for building modern web applications.
## Core Packages
- [@acme/core](https://acme.dev/packages/core): Core utilities- [@acme/ui](https://acme.dev/packages/ui): React components- [@acme/cli](https://acme.dev/packages/cli): Command-line tools- [@acme/server](https://acme.dev/packages/server): Backend framework
## Package Documentation
- [Core API](https://acme.dev/docs/core/api): Core package reference- [UI Components](https://acme.dev/docs/ui/components): Component gallery- [CLI Commands](https://acme.dev/docs/cli/commands): Available commands- [Server Setup](https://acme.dev/docs/server/setup): Backend configuration
## Guides
- [Getting Started](https://acme.dev/docs/start): Initial setup- [Full Stack App](https://acme.dev/docs/tutorial): Build complete app- [Deployment](https://acme.dev/docs/deploy): Production deployment
## Optional
- [Changelog](https://acme.dev/changelog): All package updates- [Roadmap](https://acme.dev/roadmap): Future plansМикросервисная архитектура
Заголовок раздела «Микросервисная архитектура»# Microservices Platform
> Distributed system with multiple services.
## Services
- [API Gateway](https://platform.dev/docs/gateway): Request routing- [Auth Service](https://platform.dev/docs/auth): Authentication/authorization- [User Service](https://platform.dev/docs/users): User management- [Billing Service](https://platform.dev/docs/billing): Payments and subscriptions- [Notification Service](https://platform.dev/docs/notifications): Email/push notifications
## Infrastructure
- [Kubernetes Setup](https://platform.dev/docs/k8s): K8s deployment- [Monitoring](https://platform.dev/docs/monitoring): Prometheus/Grafana- [Logging](https://platform.dev/docs/logging): ELK stack setup
## Development
- [Local Setup](https://platform.dev/docs/local): Docker Compose environment- [Testing](https://platform.dev/docs/testing): Integration tests- [CI/CD](https://platform.dev/docs/cicd): GitHub Actions pipelines
## Optional
- [Architecture](https://platform.dev/docs/architecture): System design docs- [ADRs](https://platform.dev/docs/adr): Architectural decisionsПолный llms.txt + llms-full.txt
Заголовок раздела «Полный llms.txt + llms-full.txt»llms.txt (индекс)
Заголовок раздела «llms.txt (индекс)»# Framework
> Modern web framework for Node.js.
## Core
- [Getting Started](https://framework.dev/docs/start): Quick setup- [Routing](https://framework.dev/docs/routing): URL routing- [Middleware](https://framework.dev/docs/middleware): Request handling
## Advanced
- [Database](https://framework.dev/docs/database): ORM integration- [Auth](https://framework.dev/docs/auth): Authentication- [Caching](https://framework.dev/docs/cache): Redis caching
## Optional
- [Plugins](https://framework.dev/docs/plugins): Extending the frameworkllms-full.txt (полный контент)
Заголовок раздела «llms-full.txt (полный контент)»# Framework
> Modern web framework for Node.js.
## Table of Contents
- [Getting Started](#getting-started)- [Routing](#routing)- [Middleware](#middleware)- [Database](#database)
---
## Getting Started
Source: https://framework.dev/docs/startLast updated: 2024-01-15
### Installation
\`\`\`bashnpm install @framework/core\`\`\`
### Quick Example
\`\`\`javascriptimport { createApp } from '@framework/core'
const app = createApp()
app.get('/', (req, res) => { res.send('Hello World!')})
app.listen(3000)\`\`\`
---
## Routing
Source: https://framework.dev/docs/routingLast updated: 2024-01-10
Routes are defined using HTTP method helpers...
[полный контент страницы]
---
## Middleware
Source: https://framework.dev/docs/middlewareLast updated: 2024-01-12
Middleware functions have access to request and response...
[полный контент страницы]Генерация с помощью CI/CD
Заголовок раздела «Генерация с помощью CI/CD»GitHub Action
Заголовок раздела «GitHub Action»name: Update llms.txt
on: push: paths: - 'docs/**' schedule: - cron: '0 0 * * 0' # Weekly
jobs: update: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4
- name: Generate llms.txt run: | npx llmstxt gen https://docs.example.com/sitemap.xml \ -ep "**/blog/**" \ -t "My Docs" \ > public/llms.txt
- name: Generate llms-full.txt run: | npx llmstxt gen-full https://docs.example.com/sitemap.xml \ -ep "**/blog/**" \ > public/llms-full.txt
- name: Commit and push run: | git config user.name "GitHub Action" git config user.email "action@github.com" git add public/llms.txt public/llms-full.txt git diff --staged --quiet || git commit -m "Update llms.txt" git push