-
I'm trying to build documentation for a library of functions I built and maintain. The end goal is to create an API documentation site where the various exposed methods, properties, and functions can be documented with their parameters, return values, descriptions, and example code; something similar to say the chrome.tabs API method reference. But I'm having difficulty getting vitepress to generate dynamic paths from my data The error I get is:
But, my paths file does have a paths property in the export: import { pug } from '@/data'
export default {
paths() {
return pug.map(
obj => (
{
params:{
name:obj.meta.name,
...obj
}
}
)
)
}
} Any ideas on what I'm doing wrong here? Or am I trying to use dynamic paths for something they aren't meant for? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Aliases aren't supported inside data loader, path and config files. Try using relative imports instead. |
Beta Was this translation helpful? Give feedback.
Aliases aren't supported inside data loader, path and config files. Try using relative imports instead.