Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Dynamic Routes #199

Open
SasePriv opened this issue Feb 10, 2025 · 4 comments
Open

Problem with Dynamic Routes #199

SasePriv opened this issue Feb 10, 2025 · 4 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@SasePriv
Copy link

Describe the bug

In Vitepress exist the posibility to generate dinamic routes from dynamic data, in my case im using this to generate pages with data is comming from api, and in the documentation of vitepress, say the output will be new html files with that data.

I understand that the vitepress sidebar automatically scans each file and generates the sidebar, but in my case in the sidebar only the .md file of the template is shown.

Image

I think this is a bug or a behavior that has not yet been taken into account in this project.

Expected behavior

The normal behavior would be that it should show the dynamic routes in the sidebar.

Your environment - System OS

Ubuntu under WSL on Windows 11

Your environment - Web Browser

Brave

@SasePriv SasePriv added the bug Something isn't working label Feb 10, 2025
@jooy2
Copy link
Owner

jooy2 commented Feb 11, 2025

Hello, thank you for using vitepress-sidebar.

Yes, this is a feature that is not yet implemented in our plugin. Thank you for reporting the issue!

I'll take a look at it as soon as I have some free time, but I'll keep the issue open until then as it may be delayed.
I'll update the information when the feature is implemented.

Thanks again!

@jooy2 jooy2 added enhancement New feature or request good first issue Good for newcomers and removed bug Something isn't working labels Feb 11, 2025
@jooy2 jooy2 self-assigned this Feb 11, 2025
@jooy2 jooy2 mentioned this issue Feb 7, 2025
10 tasks
@SasePriv
Copy link
Author

If it's ok with you and you haven't started yet and this feature won't be done soon, I could participate and make a pull request with the feature ? @jooy2

@jooy2
Copy link
Owner

jooy2 commented Feb 11, 2025

Of course! Contributions to the project are always welcome :)

I'll be working on #198 for the time being, as it's a high priority issue. However, as soon as PRs come in, I can quickly review and merge them.

When contributing to the project, you may need to consider the project's documentation, test code, or option scheme.

Regards,

@SasePriv
Copy link
Author

I was thinking on reading the .paths.js file to generate the links, but i found some problems on the road, first the problem to find .ts files that the compiled code will throw an error, then to make dynamic importing of the .paths.js is async and i see the all code is made to do it in sync.

Some idea how it can do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants