chore: Linting for markdown and js
This commit is contained in:
parent
eca8199ed8
commit
1c92e0f655
6677 changed files with 24391 additions and 25987 deletions
|
@ -1,14 +1,15 @@
|
|||
---
|
||||
***
|
||||
|
||||
title: Adding options
|
||||
order: 140
|
||||
---
|
||||
----------
|
||||
|
||||
You know what your bib should look like, and you have the *head* measurement
|
||||
to work with. But there's still a number of choices you have to make:
|
||||
|
||||
- How large should the neck opening be?
|
||||
- How wide should the bib be?
|
||||
- How long should the bib be?
|
||||
* How large should the neck opening be?
|
||||
* How wide should the bib be?
|
||||
* How long should the bib be?
|
||||
|
||||
You can make all of these choices for the user and set them in stone, so to speak.
|
||||
|
||||
|
@ -17,7 +18,7 @@ flexible and let the user decide. All you have to do is add options to your patt
|
|||
|
||||
## Add the neckRatio option
|
||||
|
||||
The first option we're going to add controls the ratio between the neck opening
|
||||
The first option we're going to add controls the ratio between the neck opening
|
||||
and the head circumference. Let's call it `neckRatio`.
|
||||
|
||||
Open the config file at `config/index.js` and add this to the options:
|
||||
|
@ -33,10 +34,10 @@ Open the config file at `config/index.js` and add this to the options:
|
|||
|
||||
Can you guess what it means?
|
||||
|
||||
- We've added a option of type percentage
|
||||
- Its minimum value is 70%
|
||||
- Its maximum value is 90%
|
||||
- Its default value is 80%
|
||||
* We've added a option of type percentage
|
||||
* Its minimum value is 70%
|
||||
* Its maximum value is 90%
|
||||
* Its default value is 80%
|
||||
|
||||
<Note>
|
||||
|
||||
|
@ -55,9 +56,9 @@ options: {
|
|||
}
|
||||
```
|
||||
|
||||
- You've added `widthRatio` and `lengthRatio` options
|
||||
- You've given all options sensible defaults
|
||||
- You've given all options sensible maximum and minimum boundaries
|
||||
* You've added `widthRatio` and `lengthRatio` options
|
||||
* You've given all options sensible defaults
|
||||
* You've given all options sensible maximum and minimum boundaries
|
||||
|
||||
<Note>
|
||||
|
||||
|
@ -76,7 +77,7 @@ optionGroups: {
|
|||
|
||||
<Note>
|
||||
|
||||
The `optionGroups` entry does not do anything for your pattern as such.
|
||||
The `optionGroups` entry does not do anything for your pattern as such.
|
||||
Instead it signals to the frontend that this is how options should be grouped together and presented to the user.
|
||||
|
||||
</Note>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue