You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples-scaling-recipes.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ outline: deep
6
6
7
7
## Pre-requisite
8
8
9
-
To be able to scale, a `Recipe`must have its [`servings`](/api/classes/Recipe.html#servings) property set, which is done by the parser when it encounters
9
+
To be able to scale, `Recipe`uses its [`servings`](/api/classes/Recipe.html#servings) property, which is done by the parser when it encounters
10
10
one of the following tags in the recipe's frontmatter: [`servings`](/api/interfaces/Metadata.html#servings), [`serves`](/api/interfaces/Metadata.html#serves) or [`yield`](/api/interfaces/Metadata.html#yield):
11
11
12
12
```json
@@ -17,7 +17,7 @@ servings: 2
17
17
---
18
18
```
19
19
20
-
The rest of this guide assumes that you have set one of the above, and will assume a `servings` value of `2`
20
+
If none of those are found and the `servings` property is undefined, it will default to 1 when scaling. The rest of this guide assumes that you have set one of the above, and will assume a `servings` value of `2`
0 commit comments