Skip to main content
The 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:
The extends property allows you to inherit configuration from Docus while customizing your site.

Site Configuration

Site Metadata

string
Name of your site. Used in SEO meta tags and as fallback for page titles.
string
Full URL of your site. Required for canonical URLs and Open Graph tags.

Markdown Configuration

MDC Syntax Highlighting

string
default:"oniguruma"
Syntax highlighting engine for code blocks.Options:
  • javascript - Faster, works in browser
  • oniguruma - More accurate, requires WASM
string | object
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

string
default:"en"
Default locale for your documentation.
array
Array of locale configuration objects. Each locale should have code and name properties.
string
default:"prefix_except_default"
URL strategy for locale paths.Options:
  • no_prefix - No locale prefix in URLs
  • prefix_except_default - Prefix for all except default locale
  • prefix - Prefix for all locales
  • prefix_and_default - Prefix for all, with redirect from root

AI Configuration

LLMs.txt Generation

string
Domain for the llms.txt file generation.
string
Title for the LLM documentation.
string
Description for the LLM documentation.
string
Title for the full LLM documentation export.
string
Description for the full LLM documentation export.

MCP Server

string
Name of the MCP server for AI integrations.
string
Path to redirect browsers to when they access the MCP endpoint.

Nuxt Studio Integration

string
default:"/_studio"
Route path for the Nuxt Studio admin interface.
string
Git provider for content repository.Options: github, gitlab
string
Repository owner/organization name.
string
Repository name.
string
Root directory for content in the repository.

Common Modules

Analytics

array
Array of Nuxt modules to enable. Docus works well with analytics modules.

Build Configuration

CSS

array
Global CSS files to include.

Vite Configuration

boolean
default:"false"
Enable or disable source maps for production builds.

Compatibility Date

string
Nuxt compatibility date for feature flags and behavior changes.

Complete Example