|
| 1 | +--- |
| 2 | +slug: docus-i18n |
| 3 | +subtitle: "" |
| 4 | +title: Docus I18n |
| 5 | +baseDir: .starters/i18n |
| 6 | +branch: main |
| 7 | +category: docs |
| 8 | +createdAt: 2023-11-15T17:41:03.087Z |
| 9 | +demo: https://docus.dev |
| 10 | +description: Write beautiful internationalized docs with Markdown and Nuxt I18n uesssh |
| 11 | +licenseType: nuxt-ui-pro |
| 12 | +mainScreen: /templates/docus.webp |
| 13 | +name: docus |
| 14 | +owner: nuxtlabs |
| 15 | +image1: /blog/docus.webp |
| 16 | +image2: "" |
| 17 | +image3: "" |
| 18 | +draft: true |
| 19 | +--- |
| 20 | + |
| 21 | +::template-core |
| 22 | +> A beautiful, internationalized starter for creating multi-language documentation with Docus |
| 23 | +
|
| 24 | +This is the i18n Docus starter template that provides everything you need to build beautiful, multi-language documentation sites with Markdown and Vue components. |
| 25 | + |
| 26 | +## ✨ Features |
| 27 | + |
| 28 | +- 🌍 **Internationalization** - Native i18n support for multi-language docs |
| 29 | +- 🎨 **Beautiful Design** - Clean, modern documentation theme |
| 30 | +- 📱 **Responsive** - Mobile-first responsive design |
| 31 | +- 🌙 **Dark Mode** - Built-in dark/light mode support |
| 32 | +- 🔍 **Search** - Full-text search functionality per language |
| 33 | +- 📝 **Markdown Enhanced** - Extended markdown with custom components |
| 34 | +- 🎨 **Customizable** - Easy theming and brand customization |
| 35 | +- ⚡ **Fast** - Optimized for performance with Nuxt 4 |
| 36 | +- 🔧 **TypeScript** - Full TypeScript support |
| 37 | + |
| 38 | +## 🚀 Quick Start |
| 39 | + |
| 40 | +```bash |
| 41 | +# Install dependencies |
| 42 | +npm install |
| 43 | + |
| 44 | +# Start development server |
| 45 | +npm run dev |
| 46 | +``` |
| 47 | + |
| 48 | +Your multilingual documentation site will be running at `http://localhost:3000` |
| 49 | + |
| 50 | +## 🌍 Languages |
| 51 | + |
| 52 | +This starter comes pre-configured with: |
| 53 | +- 🇺🇸 **English** (`en`) - Default language |
| 54 | +- 🇫🇷 **Français** (`fr`) - French translation |
| 55 | + |
| 56 | +## 📁 Project Structure |
| 57 | + |
| 58 | +``` |
| 59 | +my-docs/ |
| 60 | +├── content/ # Your markdown content |
| 61 | +│ ├── en/ # English content |
| 62 | +│ │ ├── index.md # English homepage |
| 63 | +│ │ └── docs/ # English documentation |
| 64 | +│ └── fr/ # French content |
| 65 | +│ ├── index.md # French homepage |
| 66 | +│ └── docs/ # French documentation |
| 67 | +├── public/ # Static assets |
| 68 | +├── nuxt.config.ts # Nuxt configuration with i18n setup |
| 69 | +└── package.json # Dependencies and scripts |
| 70 | +``` |
| 71 | + |
| 72 | +### Content Structure |
| 73 | + |
| 74 | +The content is organized by language, making it easy to manage translations: |
| 75 | + |
| 76 | +``` |
| 77 | +content/ |
| 78 | +├── en/ # English content |
| 79 | +│ ├── index.md |
| 80 | +│ ├── 1.getting-started/ |
| 81 | +│ │ ├── installation.md |
| 82 | +│ │ └── configuration.md |
| 83 | +│ └── 2.essentials/ |
| 84 | +│ ├── markdown.md |
| 85 | +│ └── components.md |
| 86 | +└── fr/ # French content |
| 87 | + ├── index.md |
| 88 | + ├── 1.getting-started/ |
| 89 | + │ ├── installation.md |
| 90 | + │ └── configuration.md |
| 91 | + └── 2.essentials/ |
| 92 | + ├── markdown.md |
| 93 | + └── components.md |
| 94 | +``` |
| 95 | + |
| 96 | +## 🔗 URL Structure |
| 97 | + |
| 98 | +The i18n starter generates URLs with language prefixes: |
| 99 | + |
| 100 | +- English: `/en/getting-started/installation` |
| 101 | +- French: `/fr/getting-started/installation` |
| 102 | +- Default locale fallback: `/getting-started/installation` (redirects to English) |
| 103 | + |
| 104 | +## ⚡ Built with |
| 105 | + |
| 106 | +This starter comes pre-configured with: |
| 107 | + |
| 108 | +- [Nuxt 4](https://nuxt.com) - The web framework |
| 109 | +- [Nuxt Content](https://content.nuxt.com/) - File-based CMS |
| 110 | +- [Nuxt i18n](https://i18n.nuxt.com/) - Internationalization |
| 111 | +- [Nuxt UI Pro](https://ui.nuxt.com/pro) - Premium UI components |
| 112 | +- [Nuxt Image](https://image.nuxt.com/) - Optimized images |
| 113 | +- [Tailwind CSS 4](https://tailwindcss.com/) - Utility-first CSS |
| 114 | +- [Docus Layer](https://www.npmjs.com/package/docus) - Documentation theme |
| 115 | + |
| 116 | +## 📖 Documentation |
| 117 | + |
| 118 | +For detailed documentation on customizing your Docus project, visit the [Docus Documentation](https://docus.dev) |
| 119 | + |
| 120 | +## 🚀 Deployment |
| 121 | + |
| 122 | +Build for production: |
| 123 | + |
| 124 | +```bash |
| 125 | +npm run build |
| 126 | +``` |
| 127 | + |
| 128 | +The built files will be in the `.output` directory, ready for deployment to any hosting provider that supports Node.js. |
| 129 | + |
| 130 | +## 📄 License |
| 131 | + |
| 132 | +[MIT License](https://opensource.org/licenses/MIT) |
| 133 | + |
| 134 | +#right |
| 135 | + :::template-features |
| 136 | + --- |
| 137 | + features: |
| 138 | + - label: Nuxt 4 |
| 139 | + content: The web framework |
| 140 | + - label: Nuxt I18n |
| 141 | + content: Internationalization support. |
| 142 | + - label: Nuxt UI Pro |
| 143 | + content: Offers a very large set of full customizable components. |
| 144 | + - label: TypeScript |
| 145 | + content: A fully typed development experience. |
| 146 | + - label: Nuxt Studio |
| 147 | + content: Supported by Nuxt Studio for fast updates and previews. |
| 148 | + - label: Search |
| 149 | + content: A full-text search modal empowered by Fuse.js. |
| 150 | + - label: Nuxt Image |
| 151 | + content: A powerful image component. |
| 152 | + - label: Nuxt Content |
| 153 | + content: A powerful content component. |
| 154 | + --- |
| 155 | + ::: |
| 156 | +:: |
0 commit comments