-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(example): replace Lorem with Pipeline (#773)
- Loading branch information
Showing
5 changed files
with
39 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#### What this PR does / why we need it: | ||
|
||
#### Which issue(s) will this PR fix?: | ||
|
||
#### Additional notes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Pipeline | ||
|
||
You can create another pipeline by adding a new unique `type` field. | ||
The same `type` are grouped together and processed in the order they are defined. | ||
|
||
:::codeblock-header{filename="contented.config.mjs" language="JavaScript"} | ||
|
||
```js | ||
/** @type {import('@contentedjs/contented').ContentedConfig} */ | ||
const config = { | ||
processor: { | ||
pipelines: [ | ||
{ | ||
type: 'Contented', | ||
pattern: 'README.md', | ||
processor: 'md', | ||
}, | ||
{ | ||
type: 'Contented', | ||
dir: 'example/docs', | ||
pattern: '**/*.md', | ||
processor: 'md', | ||
}, | ||
{ | ||
type: 'Pipeline', | ||
dir: 'example/pipeline', | ||
pattern: ['**/*.md'], | ||
processor: 'md', | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
export default config; | ||
``` | ||
|
||
::: |