Files
Le Prévost-Corvellec Arnault 354c8cd9ef Add Makefile, package.json, and initial configuration for VitePress and Slidev integration
- Introduced a Makefile for streamlined commands related to building, running, and managing presentations.
- Created package.json to define project metadata, dependencies, and scripts for development and testing.
- Added .gitignore entries to exclude build artifacts and temporary files from version control.
- Included playwright.config.mjs for end-to-end testing setup with Playwright.
- Added README.md for project documentation, outlining setup instructions and development guidelines.
2026-04-11 15:59:20 +02:00

47 lines
1.5 KiB
JavaScript

import { defineConfig } from 'vitepress'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { vitepressAppBase } from '../../tools/site-base.mjs'
import { vitePluginSlideDists } from './vite-plugin-slide-dists.mjs'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const repoRoot = path.resolve(__dirname, '../..')
const vpBase = vitepressAppBase()
export default defineConfig({
lang: 'fr-FR',
title: 'Talks — Specificat',
description: 'Présentations techniques (Slidev) — portail VitePress',
base: vpBase,
appearance: 'force-dark',
cleanUrls: true,
srcDir: '.',
/** Build portail seul — les decks sont dans dist-<slug>/ à la racine du dépôt. */
outDir: path.resolve(repoRoot, 'dist-portal'),
vite: {
// Écoute sur toutes les interfaces (ex. 127.0.0.1 + ::1). Sinon Node peut
// ne lier que ::1 et http://127.0.0.1:5173/… refuse la connexion (pas le même que localhost).
server: {
host: true,
},
plugins: [vitePluginSlideDists({ base: vpBase })],
},
themeConfig: {
nav: [
{ text: 'Accueil', link: '/' },
{ text: 'Présentations', link: '/presentations/' },
],
search: { provider: 'local' },
sidebar: false,
footer: {
message: 'Talks — VitePress + Slidev.',
},
talkRepoUrl: '',
talkRepoTitle: '',
talkRepoDesc: '',
talkSiteTitle: 'Ce site (slides)',
talkSiteDesc: 'URL à projeter ou partager pendant une présentation.',
},
})