chore: Port FreeSewing.dev to docusaurus
The replaces the NextJS site powering FreeSewing.dev with a Docusaurus setup. It's part of my efforts to simplify FreeSewing's setup so we can focus on our core value proposition.
This commit is contained in:
parent
497633d1d3
commit
ab3204f9f1
692 changed files with 11037 additions and 20674 deletions
39
sites/dev/docs/howtos/code/after/readme.mdx
Normal file
39
sites/dev/docs/howtos/code/after/readme.mdx
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
title: Part dependencies
|
||||
---
|
||||
|
||||
Part dependencies control the order in which parts are drafted. FreeSewing will
|
||||
make sure to draft all of a part's dependencies before drafting the part
|
||||
itself.
|
||||
|
||||
:::warning
|
||||
Even though inherited parts are automatically included in a part's dependencies,
|
||||
do not confuse part dependencies with [part inheritance](/howtos/code/from).
|
||||
|
||||
:::
|
||||
|
||||
Part dependencies are configured with [the `after`
|
||||
keyword](/reference/api/part/config/dependencies#after). Let's look at an
|
||||
example:
|
||||
|
||||
```js
|
||||
// highlight-start
|
||||
import { otherPart } from './otherpart.mjs'
|
||||
// highlight-end
|
||||
|
||||
export const myPart = {
|
||||
name: 'example.myPart',
|
||||
// highlight-start
|
||||
after: otherPart,
|
||||
// highlight-end
|
||||
draft: function ({ part }) {
|
||||
// Design part here
|
||||
return part
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
:::tip
|
||||
Refer to [the part documentation on
|
||||
dependencies](/reference/api/part/config/dependencies) for all details.
|
||||
:::
|
Loading…
Add table
Add a link
Reference in a new issue