The Art of Making Coffee
A demonstration article showcasing the capabilities of VitePress.
Introduction
Coffee is a useful subject for demonstrating documentation features:
- it has a process;
- it has parameters;
- it has code;
- it has tables;
- it has warnings;
- it has multiple approaches.
And most importantly, you can drink it while writing documentation.
Tip
Do not add complexity unless you understand why you need it.
Information
This page intentionally contains different VitePress features.
Warning
Water temperature has a significant effect on the result.
Danger
Never leave a coffee machine unattended while it is operating.
1. Quick Recipe
- Heat the water.
- Grind the coffee.
- Add the water.
- Wait.
- Drink the coffee.
Checklist
- [x] Buy coffee
- [x] Buy water
- [x] Find a mug
- [ ] Wash the mug
- [ ] Make coffee
2. Parameters
| Parameter | Value | Notes |
|---|---|---|
| Coffee | 18 g | Medium grind |
| Water | 300 ml | Filtered |
| Temperature | 94 °C | ±2 °C |
| Time | 3:00 | Depends on the method |
More coffee generally means a stronger drink.
3. Code
VitePress provides excellent syntax highlighting.
JavaScript
js
function makeCoffee(coffee, water) {
return {
coffee,
water,
ready: true
}
}
console.log(makeCoffee(18, 300))