-
Notifications
You must be signed in to change notification settings - Fork 195
rename README.md to index.md, to avoid broken link alerts #901
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
Conversation
Can you show an example of broken link alert? |
I got it locally when I tried linking to one of the |
I'm sorry, I still don't understand the issue you've found. What kind of linking are you referring to? Between Markdown files? Can you guide me with a concrete step-by-step example? Thanks |
I feel like this is an mdbook configuration issue 🤔 |
EDIT: https://rust-lang.github.io/mdBook/format/configuration/preprocessors.html#configuring-preprocessors EDIT 2: Wait, is this actually the linkchecker's problem? |
This is an issue in mdbook (rust-lang/mdBook#984). It automatically converts pages called There are two workarounds, one is to rename files to |
Ah yes, that link is really appreciated, now I get it. So, all the linked PRs to that issue indicates that people are renaming files, which imho is a bit ugly (but now I understand the reasoning). I looked in the mdbook repo and there seems to be a stalled WIP patch, mdBook#1921. @ehuss I didn't look deep into that, do you think that patch goes in the right direction (I've read your review)? |
a48211c
to
62cf6a4
Compare
mdbook renders README.md files as index.html, so linking to README.md results in 404 errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's more important that links are fixed, renaming seems fine
mdbook renders README.md files as index.html, so linking to README.md results in 404 errors.
Rendered