#!/bin/bash

# Génération de toutes les variantes de démonstration

echo "Génération des démonstrations Pandoc..."

# Démo complète
echo "→ Génération demo-complet.html"
pandoc demo.md \
  -s \
  --toc \
  --toc-depth=3 \
  --number-sections \
  --highlight-style=tango \
  --mathjax \
  -c style-complet.css \
  -o demo-complet.html

# Démo standalone
echo "→ Génération demo-standalone.html"
pandoc demo.md \
  -s \
  --toc \
  --toc-depth=3 \
  --number-sections \
  --highlight-style=tango \
  --mathjax \
  --self-contained \
  -c style-complet.css \
  -o demo-standalone.html

# Démo moderne
echo "→ Génération demo-moderne.html"
pandoc demo.md \
  -s \
  --toc \
  --highlight-style=tango \
  --mathjax \
  -c theme-moderne.css \
  -o demo-moderne.html

# Démo magazine
echo "→ Génération demo-magazine.html"
pandoc demo.md \
  -s \
  --mathjax \
  -c theme-magazine.css \
  -o demo-magazine.html

# Démo documentation
echo "→ Génération demo-documentation.html"
pandoc demo.md \
  -s \
  --toc \
  --toc-depth=4 \
  --number-sections \
  --highlight-style=tango \
  --mathjax \
  -c theme-documentation.css \
  -o demo-documentation.html

# Démo académique
echo "→ Génération demo-academique.html"
pandoc demo.md \
  -s \
  --toc \
  --number-sections \
  --highlight-style=tango \
  --mathjax \
  -c theme-academique.css \
  -o demo-academique.html

echo "✓ Génération terminée !"
echo ""
echo "Fichiers générés :"
ls -lh demo-*.html
