feat: support dynamic routes#97
Merged
Merged
Conversation
commit: |
Owner
|
I will review this PR today or tomorrow Finally arrived from Poland for vacation, so there will be time for the project 🔥 |
…ction & add tests for it
…arker then insert it after it
Contributor
Merge SuccessfulThanks for your contribution! 🎉 The changes will be part of the upcoming update of this plugin. |
Owner
|
Thanks for this PR! |
Owner
|
Waiting for suggestions for fixes/features by tomorrow if you have any of course After which I'll release a new release 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I changed the transformation flow so that, instead of storing the file IDs in a
Set, it would load aMapwith the content and, from there, it would be possible to use the internal markings ofvitepress(__VP_PARAMS_START{“key”:“value”} __VP_PARAMS_END__) that signal the dynamic parameters of the route.I changed the LLM hint to the end of the HTML to avoid conflicts with the reserved keys that must come at the beginning of the content, and I removed a test that checked the reading of the files from the IDs list, which is no longer necessary now that the content is passed.
Related Issue
This PR applies as described in issue #89 and closes #30.