# Suno Wiki

Internal documentation wiki built with [Nextra](https://nextra.site/) and [Next.js](https://nextjs.org).

## Getting Started

### Development

```bash
# Install dependencies
pnpm install

# Start dev server (with hot reload)
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) to view the wiki.

### Production

```bash
# Build for production
pnpm build

# Start production server
pnpm start
```

## Adding Content

### Quick Guide

1. **Create an MDX file** in `src/content/`:
   ```bash
   touch src/content/frontend/my-guide.mdx
   ```

2. **Write content** using Markdown:
   ```mdx
   # My Guide

   Content goes here...
   ```

3. **Done!** Pages appear automatically in the sidebar.

### Directory Structure

```
src/content/
├── index.mdx           # Home page
├── _meta.ts            # Top-level navigation (optional)
├── frontend/
│   ├── _meta.ts        # Section navigation (optional)
│   └── *.mdx           # Pages
├── backend/
├── infra/
└── ...
```

**Note:** `_meta.ts` files are only needed for custom page ordering. Without them, pages appear alphabetically.

## Tech Stack

- **Framework:** Next.js 15 with Turbopack
- **Documentation:** Nextra 4.6
- **Theme:** nextra-theme-docs
- **Content:** MDX (Markdown + JSX)
- **Styling:** Tailwind CSS 4
- **Package Manager:** pnpm

## Learn More

- [Nextra Documentation](https://nextra.site/)
- [Next.js Documentation](https://nextjs.org/docs)
- [MDX Documentation](https://mdxjs.com/)
