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

chore: 如果md file和parent dir是同样的名字,在url path中去掉dir名 #1308

Open
dfz2019 opened this issue Feb 26, 2024 · 1 comment

Comments

@dfz2019
Copy link

dfz2019 commented Feb 26, 2024

https://cook.aiurs.co/ 中有一些菜谱附带有对应的图片,图片和md file放在菜谱directory下面,生成的文档url也会带有重复菜名,例如

https://cook.aiurs.co/dishes/vegetable_dish/白灼菜心/白灼菜心/

我们是不是可以通过一个custom hook来把url变成 https://cook.aiurs.co/dishes/vegetable_dish/白灼菜心/, see example

@Anduin2017
Copy link
Owner

需求挺合理的,但是这个实现有点儿太 hack 了。希望有 mkdocs 的插件可以解决好这个。

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