Skip to content

Latest commit

Β 

History

History
77 lines (56 loc) Β· 1.86 KB

File metadata and controls

77 lines (56 loc) Β· 1.86 KB

TwigBush Docs

πŸš€ Quick Start

# Install dependencies
npm install

# Start development server
npm run dev

The site will be running at http://localhost:3000

πŸ“ Project Structure

my-docs/
β”œβ”€β”€ content/              # Your markdown content
β”‚   β”œβ”€β”€ en/              # English content
β”‚   β”‚   β”œβ”€β”€ index.md     # English homepage
β”‚   β”‚   └── docs/        # English documentation
β”‚   └── fr/              # French content
β”‚       β”œβ”€β”€ index.md     # French homepage
β”‚       └── docs/        # French documentation
β”œβ”€β”€ public/              # Static assets
β”œβ”€β”€ nuxt.config.ts       # Nuxt configuration with i18n setup
└── package.json         # Dependencies and scripts

Content Structure

The content is organized by language, making it easy to manage translations:

content/
β”œβ”€β”€ en/                   # English content
β”‚   β”œβ”€β”€ index.md
β”‚   β”œβ”€β”€ 1.getting-started/
β”‚   β”‚   β”œβ”€β”€ installation.md
β”‚   β”‚   └── configuration.md
β”‚   └── 2.essentials/
β”‚       β”œβ”€β”€ markdown.md
β”‚       └── components.md
└── fr/                   # French content
    β”œβ”€β”€ index.md
    β”œβ”€β”€ 1.getting-started/
    β”‚   β”œβ”€β”€ installation.md
    β”‚   └── configuration.md
    └── 2.essentials/
        β”œβ”€β”€ markdown.md
        └── components.md

πŸ”— URL Structure

The i18n starter generates URLs with language prefixes:

  • English: /en/getting-started/installation
  • Default locale fallback: /getting-started/installation (redirects to English)

Deployment

Create build

npm run build

The built files will be in the .output directory, ready for deployment to any hosting provider that supports Node.js.

πŸ“„ License

MIT License