We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
System: OS: Windows 10 10.0.18363 CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz Memory: 8.22 GB / 15.83 GB Browsers: Edge: Spartan (44.18362.1533.0) Internet Explorer: 11.0.18362.1 npmPackages: rspress: ^1.28.0 => 1.28.1
因为现有markdown文档较多,我在尝试通过Typescript 脚本来遍历 docs下的文档,然后动态更新 目录下的_meta.json中的配置。
部分markdown文档目录下,单独创建了imgs目录来存放所要引用的图片,此时外层目录已经生成了_meta.json,而imgs目录中由于没有markdown文档,因此并未生成_meta.json,结构大致如下: 其中_meta.json 如下
[ "index", { "type": "dir", "name": "imgs", "label": "没有Markdown" } ]
构建完成后,侧边栏目录表现为 但这个1其实 是 图片。
类似的,子级目录如果没有指定_meta.json ,是否也不应该将 里面的非md文件添加到侧边目录呢? 或者有没有什么配置可以规避此类问题?
https://codesandbox.io/p/devbox/bold-dew-dyn243
The text was updated successfully, but these errors were encountered:
same as #1327
Sorry, something went wrong.
route.extensions
_meta.json
Successfully merging a pull request may close this issue.
版本信息
System: OS: Windows 10 10.0.18363 CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz Memory: 8.22 GB / 15.83 GB Browsers: Edge: Spartan (44.18362.1533.0) Internet Explorer: 11.0.18362.1 npmPackages: rspress: ^1.28.0 => 1.28.1
问题详情
背景
因为现有markdown文档较多,我在尝试通过Typescript 脚本来遍历 docs下的文档,然后动态更新 目录下的_meta.json中的配置。
出现问题
部分markdown文档目录下,单独创建了imgs目录来存放所要引用的图片,此时外层目录已经生成了_meta.json,而imgs目录中由于没有markdown文档,因此并未生成_meta.json,结构大致如下:
其中_meta.json 如下
构建完成后,侧边栏目录表现为
但这个1其实 是 图片。
期望
类似的,子级目录如果没有指定_meta.json ,是否也不应该将 里面的非md文件添加到侧边目录呢?
或者有没有什么配置可以规避此类问题?
复现链接
https://codesandbox.io/p/devbox/bold-dew-dyn243
复现步骤
5.在 codeSandbox 中表现如下
The text was updated successfully, but these errors were encountered: