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.
vitepress/__tests__/e2e/data-loading/contentLoader.data.ts

14 lines
275 B

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