When using symlink edit source button leads to wrong source! #7447
Unanswered
newonlynew
asked this question in
Q&A
Replies: 1 comment
-
I may be wrong but for this to work, MkDocs would need to recognise a file as a symbolic link and give it special handling. I am not aware of such functionality. You could try to suggest it in the MkDocs discussions. A way to solve this yourself would be to create a hook that re-writes the edit URL for those symlinks. I am not sure how many people have the same problem but if you come up with a generic solution, this might make a good contribution for show & tell?! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have 2 sections:
PublicAPI has BaseMiddleware.md and API has the same one. So the decision was to use symlink.
api/ folder is having all the objects in API so public API refers to some of them.
The symlink is:
public_api/ -> api/
The problem is that in Public API section all edit source buttons lead to public_api/BaseMiddleware.md which is considered wrong by github(no such file). Is it possible to make this buttons lead to api/BaseMiddleware.md instead?

Beta Was this translation helpful? Give feedback.
All reactions