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
1 year 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
|
||
|
}))
|
||
|
}
|
||
|
})
|