-
Notifications
You must be signed in to change notification settings - Fork 15
Description
When writing markdown files to be viewed directly in a GitHub repo, you can link directly to source file views using plain file paths relative to the repo root. GitHub automatically transforms these paths into the appropriate URL to view that source file blob.
When the wiki output is built, however, the links become plain relative URLs and do not take into account the presence of source files at those paths, thus linking based off of the actual URL path on the page. It would be wonderful if it behaved like GitHub's built-in markdown viewer, transforming the file paths into URLs to view the source files.
Example
In-repo view: https://github.com/GoBLFC/Tracker/blob/main/wiki/Setup-(Docker).md#updating
Current wiki view: https://github.com/GoBLFC/Tracker/wiki/Setup-(Docker)#updating
See the link to .docker/scripts/update.sh
in the Updating section of both of those.
In the repo view, it properly links to the file at that path within the repo (https://github.com/GoBLFC/Tracker/blob/main/.docker/scripts/update.sh
).
In the wiki, it just links to https://github.com/GoBLFC/Tracker/.docker/scripts/update.sh
, which is missing the blob/main
part of the URL to actually view that file.