5. Ship a deck or a course

Add the optional presentation and training views when the topic warrants them.

After this lesson you can

- Decide when a topic deserves a deck or a training course - Author slide and lesson data and render the optional views

Before you start: Ship the AI skill

The deck introduces (slides feature existing units — unit = <id> pulls the headline and summary); the training book teaches (ordered lessons ending in exercises with expected results). Both are data like everything else, and both are optional — declare the artifact and author the data only when the topic warrants the view.

This course and the wskill deck are themselves the worked example: the same model you're learning renders them.

§ 1Exercise: Add a three-slide deck

Enable the presentation view and author one section with three slides, each featuring one of your units.

bash
# scaffolded with the view off? copy the pieces from a fresh scaffold:
wcl init wskill /tmp/ref --defaults -D include_presentation=yes
cp /tmp/ref/wdoc/presentation/main.wcl wdoc/presentation/main.wcl
cp /tmp/ref/data/presentation/main.wcl data/presentation/main.wcl
# then: uncomment the artifact + data import in wskill.wcl, author slides, and
just presentation-build

Expected result

out/presentation/index.html opens as a deck: a generated title slide plus your three slides showing their units' headlines.