Admonitions, otherwise known as “call outs”, are a very useful documentation pattern. In Morea, you can create admonitions in a few different ways by combining Bootstrap alerts, font awesome icons, and markdown. Here are a few examples to get you started.
The approach below involves the following:
Here’s one way to produce a “danger” admonition, which is in red.
<div class="alert alert-danger" role="alert" markdown="1">
<i class="fa-solid fa-circle-exclamation fa-xl"></i> **Danger: the following is not recommended.**
<hr/>
You really don't want to do the following:
* Stay up too late.
* Get up too early.
* Drink coffee after lunch.
</div>
Which looks like this:
Danger: the following is not recommended.
You really don’t want to do the following:
Less troublesome is a “warning”, which is in yellow.
<div class="alert alert-danger" role="alert" markdown="1">
<i class="fa-solid fa-circle-exclamation fa-xl"></i> **Danger: the following is not recommended.**
<hr/>
You really don't want to do the following:
* Stay up too late.
* Get up too early.
* Drink coffee after lunch.
</div>
Which looks like this:
Warning: the following is not recommended.
Unless you know better, you might want to avoid the following:
To convey something positive, you can use the success alert, which is green:
<div class="alert alert-success" role="alert" markdown="1">
<i class="fa-solid fa-circle-check fa-xl"></i> **Well done!**
<hr/>
You did everthing right!
* Went to bed early.
* Got up late.
* Switched to water after lunch.
</div>
Which looks like this:
Well done!
You did everthing right!
Red, yellow, and green have connotations. A blue background is less judgemental:
<div class="alert alert-info" role="alert" markdown="1">
<i class="fa-solid fa-circle-info fa-xl"></i> **For more information**
<hr/>
For more information, see the [Font Awesome Icon Search Page](https://fontawesome.com/search?)
</div>
Which looks like this:
For the complete set of Bootstrap alert types, see Bootstrap Alert Documentation.