Skip to content

docs: fix broken relative links in the 1-Intro Japanese translation - #787

Open
viwe-monai wants to merge 1 commit into
microsoft:mainfrom
viwe-monai:docs/fix-ja-intro-translation-links
Open

viwe-monai wants to merge 1 commit into
microsoft:mainfrom
viwe-monai:docs/fix-ja-intro-translation-links

Conversation

@viwe-monai

Copy link
Copy Markdown
Contributor

What

The Japanese translation lessons/1-Intro/translations/README.ja.md embeds images and links to sibling lessons with paths copied from lessons/1-Intro/README.md without adjusting for the extra translations/ directory level, so all seven resolve to non-existent locations when rendered on GitHub. This PR adds the missing ../ level to each:

Line Broken Fixed
13 images/dsh_age.png ../images/dsh_age.png
33 images/photo-cat.jpg ../images/photo-cat.jpg
85 images/ml-for-beginners.png ../images/ml-for-beginners.png
119 images/ilsvrc.gif ../images/ilsvrc.gif
123 ../4-ComputerVision/07-ConvNets/README.md ../../4-ComputerVision/07-ConvNets/README.md
136 ../5-NLP/README.md ../../5-NLP/README.md
148 assignment.md ../assignment.md

Why

Four image embeds render as broken images and three lesson/assignment links lead to 404 for readers of the Japanese translation. (Fixes nothing behavioral; this is the same stale-relative-path class as #784, which covered the top-level translations/README.ja.md.)

How it was verified

Every fixed target was checked to exist in the repo tree at its resolved path (via git/trees/main?recursive=1):

  • lessons/1-Intro/images/dsh_age.png, lessons/1-Intro/images/photo-cat.jpg, lessons/1-Intro/images/ml-for-beginners.png, lessons/1-Intro/images/ilsvrc.gif
  • lessons/4-ComputerVision/07-ConvNets/README.md, lessons/5-NLP/README.md, lessons/1-Intro/assignment.md

No relative link in the file points outside the repo or at a path missing from the tree after this change.

Follow-ups deliberately left out

The same wrong-relative-depth class exists in some files under translations/ (for example translations/ar/lessons/0-course-setup/setup.md and the X1-MultiModal translated-image links). Left out to keep this diff to the one file, so this PR stays trivially reviewable.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant