ia-qua-blog/README.md

56 lines
1.3 KiB
Markdown

# IA qu'à... — Blog
Blog statique personnel sur l'IA en PME.
## Stack
- **Astro** — Générateur de site statique
- **Tailwind CSS** — Styles utilitaires
- **MDX** — Articles en Markdown enrichi
- **Docker + nginx** — Hébergé sur Cloudbreak (Hetzner), derrière Caddy
## Démarrage
```bash
npm install
npm run dev # Serveur local → http://localhost:4321
npm run build # Build de production → dist/
npm run preview # Prévisualiser le build
```
## Structure
```
src/
├── content/blog/ ← Articles en MDX
├── components/ ← Composants Astro (Navbar, Footer, SeriesNav...)
├── layouts/ ← Layouts (BaseLayout, BlogPost)
├── pages/ ← Pages (index, à-propos, séries)
└── styles/ ← CSS global + Tailwind
```
## Écrire un article
Créer un fichier `.mdx` dans `src/content/blog/` :
```yaml
---
title: "Mon titre"
description: "Description courte"
pubDate: 2026-04-13
category: "Outils IA" # ou "Organisation & process", "Retours terrain", "Veille & tendances"
series: # optionnel
name: "Nom de la série"
part: 1
total: 4
---
```
## Déploiement
```bash
# Sur Cloudbreak :
cd /opt/ia-qua-blog # adapter le chemin
sudo bash deploy.sh # git pull + docker build + up
```