Merge pull request #4775 from freesewing/dev-fixes
fix(dev): Small fixed required to make the tutorial work
This commit is contained in:
commit
dada1e2630
3 changed files with 5 additions and 3 deletions
|
@ -62,7 +62,7 @@ our snippets:
|
||||||
function draftBib({
|
function draftBib({
|
||||||
Path,
|
Path,
|
||||||
Point,
|
Point,
|
||||||
//hightlight-start
|
//highlight-start
|
||||||
Snippet,
|
Snippet,
|
||||||
//highlight-end
|
//highlight-end
|
||||||
paths,
|
paths,
|
||||||
|
|
|
@ -20,6 +20,8 @@ lives in `design/src/index.mjs`, and our part lives in `design/src/bib.mjs`.
|
||||||
This `bib.mjs` is where we'll do all our work. The file includes a comments to guide you on how to use it. We removed those for clarity in our example. It currently looks like this:
|
This `bib.mjs` is where we'll do all our work. The file includes a comments to guide you on how to use it. We removed those for clarity in our example. It currently looks like this:
|
||||||
|
|
||||||
```design/src/bib.mjs
|
```design/src/bib.mjs
|
||||||
|
import { pluginBundle } from "@freesewing/plugin-bundle"
|
||||||
|
|
||||||
function draftBib ({
|
function draftBib ({
|
||||||
part, // Your draft method must return this
|
part, // Your draft method must return this
|
||||||
})
|
})
|
||||||
|
@ -40,7 +42,7 @@ export const bib = {
|
||||||
options: {},
|
options: {},
|
||||||
measurements: [],
|
measurements: [],
|
||||||
optionalMeasurements: [],
|
optionalMeasurements: [],
|
||||||
plugins: []
|
plugins: [ pluginBundle ]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ const HomePage = ({ page }) => (
|
||||||
<div className="flex flex-col gap-5 lg:grid lg:grid-cols-3 lg:gap-4 mt-12">
|
<div className="flex flex-col gap-5 lg:grid lg:grid-cols-3 lg:gap-4 mt-12">
|
||||||
<CardLink
|
<CardLink
|
||||||
color="primary"
|
color="primary"
|
||||||
href="/reference/api"
|
href="/tutorials/pattern-design"
|
||||||
title="Design Tutorial"
|
title="Design Tutorial"
|
||||||
text="Step by step instructions to create your first FreeSewing design"
|
text="Step by step instructions to create your first FreeSewing design"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue