mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
275 B
14 lines
275 B
2 years ago
|
import { createContentLoader } from 'vitepress'
|
||
|
|
||
|
export default createContentLoader('data-loading/content/*.md', {
|
||
|
includeSrc: true,
|
||
|
excerpt: true,
|
||
|
render: true,
|
||
|
transform(data) {
|
||
|
return data.map((item) => ({
|
||
|
...item,
|
||
|
transformed: true
|
||
|
}))
|
||
|
}
|
||
|
})
|