Open ooker777 opened 8 months ago
I correct some path using JS, so it's maybe that ?
what do you mean? Do you mean that you have a hot fix in the plugin?
Do you use my mkdocs template ? Because I use some JS in it to fix the plugin.
Ah I see. Yeah I use your template. Hmm, can a JS script call a Python script? Sure, it technically can via the shell, but if it's just a simple path correcting script why don't you just write it in JS natively?
Let's say we have this
mkdocs.yml
:And this folder structure:
And in
docs/a/index.md
we have this path:[test](./a1/index.md)
.The href output of
site/a/index.html
ishref="a1/"
, which is correct.However, if
docs/a/a1/index.md
doesn't exist, then depending on the case the result varies:../b/
docs/b/index.md
is removed../a1/index.md
docs/index.md
is removed../a1/index.md
I expect whatever the case is, the href output should always be
./a1/index.html
Do you know why?