Nuxt layer for Docus documentation theme
npm install docus
> A minimal and beautiful Nuxt layer for documentation websites


This is the official Nuxt layer for Docus, providing a complete documentation theming. It works with the Docus CLI for rapid project setup.
- β¨ Beautiful Design - Clean, modern documentation theme
- π± Responsive - Mobile-first responsive design
- π Dark Mode - Built-in dark/light mode support
- π Internationalization - Native i18n support with automatic routing and language switching
- π Search - Full-text search functionality
- π Markdown Enhanced - Extended markdown with custom components
- π¨ Customizable - Easy theming and customization
- β‘ Fast - Optimized for performance
- π§ TypeScript - Full TypeScript support
- π οΈ CLI Integration - Works with Docus CLI for quick project setup
``bash`
npm install docus
The easiest way to get started is using the Docus CLI, which automatically sets up a project with this layer:
`bashCreate a new documentation project
npx create-docus my-docs
This creates a complete documentation project pre-configured with
docus.For multi-language documentation, use the i18n template:
`bash
Create a new i18n documentation project
npx create-docus my-docs -t i18n
`$3
#### Option 2a: Nuxt Config (recommended)
Add the layer to your
nuxt.config.ts:`typescript
export default defineNuxtConfig({
extends: ['docus']
})
`For internationalization, also add the
@nuxtjs/i18n module:`typescript
export default defineNuxtConfig({
modules: ['@nuxtjs/i18n'],
i18n: {
defaultLocale: 'en',
locales: [
{ code: 'en', name: 'English' },
{ code: 'fr', name: 'FranΓ§ais' },
],
}
})
`#### Option 2b: CLI Usage
Use directly with Nuxt CLI:
`bash
Development
nuxt dev --extends docusBuild
nuxt build --extends docus
`π Related Packages
create-docus` - CLI tool to scaffold Docus projectsContributions are welcome! Please feel free to submit a Pull Request.
- π Documentation
- π Issues
- π¬ Discussions
---
Made with β€οΈ for the Nuxt community