Advanced Examples
Complex llms.txt usage scenarios
Multilingual Site
Section titled “Multilingual Site”For sites with multiple languages, create separate files:
File Structure
Section titled “File Structure”/llms.txt → English version (default)/ru/llms.txt → Russian version/es/llms.txt → Spanish versionExample /llms.txt (English)
Section titled “Example /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 schemaExample /ru/llms.txt (Russian)
Section titled “Example /ru/llms.txt (Russian)”# Документация
> Подробные руководства и справочник 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): Схема GraphQLVersioned Documentation
Section titled “Versioned Documentation”For projects with multiple versions:
Current Version
Section titled “Current Version”# 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 for Different Versions
Section titled “llms.txt for Different Versions”https://mylib.dev/docs/v3/llms.txthttps://mylib.dev/docs/v2/llms.txthttps://mylib.dev/docs/v1/llms.txtMonorepo
Section titled “Monorepo”For projects with multiple packages:
# 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 plansMicroservices Architecture
Section titled “Microservices Architecture”# 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 decisionsFull llms.txt + llms-full.txt
Section titled “Full llms.txt + llms-full.txt”llms.txt (index)
Section titled “llms.txt (index)”# 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 (full content)
Section titled “llms-full.txt (full content)”# 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...
[full page content]
---
## Middleware
Source: https://framework.dev/docs/middlewareLast updated: 2024-01-12
Middleware functions have access to request and response...
[full page content]CI/CD Generation
Section titled “CI/CD Generation”GitHub Action
Section titled “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