← Материалы разборы Yersham
разбор · статьятема-фронтир · H 1.58
7.0
из 10
смотреть по главам — взять две-три нужные минуты
оценка машинная и частично зависит от длины ролика — спорите, открывайте оригинал

Документация как система: llms.txt и автопроверка в CI

Documentation (`docs/`)

Mem0 строит документацию как систему: llms.txt с тегами и автопроверка целостности в CI.

Mem0 строит документацию как систему: llms.txt с тегами и автопроверка целостности в CI.

что из этого моё

Возьмите за основу структуру docs/ и llms.txt для собственной базы знаний: создайте индекс с тегами и описаниями «Use when...», чтобы агенты и пользователи быстро находили нужные инструкции. Автоматизируйте проверку целостности документации через CI — это сэкономит время и предотвратит рассинхрон. Используйте готовые компоненты для оформления, чтобы контент был единообразным и легко поддерживаемым.

Что забрать
отметь, что берёшь в работу → или отбрось как не своёмоё →
создать llms.txt с тегами областей и описаниями 'Use when...' для своего конвейера разборов
настроить CI-проверку целостности документации, сверяющую навигацию и llms.txt
заменить сырой HTML на готовые компоненты Note, Card, Tabs, CodeGroup в своих документах
расшифровка ролика ↓

Title:

URL Source: https://raw.githubusercontent.com/mem0ai/mem0/main/docs/AGENTS.md

Markdown Content: # Documentation (`docs/`)

Mintlify site published at https://docs.mem0.ai.

## Commands

```bash make docs # from repo root cd docs && mintlify dev ```

## Structure

| Path | Contents | |------|----------| | `api-reference/` | Platform REST endpoints | | `open-source/` | Self-hosted SDK guides | | `platform/` | Hosted platform guides | | `integrations/` | One page per integration | | `core-concepts/` | Memory model, graph memory, scoping | | `cookbooks/` | End-to-end recipes | | `contributing/` | Contributor guides | | `docs.json` | Navigation tree | | `openapi.json` | Platform API spec | | `llms.txt` | Scope-tagged index for agents |

## Adding a page

Every new `.mdx` page needs three things, or CI fails:

1. The page itself under the right section. 2. A navigation entry in `docs.json`. 3. A line in `llms.txt` with a scope tag (`[Platform]`, `[OSS]`, or `[Both]`) and a description that starts with `Use when ...`.

`docs-llms-txt-check.yml` runs on every PR touching `docs/**/*.mdx` and **blocks the merge** when `llms.txt` is out of sync. To fix:

```bash python scripts/check-llms-txt-coverage.py --write ```

That scaffolds placeholders under `## Unclassified - needs triage`. Then replace each `[TODO: ...]` tag, rewrite the descriptions as `Use when ...`, move entries into the correct section, and delete the triage heading once it is empty.

## Conventions

- Frontmatter needs `title`, `description`, and usually `icon`. - Mintlify components (`<Note>`, `<Card>`, `<Tabs>`, `<CodeGroup>`) are available; prefer them over raw HTML. - Code samples must be runnable. If a sample calls a public SDK method, it has to match the real signature. - Documentation-only PRs are exempt from the `accepted`-issue requirement in the PR gate, but not from the CLA. - Any change to a public SDK signature has to update the matching page here in the same PR.

дальше в дело
Собрать это в маршрут
все маршруты →
не хочешь разбираться сам
Сделаю это под задачу
форматы и цены →
ещё разборы