Replies: 1 comment 4 replies
-
Hi, Docusaurus of course would try to link to the page on your site, since not everyone is hosting their site on GitHub! It's quite weird if we decided to transform relative paths to GitHub URLs. We are not GitHub pages plus: we don't couple ourselves to GitHub in any way. Your solution is correct if you actually want to link to your GitHub page. Your URL is unambiguously a relative page URL, so we can't infer at all that you meant an asset with relative paths. However, if you want to include that file in your build as well, you can use the
Where |
Beta Was this translation helpful? Give feedback.
-
For example, I have a
index.md
that includes something like:And I would expect Docusaurus to properly link the file to the matching GitHub page of it (following the relative path since the index.md file).
But instead, Docusaurus tries to link to this file in my website, which is quite misleading. And OFC broken.
The only workaround I found was to use the full link:
Which of course isn't much scalable. Any tips?
Beta Was this translation helpful? Give feedback.
All reactions