This is a possible suggestion.
In the current model, the transform() function is responsible for including a list of ids that is used to find the .md files and generate the necessary data in the generateBundle() step. Would it be possible, instead of id, to already create a list of contents in the transformation step, allowing the flow to have already undergone a certain transformation at the time of compilation in more complex cases?
One case that I think could be simplified with this approach is in dynamic routes, as noted in issue #30 .
I'm not very familiar with vitepress yet, but I'd be happy to contribute a PR related to possible approaches to this workflow change if you think it makes sense.
This is a possible suggestion.
In the current model, the
transform()function is responsible for including a list ofidsthat is used to find the.mdfiles and generate the necessary data in thegenerateBundle()step. Would it be possible, instead ofid, to already create a list of contents in the transformation step, allowing the flow to have already undergone a certain transformation at the time of compilation in more complex cases?One case that I think could be simplified with this approach is in dynamic routes, as noted in issue #30 .
I'm not very familiar with
vitepressyet, but I'd be happy to contribute a PR related to possible approaches to this workflow change if you think it makes sense.