Skip to content

Suggestion to move content collection to the transformation stage instead of the build stage #89

@hcdo7

Description

@hcdo7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions