Skip to content

feat: support dynamic routes#97

Merged
okineadev merged 5 commits into
okineadev:mainfrom
hcdo7:feat/support-dynamic-routes
Nov 4, 2025
Merged

feat: support dynamic routes#97
okineadev merged 5 commits into
okineadev:mainfrom
hcdo7:feat/support-dynamic-routes

Conversation

@hcdo7

@hcdo7 hcdo7 commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

Description

I changed the transformation flow so that, instead of storing the file IDs in a Set, it would load a Map with the content and, from there, it would be possible to use the internal markings of vitepress (__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.

@pkg-pr-new

pkg-pr-new Bot commented Oct 30, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/vitepress-plugin-llms@97

commit: 871db03

@okineadev

Copy link
Copy Markdown
Owner

I will review this PR today or tomorrow

Finally arrived from Poland for vacation, so there will be time for the project 🔥

@okineadev okineadev merged commit 380959b into okineadev:main Nov 4, 2025
4 checks passed
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Merge Successful

Thanks for your contribution! 🎉

The changes will be part of the upcoming update of this plugin.

@okineadev

Copy link
Copy Markdown
Owner

Thanks for this PR!

@okineadev

Copy link
Copy Markdown
Owner

Waiting for suggestions for fixes/features by tomorrow if you have any of course

After which I'll release a new release 🚀

@hcdo7 hcdo7 deleted the feat/support-dynamic-routes branch November 4, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add dynamic routes support

2 participants