provisioning-outreach/presentations/scripts/init-presentations.sh

64 lines
No EOL
1 KiB
Bash
Executable file

#!/usr/bin/env bash
# Script to initialize presentations structure
# Used by presentations.just module
PRESENTATIONS_DIR="$1"
if [ -z "$PRESENTATIONS_DIR" ]; then
echo "Usage: $0 <presentations_dir>"
exit 1
fi
echo "Initializing presentations structure in $PRESENTATIONS_DIR"
# Create directories
mkdir -p "$PRESENTATIONS_DIR/templates"
mkdir -p "$PRESENTATIONS_DIR/assets/images"
mkdir -p "$PRESENTATIONS_DIR/assets/css"
mkdir -p "$PRESENTATIONS_DIR/assets/js"
# Create templates
cat > "$PRESENTATIONS_DIR/templates/default.md" << 'EOF'
---
title: Presentation Title
author: Author Name
date: Date
theme: default
---
# Title Slide
Subtitle or tagline
---
## Content Slide
- Point 1
- Point 2
- Point 3
---
## Thank You
Questions?
EOF
# Create CSS template
cat > "$PRESENTATIONS_DIR/assets/css/custom.css" << 'EOF'
/* Custom presentation styles */
.reveal .slides {
text-align: left;
}
.reveal h1, .reveal h2, .reveal h3 {
color: #2c3e50;
}
.reveal .progress {
color: #3498db;
}
EOF
echo "✅ Presentations structure initialized"