LLMs Integration
Publish Docd content in AI-friendly formats with nuxt-llms and raw markdown routes.
Docd includes nuxt-llms by default, so your docs site can publish AI-friendly text outputs without extra setup.
That gives you:
/llms.txt/llms-full.txt- raw markdown routes for docs pages
These outputs are useful for assistants, agents, indexing pipelines, and local tooling that wants structured content instead of full rendered HTML.
Generated files
/llms.txt
This is the lightweight index for your documentation. It summarizes the site and links agents to the important pages.
/llms-full.txt
This is the expanded version with more complete content payloads, suitable for deeper ingestion.
Configuring LLM metadata
Customize the generated metadata in nuxt.config.ts:
Nuxt Config
export default defineNuxtConfig({
llms: {
domain: "https://docs.example.com",
title: "Docd",
description: "Documentation for the Docd Nuxt layer.",
full: {
title: "Docd",
description: "Documentation for the Docd Nuxt layer.",
},
},
})
In a typical Docd app, this is where you control the public identity of the generated LLM files.
Raw markdown routes
Docd also exposes raw markdown versions of docs pages under /raw.
For a page at:
/getting-started/installation
the raw markdown route is:
/raw/getting-started/installation.md
This is useful when an AI client needs the original Markdown content directly.
How raw markdown is wired in
Docd adds raw page routes as part of the docs rendering flow, and page actions already link to them from the page header menu.
That means:
- docs pages can be consumed as plain Markdown
- agents can skip rendered HTML when they only need content
- page-level AI workflows have a stable source URL
Typical use cases
Use llms.txt when you want a top-level AI entry point for the whole site.
Use /raw/...md when you want a precise Markdown source for one page.
Use the MCP server when you want the AI client to discover and fetch pages through tools instead of fixed URLs.
Example
If your site is running locally on http://localhost:3000, these routes are available:
http://localhost:3000/llms.txt
http://localhost:3000/llms-full.txt
http://localhost:3000/raw/getting-started/installation.md
Page header shortcuts
Docd's page header menu already includes links to:
- the raw Markdown page
llms.txtllms-full.txt
This makes it easy to verify what an agent will consume without leaving the docs UI.
When to use which format
- Use rendered pages for humans.
- Use raw markdown routes for page-by-page AI or automation workflows.
- Use
llms.txtandllms-full.txtfor site-wide AI discovery.
nuxt-llms module documentation for the full configuration surface.