-
Notifications
You must be signed in to change notification settings - Fork 132
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
[Feature]: Do we support dynamic routing? #1368
Comments
Rspress just like many similar frameworks, is a static site generator that uses file-based convention routing. You can try using Modern.js or other frameworks to build your own document site to meet these dynamic requirements. |
This feature can be implemented into Rspress, but we don't have plans to do now. If you are interested, you can contribute a PR. FYI: https://vitepress.dev/guide/routing#dynamic-routes |
@Timeless0911 如果我在其他框架,例如next能直接使用你们的ui吗?就是默认的主题,跟我现在在rspress看到的一致 |
这当然不能了 |
😃没办法支持吗 |
Not our goal and if you are interest, you can contribute a PR. |
老哥业务太多了,实在没办法贡献呀😄 |
这个功能解决了什么问题?
有一些很重复的场景,可能只是内容不同,其他都是相同的,如果能暴露一个动态路由,可以通过编程式的来处理所有数据这就太完美了。
你期望的 API 是什么样子的?
在docs文件下创建类似于
:id
的文件夹表示这个是一个动态组件,在文件夹内创建 index.tsx等文件,接收一个props包含id,这样就可以批量处理了。The text was updated successfully, but these errors were encountered: