Step files are written in a YAML format. If you want extensive details on how to write YAML files, you might want to browse the official YAML page
More specifically, the “Vous êtes le héros” generator is using specific keys to define the different content parts of the page.
e.g.
title: Let's start an adventure...
subtitle: will you be ready for this?
intro:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam
lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra
nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget
libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut
porta lorem lacinia consectetur. **Donec ut libero sed arcu vehicula**
ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed,
adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis.
Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl
imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio
eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum
sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus
mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper
ac in est.
choices:
-
text: Now I wanna go to this step
next: next_step
-
text: I'd rather go to this one
next: other_step
The “intro” text will be parsed using the markdown format and generated. This means for example that **my text** will be displayed in bold, like this: my text.
Each choice is a list item. Each list item is preceeded by a (indented) “-” character. And each list item is built with two keys:
Note
Please note that the “next” content is the name of the page, without the ”.html” or ”.yaml” file extension.
By default, the template used by the generator is step.html. If you need a specific template for one or more pages, you’ll just have to:
title: Look, my special page!
template: special.html