Anduin2017 / Anduin2017/HowToCook
chore: 如果md file和parent dir是同样的名字,在url path中去掉dir名
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 102k
- Forks
- 11.1k
- Avg merge
- 14h 21m
- Merged PRs (30d)
- 2
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the MkDocs custom hooks documentation and the linked mkdocs-material example, then inspect the repository's documentation build configuration. Done means recipe URLs no longer repeat the final directory name when it matches the Markdown file name, including the 白灼菜心 example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown
- Domain
- documentation
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100