nuxt.config.ts file is the main configuration file for Nuxt. This page covers Docus-specific configuration options and common Nuxt options used with Docus.
Extending Docus
To use Docus in your project, extend the Docus layer:extends property allows you to inherit configuration from Docus while customizing your site.
Site Configuration
Site Metadata
Name of your site. Used in SEO meta tags and as fallback for page titles.
Full URL of your site. Required for canonical URLs and Open Graph tags.
Markdown Configuration
MDC Syntax Highlighting
Syntax highlighting engine for code blocks.Options:
javascript- Faster, works in browseroniguruma- More accurate, requires WASM
Shiki theme for syntax highlighting. Can be a theme name or an object with
light and dark themes.Internationalization (i18n)
Docus supports multi-language documentation using@nuxtjs/i18n.
Basic i18n Setup
Default locale for your documentation.
Array of locale configuration objects. Each locale should have
code and name properties.URL strategy for locale paths.Options:
no_prefix- No locale prefix in URLsprefix_except_default- Prefix for all except default localeprefix- Prefix for all localesprefix_and_default- Prefix for all, with redirect from root
AI Configuration
LLMs.txt Generation
Domain for the llms.txt file generation.
Title for the LLM documentation.
Description for the LLM documentation.
Title for the full LLM documentation export.
Description for the full LLM documentation export.
MCP Server
Name of the MCP server for AI integrations.
Path to redirect browsers to when they access the MCP endpoint.
Nuxt Studio Integration
Route path for the Nuxt Studio admin interface.
Git provider for content repository.Options:
github, gitlabRepository owner/organization name.
Repository name.
Root directory for content in the repository.
Common Modules
Analytics
Array of Nuxt modules to enable. Docus works well with analytics modules.
Build Configuration
CSS
Global CSS files to include.
Vite Configuration
Enable or disable source maps for production builds.
Compatibility Date
Nuxt compatibility date for feature flags and behavior changes.