Docus integrates nuxt-llms by default to prepare your content for Large Language Models (LLMs). All your documentation pages are injected and /llms.txt and /llms-full.txt files are automatically generated and pre-rendered.
Here are the default values use to generate the /llms.txt file:
domain → computed based on your deployment platform (or by using NUXT_SITE_URL env variable)title → extracted from your package.jsondescription → extracted from your package.jsonfull.title → extracted from your package.jsonfull.description → extracted from your package.jsonYou can override your LLMs data from the nuxt.config.ts :
export default defineNuxtConfig({
llms: {
domain: 'https://your-site.com',
title: 'Your Site Name',
description: 'A brief description of your site',
full: {
title: 'Your Site Name',
description: 'A brief description of your site',
},
},
})
When nuxt-llms is enabled, Docus also exposes a raw markdown endpoint so AI agents can fetch LLM-ready source files without going through the full rendering pipeline. This reduces token usage and improves response speed for AI-powered tools consuming your documentation.
/raw/<content-path>.md — use the same path as the page URL, drop trailing /index, and keep the .md extensiontext/markdown; charset=utf-8llms.txt are automatically rewritten to the /raw/...md endpoint, so agents fetch compact markdown instead of full HTMLYou can customize the raw markdown behavior from your nuxt.config.ts:
export default defineNuxtConfig({
llms: {
contentRawMarkdown: {
// Prevent specific page collections from being exposed
excludeCollections: ['landing', 'landing_en', 'landing_fr'],
// Keep llms.txt links pointing to rendered pages instead of raw markdown
rewriteLLMSTxt: false,
},
},
})
To disable raw markdown access entirely:
export default defineNuxtConfig({
llms: {
contentRawMarkdown: false,
},
})