Create a New Presentation
The user wants to create a new presentation using the DEHN slide deck template. Use $ARGUMENTS to understand the name and topic.
Steps
- •
Parse the arguments to extract:
- •Presentation name (kebab-case for the directory, e.g.,
admin-ui-training) - •Topic description (what the presentation is about)
- •Presentation name (kebab-case for the directory, e.g.,
- •
Ask the user if not provided in arguments:
- •Presentation name
- •Target directory (default:
/Users/jlaranjeira/Code/<name>) - •Presentation title (shown in header and title slide)
- •Subtitle
- •Team name (shown in footer)
- •Number of agenda sections and their topics
- •Whether they need quiz and/or cheatsheet slides
- •
Clone the template:
bashgh repo create <name> --template jmlaranjeira/dehn-slide-deck-template --private --clone cd <name> npm install
- •
Update
src/config/presentation.jswith the presentation title - •
Update
src/data/slides.jswith:- •Title slide content (title, subtitle, footer with team name)
- •Agenda columns based on the topics provided
- •Demo slide with relevant topics
- •Remove quiz/cheatsheet entries if not needed
- •
Update
src/data/quiz.jsif quiz is needed:- •Ask the user for questions or generate placeholder questions based on the topic
- •
Update
src/data/cheatsheet.jsif cheatsheet is needed:- •Ask the user for reference items or generate placeholders based on the topic
- •
Update
index.htmltitle tag with the presentation name - •
Verify by running
npm run build - •
Commit the initial customization:
codeInitial setup: <Presentation Title>
Notes
- •The template repository is at:
jmlaranjeira/dehn-slide-deck-template - •Always keep DEHN branding (logos and red accent colors)
- •The user can add custom slide types later with
/crear-slide