# LLM outputs

Markdown twins of every page, llms.txt per project and the Copy for LLM button.

docsp publishes the docs in forms that language models and coding agents read well. All three are on by default and
controlled by `llm` in `project.json`.

```json title="project.json"
{ "llm": { "copyButton": true, "markdownRoutes": true, "llmsTxt": true } }
```

## Markdown twins

Every page is also served as Markdown at its URL without the trailing slash plus `.md`:

| Page | Markdown |
|---|---|
| `/rocket/guides/quickstart/` | `/rocket/guides/quickstart.md` |
| `/de/rocket/1.x/guides/quickstart/` | `/de/rocket/1.x/guides/quickstart.md` |

A docs page twin is the title as `#` heading, the description, then the Markdown source of the page as written, with
directives left in their source form. API pages, the changelog, releases and symbol pages get a Markdown version
generated from their data. Try it on this page: [llm.md](/docsp/features/llm.md).

`markdownRoutes: false` turns the twins off.

## llms.txt

`/<project>/llms.txt` (and `/<locale>/<project>/llms.txt` for other locales) lists the pages of the current version,
section by section, each with its title and description. Links point to the Markdown twins, or to the HTML pages when
`markdownRoutes` is `false`. The release pages of a changelog section are listed; the changelog list page is not.

This site's file is [/docsp/llms.txt](/docsp/llms.txt). `llmsTxt: false` turns it off.

## Copy for LLM

The Copy for LLM button in the page header copies the page's Markdown to the clipboard, and its menu offers the
Markdown and `llms.txt` links. It needs the Markdown twins: with `markdownRoutes: false` the button is hidden.
`copyButton: false` hides it on its own.
