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

如果有特殊路径,会导致 unwarp None #15

Open
shenjackyuanjie opened this issue Dec 16, 2023 · 4 comments
Open

如果有特殊路径,会导致 unwarp None #15

shenjackyuanjie opened this issue Dec 16, 2023 · 4 comments

Comments

@shenjackyuanjie
Copy link

base_dir = base_dir.parent().unwrap();

image

原文:
image

image

@sanyuan0704
Copy link
Collaborator

感谢指出,这部分可以优化一下,传入当前markdown的绝对路径到 mdx-rs 中,否则父目录出了 docs 目录就找不到了

@shenjackyuanjie
Copy link
Author

我觉得不算 优化 吧(
毕竟都直接 panic 了(

@sanyuan0704
Copy link
Collaborator

../../ 已经是文档根目录以外的文档了,不属于 Rspress 的渲染范畴,文档里面的链接严格来说不应该指向这里

@shenjackyuanjie
Copy link
Author

o
用户点了一碗酒吧隔壁的啤酒是吧(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants