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'
|
||||
|
||||
export default {
|
||||
export default defineRoutes({
|
||||
async paths(watchedFiles: string[]) {
|
||||
console.log('watchedFiles', watchedFiles)
|
||||
// console.log('watchedFiles', watchedFiles)
|
||||
return paths
|
||||
},
|
||||
watch: ['**/data-loading/**/*.json'],
|
||||
async transformPageData(pageData: PageData) {
|
||||
console.log('transformPageData', pageData.filePath)
|
||||
async transformPageData(pageData) {
|
||||
// console.log('transformPageData', pageData.filePath)
|
||||
pageData.title += ' - transformed'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in new issue