Skip to content

Merge remote-tracking branch 'origin/main' #33

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #33

name: Compile README Presentation
on:
push:
branches: [ main ]
paths:
- 'docs/readme-presentation.sd'
- 'src/**'
- 'assets/**'
- 'themes/**'
- '.github/workflows/compile-readme-presentation.yml'
jobs:
compile-presentation:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -e .
- name: Compile presentations for all themes
run: |
THEMES="conventional-light default lcars-lower-decks retro-terminal terminal"
SOURCE="docs/readme-presentation.sd"
# Default presentation (conventional-light → docs/readme-presentation/)
echo "Compiling default presentation (conventional-light)..."
slidedown docs/ docs/readme-presentation/ \
--inputFile readme-presentation.sd \
--theme conventional-light
echo "✓ docs/readme-presentation/ done"
# Per-theme presentations → docs/themes/<theme>/
for theme in $THEMES; do
echo "Compiling theme: $theme..."
mkdir -p docs/themes/$theme
slidedown docs/ docs/themes/$theme/ \
--inputFile readme-presentation.sd \
--theme $theme
echo "✓ docs/themes/$theme/ done"
done
- name: Check for changes
id: check_changes
run: |
if git diff --quiet docs/; then
echo "has_changes=false" >> $GITHUB_OUTPUT
echo "No changes to commit"
else
echo "has_changes=true" >> $GITHUB_OUTPUT
echo "Changes detected"
fi
- name: Commit and push changes
if: steps.check_changes.outputs.has_changes == 'true'
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add docs/
git commit -m "Auto-update README presentation [skip ci]"
git push