Bouton PDF par chapitre, badges morceaux améliorés, PDF configurable admin, git sync admin→prod
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- Bouton PDF blanc par chapitre avec numéro de page (ChapterHeader)
- Badges morceaux plus visibles (bordure, poids, hover) dans ChapterHeader et SongBadges
- PDF viewer : page cible + panneau signets ouverts par défaut (BookPdfReader)
- Config YAML : pdfFile dans book, chapterPages pour le mapping chapitre→page
- Admin book : section PDF du livre avec chemin éditable et sauvegarde
- Git sync automatique : chaque sauvegarde admin commit+push en prod (ADMIN_GIT_SYNC=true)
- Docker : git installé en prod, volumes pour .git/site/content/public

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-02-28 15:32:38 +01:00
parent b02368a15b
commit 9525ed3953
21 changed files with 271 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ FROM base AS production
ENV PORT=${PORT}
ENV NODE_ENV=production
RUN apt-get update && apt-get -fy install curl && rm -rf /var/cache/apt/*
RUN apt-get update && apt-get -fy install curl git && rm -rf /var/cache/apt/*
COPY --from=build /app/.output /app/.output
COPY --from=build /app/site /app/site

View File

@@ -10,11 +10,18 @@ services:
NUXT_PUBLIC_SITE_URL: ${NUXT_PUBLIC_SITE_URL:-https://librodrome.org}
NUXT_ADMIN_PASSWORD: ${NUXT_ADMIN_PASSWORD}
NUXT_ADMIN_SECRET: ${NUXT_ADMIN_SECRET}
ADMIN_GIT_SYNC: ${ADMIN_GIT_SYNC:-false}
ports:
- 3000
volumes:
- ./data:/src/data
- ./public:/src/public
# Git sync admin → nécessite un clone du repo sur le serveur
# avec accès push (clé SSH ou token) + ADMIN_GIT_SYNC=true dans .env
- ../.git:/app/.git
- ../site:/app/site
- ../content:/app/content
- ../public:/app/public
restart: always
labels:
- "traefik.enable=true"