Python-Markdown / markdown

A Python implementation of John Gruber’s Markdown with Extension support.
https://python-markdown.github.io/
BSD 3-Clause "New" or "Revised" License
3.71k stars 856 forks source link

Fixed links to source code on GitHub from the documentation #1453

Closed mitya57 closed 5 months ago

mitya57 commented 5 months ago

With the current version, if you open e.g. this page, the ‹› links on the right side of the page will point to URLs like https://github.com/Python-Markdown/markdown/tree/3.6//home/runner/work/markdown/markdown/md/markdown/blockprocessors.py which are wrong (note the /home/runner/work/ part).

This commit fixes them by replacing filepath with relative_filepath. It seems to work locally for me, but needs to be tested on our main documentation website.

waylan commented 5 months ago

Thanks for this. I noticed the issue and hadn't yet had the opportunity to track it down.

waylan commented 5 months ago

I just did a manual deploy to update the documentation with the current master and this has resolved the issue. 👍