feat: Flat import of markdown repo
This is a flat (without history) import of (some of) the content from our markdown module. We've imported this without history because the repo contains our blog posts and showcases posts content prior to porting them to strapi. Since this contains many images, it would balloon the size of this repo to import the full history. Instead, please refer to the history of the (archived) markdown repo at: https://github.com/freesewing/markdown
This commit is contained in:
parent
1671a896b5
commit
b34a2ee2ed
6132 changed files with 244167 additions and 0 deletions
62
markdown/dev/tutorials/pattern-design/your-first-part/de.md
Normal file
62
markdown/dev/tutorials/pattern-design/your-first-part/de.md
Normal file
|
@ -0,0 +1,62 @@
|
|||
---
|
||||
title: Your first part
|
||||
order: 120
|
||||
---
|
||||
|
||||
Much like garments themselves, patterns are made up of *parts*.
|
||||
|
||||
Most patterns will have multiple parts. A sleeve, a back part, the collar, and so on. Our patterns is very simply, and only has one part: the bib.
|
||||
|
||||
The pattern that's been created for us also just has one part to get you started. It's called **box** and it draws a box. If you click on the **Draft your pattern** button in your browser, you'll get to see it:
|
||||
|
||||

|
||||
|
||||
Since we only need one part, we'll rename this *box* part, and call it *bib*.
|
||||
|
||||
## Rename the box part to bib
|
||||
|
||||
First, update the configuration file in `config/index.js`. Update the **parts** array with `bib`, rather than `box`:
|
||||
|
||||
```js
|
||||
parts: ["bib"],
|
||||
```
|
||||
|
||||
When that's done, rename the `src/box.js` file into `src/bib.js`.
|
||||
|
||||
Then, in the `src/index.js` file, change the import accordingly:
|
||||
|
||||
```js
|
||||
// Change this line
|
||||
//import draftBox from "./box";
|
||||
|
||||
// Into this
|
||||
import draftBib from "./bib";
|
||||
```
|
||||
|
||||
Finally, still in the `src/index.js` file, update the draftmethod:
|
||||
|
||||
```js
|
||||
// Change this line
|
||||
//Pattern.prototype.draftBox = draftBox;
|
||||
|
||||
// Into this
|
||||
Pattern.prototype.draftBib = draftBib;
|
||||
```
|
||||
|
||||
<Tip>
|
||||
|
||||
###### Always use draftPartname
|
||||
|
||||
FreeSewing will expect for each part to find a method named Draft*Partname*.
|
||||
|
||||
If you have a part named `sleeve` you should have a method called `draftSleeve()` that drafts that part.
|
||||
|
||||
In our case, we have a part named `bib` so we're using `draftBib()` as the method that drafts it.
|
||||
|
||||
</Tip>
|
||||
|
||||
Congratulations, your pattern now has a `bib` part, rather than a `box` part. It still looks the same though:
|
||||
|
||||
<Example pattern="tutorial" part="step1" caption="Our bib part, which is the renamed box part" />
|
||||
|
||||
This `bib` part is where we'll do some real work. But first, we have some more configuration to do.
|
67
markdown/dev/tutorials/pattern-design/your-first-part/en.md
Normal file
67
markdown/dev/tutorials/pattern-design/your-first-part/en.md
Normal file
|
@ -0,0 +1,67 @@
|
|||
---
|
||||
title: Your first part
|
||||
order: 120
|
||||
---
|
||||
|
||||
Much like garments themselves, patterns are made up of *parts*.
|
||||
|
||||
Most patterns will have multiple parts. A sleeve, a back part, the collar, and so on.
|
||||
Our pattern is very simple, and only has one part: the bib.
|
||||
|
||||
The pattern that's been created for us also just has one part to get you started.
|
||||
It's called **box** and it draws a box. If you click on the **Draft your pattern**
|
||||
button in your browser, you'll get to see it:
|
||||
|
||||

|
||||
|
||||
Since we only need one part, we'll rename this *box* part, and call it *bib*.
|
||||
|
||||
## Rename the box part to bib
|
||||
|
||||
First, update the configuration file in `config/index.js`.
|
||||
Update the **parts** array with `bib`, rather than `box`:
|
||||
|
||||
```js
|
||||
parts: ["bib"],
|
||||
```
|
||||
|
||||
When that's done, rename the `src/box.js` file into `src/bib.js`.
|
||||
|
||||
Then, in the `src/index.js` file, change the import accordingly:
|
||||
|
||||
```js
|
||||
// Change this line
|
||||
//import draftBox from "./box";
|
||||
|
||||
// Into this
|
||||
import draftBib from "./bib";
|
||||
```
|
||||
|
||||
Finally, still in the `src/index.js` file, update the draftmethod:
|
||||
|
||||
```js
|
||||
// Change this line
|
||||
//Pattern.prototype.draftBox = draftBox;
|
||||
|
||||
// Into this
|
||||
Pattern.prototype.draftBib = draftBib;
|
||||
```
|
||||
|
||||
<Tip>
|
||||
|
||||
###### Always use draftPartname
|
||||
|
||||
FreeSewing will expect for each part to find a method named Draft*Partname*.
|
||||
|
||||
If you have a part named `sleeve` you should have a method called `draftSleeve()` that drafts that part.
|
||||
|
||||
In our case, we have a part named `bib` so we're using `draftBib()` as the method that drafts it.
|
||||
|
||||
</Tip>
|
||||
|
||||
Congratulations, your pattern now has a `bib` part, rather than a `box` part.
|
||||
It still looks the same though:
|
||||
|
||||
<Example pattern="tutorial" part="step1" caption="Our bib part, which is the renamed box part" />
|
||||
|
||||
This `bib` part is where we'll do some real work. But first, we have some more configuration to do.
|
62
markdown/dev/tutorials/pattern-design/your-first-part/es.md
Normal file
62
markdown/dev/tutorials/pattern-design/your-first-part/es.md
Normal file
|
@ -0,0 +1,62 @@
|
|||
---
|
||||
title: Your first part
|
||||
order: 120
|
||||
---
|
||||
|
||||
Much like garments themselves, patterns are made up of *parts*.
|
||||
|
||||
Most patterns will have multiple parts. A sleeve, a back part, the collar, and so on. Our patterns is very simply, and only has one part: the bib.
|
||||
|
||||
The pattern that's been created for us also just has one part to get you started. It's called **box** and it draws a box. If you click on the **Draft your pattern** button in your browser, you'll get to see it:
|
||||
|
||||

|
||||
|
||||
Since we only need one part, we'll rename this *box* part, and call it *bib*.
|
||||
|
||||
## Rename the box part to bib
|
||||
|
||||
First, update the configuration file in `config/index.js`. Update the **parts** array with `bib`, rather than `box`:
|
||||
|
||||
```js
|
||||
parts: ["bib"],
|
||||
```
|
||||
|
||||
When that's done, rename the `src/box.js` file into `src/bib.js`.
|
||||
|
||||
Then, in the `src/index.js` file, change the import accordingly:
|
||||
|
||||
```js
|
||||
// Change this line
|
||||
//import draftBox from "./box";
|
||||
|
||||
// Into this
|
||||
import draftBib from "./bib";
|
||||
```
|
||||
|
||||
Finally, still in the `src/index.js` file, update the draftmethod:
|
||||
|
||||
```js
|
||||
// Change this line
|
||||
//Pattern.prototype.draftBox = draftBox;
|
||||
|
||||
// Into this
|
||||
Pattern.prototype.draftBib = draftBib;
|
||||
```
|
||||
|
||||
<Tip>
|
||||
|
||||
###### Always use draftPartname
|
||||
|
||||
FreeSewing will expect for each part to find a method named Draft*Partname*.
|
||||
|
||||
If you have a part named `sleeve` you should have a method called `draftSleeve()` that drafts that part.
|
||||
|
||||
In our case, we have a part named `bib` so we're using `draftBib()` as the method that drafts it.
|
||||
|
||||
</Tip>
|
||||
|
||||
Congratulations, your pattern now has a `bib` part, rather than a `box` part. It still looks the same though:
|
||||
|
||||
<Example pattern="tutorial" part="step1" caption="Our bib part, which is the renamed box part" />
|
||||
|
||||
This `bib` part is where we'll do some real work. But first, we have some more configuration to do.
|
62
markdown/dev/tutorials/pattern-design/your-first-part/fr.md
Normal file
62
markdown/dev/tutorials/pattern-design/your-first-part/fr.md
Normal file
|
@ -0,0 +1,62 @@
|
|||
---
|
||||
title: Votre première partie
|
||||
order: 120
|
||||
---
|
||||
|
||||
Much like garments themselves, patterns are made up of *parts*.
|
||||
|
||||
La plupart des patrons auront plusieurs parties. Une manche, une partie arrière, le col, etc. Notre patron est des plus simples, et ne comporte qu'une seule partie : le bavoir.
|
||||
|
||||
Le patron qui vient d'être créé pour nous a aussi une unique partie pour vous faire démarrer. It's called **box** and it draws a box. If you click on the **Draft your pattern** button in your browser, you'll get to see it:
|
||||
|
||||

|
||||
|
||||
Since we only need one part, we'll rename this *box* part, and call it *bib*.
|
||||
|
||||
## Renommez la partie box en bib
|
||||
|
||||
Tout d'abord, mettez à jour le fichier de configuration dans `config/index.js`. Update the **parts** array with `bib`, rather than `box`:
|
||||
|
||||
```js
|
||||
parts: ["bib"],
|
||||
```
|
||||
|
||||
Lorsque c'est fait, remplacez le nom du fichier `src/box.js` par `src/bib.js`.
|
||||
|
||||
Puis, dans le fichier `src/index.js`, changez l'import de façon correspondante :
|
||||
|
||||
```js
|
||||
// Changez cette ligne
|
||||
//import draftBox from "./box";
|
||||
|
||||
// en
|
||||
import draftBib from "./bib";
|
||||
```
|
||||
|
||||
Enfin, toujours dans le fichier `src/index.js`, mettez à jour la méthode d'ébauche :
|
||||
|
||||
```js
|
||||
// Change cette ligne
|
||||
//Pattern.prototype.draftBox = draftBox;
|
||||
|
||||
// en
|
||||
Pattern.prototype.draftBib = draftBib;
|
||||
```
|
||||
|
||||
<Tip>
|
||||
|
||||
###### Always use draftPartname
|
||||
|
||||
FreeSewing will expect for each part to find a method named Draft*Partname*.
|
||||
|
||||
If you have a part named `sleeve` you should have a method called `draftSleeve()` that drafts that part.
|
||||
|
||||
In our case, we have a part named `bib` so we're using `draftBib()` as the method that drafts it.
|
||||
|
||||
</Tip>
|
||||
|
||||
Félicitations, votre modèle a maintenant une partie `bib`, au lieu d'une partie `box`. Elle a toujours la même tête cependant :
|
||||
|
||||
<Example pattern="tutorial" part="step1" caption="Our bib part, which is the renamed box part" />
|
||||
|
||||
Cette partie `bib` est là où nous allons effectuer un travail plus sérieux. Mais tout d'abord, nous avons encore un peu de configuration à faire.
|
62
markdown/dev/tutorials/pattern-design/your-first-part/nl.md
Normal file
62
markdown/dev/tutorials/pattern-design/your-first-part/nl.md
Normal file
|
@ -0,0 +1,62 @@
|
|||
---
|
||||
title: Your first part
|
||||
order: 120
|
||||
---
|
||||
|
||||
Much like garments themselves, patterns are made up of *parts*.
|
||||
|
||||
Most patterns will have multiple parts. A sleeve, a back part, the collar, and so on. Our patterns is very simply, and only has one part: the bib.
|
||||
|
||||
The pattern that's been created for us also just has one part to get you started. It's called **box** and it draws a box. If you click on the **Draft your pattern** button in your browser, you'll get to see it:
|
||||
|
||||

|
||||
|
||||
Since we only need one part, we'll rename this *box* part, and call it *bib*.
|
||||
|
||||
## Rename the box part to bib
|
||||
|
||||
First, update the configuration file in `config/index.js`. Update the **parts** array with `bib`, rather than `box`:
|
||||
|
||||
```js
|
||||
parts: ["bib"],
|
||||
```
|
||||
|
||||
When that's done, rename the `src/box.js` file into `src/bib.js`.
|
||||
|
||||
Then, in the `src/index.js` file, change the import accordingly:
|
||||
|
||||
```js
|
||||
// Change this line
|
||||
//import draftBox from "./box";
|
||||
|
||||
// Into this
|
||||
import draftBib from "./bib";
|
||||
```
|
||||
|
||||
Finally, still in the `src/index.js` file, update the draftmethod:
|
||||
|
||||
```js
|
||||
// Change this line
|
||||
//Pattern.prototype.draftBox = draftBox;
|
||||
|
||||
// Into this
|
||||
Pattern.prototype.draftBib = draftBib;
|
||||
```
|
||||
|
||||
<Tip>
|
||||
|
||||
###### Always use draftPartname
|
||||
|
||||
FreeSewing will expect for each part to find a method named Draft*Partname*.
|
||||
|
||||
If you have a part named `sleeve` you should have a method called `draftSleeve()` that drafts that part.
|
||||
|
||||
In our case, we have a part named `bib` so we're using `draftBib()` as the method that drafts it.
|
||||
|
||||
</Tip>
|
||||
|
||||
Congratulations, your pattern now has a `bib` part, rather than a `box` part. It still looks the same though:
|
||||
|
||||
<Example pattern="tutorial" part="step1" caption="Our bib part, which is the renamed box part" />
|
||||
|
||||
This `bib` part is where we'll do some real work. But first, we have some more configuration to do.
|
BIN
markdown/dev/tutorials/pattern-design/your-first-part/step1.png
Normal file
BIN
markdown/dev/tutorials/pattern-design/your-first-part/step1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 146 KiB |
Loading…
Add table
Add a link
Reference in a new issue