mirror of https://github.com/vuejs/vitepress
parent
26f276fee3
commit
356143efd3
@ -1,14 +1,14 @@
|
|||||||
import type { PageData } from 'client/shared'
|
import { defineRoutes } from 'vitepress'
|
||||||
import paths from './paths'
|
import paths from './paths'
|
||||||
|
|
||||||
export default {
|
export default defineRoutes({
|
||||||
async paths(watchedFiles: string[]) {
|
async paths(watchedFiles: string[]) {
|
||||||
console.log('watchedFiles', watchedFiles)
|
// console.log('watchedFiles', watchedFiles)
|
||||||
return paths
|
return paths
|
||||||
},
|
},
|
||||||
watch: ['**/data-loading/**/*.json'],
|
watch: ['**/data-loading/**/*.json'],
|
||||||
async transformPageData(pageData: PageData) {
|
async transformPageData(pageData) {
|
||||||
console.log('transformPageData', pageData.filePath)
|
// console.log('transformPageData', pageData.filePath)
|
||||||
pageData.title += ' - transformed'
|
pageData.title += ' - transformed'
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in new issue