orbikm / mkdocs-ezlinks-plugin

Plugin for mkdocs which enables easier linking between pages
MIT License
34 stars 17 forks source link

Links between deeply nested subfolders fails #35

Closed Mara-Li closed 2 years ago

Mara-Li commented 2 years ago

Hello. On my project, wikilinks doesn't seems to work.

My folder tree is :

docs/
├─ assets/
│  ├─ img/
│  │  ├─ img_char1.png
├─ Roleplay/
│  ├─ characters/
│  │  ├─ char1.md
│  ├─ references/
│  │  ├─ ref char1.md

Links is in a short path, as : [[filename]]

I have 404 error and the path pointed by links are : image

After some try, it seems that after the 3rd folder, the links generations are broken.

image

orbikm commented 2 years ago

I have reproduced your issue. I'm going to start investigating what is going on. Thank you for the report!

Mara-Li commented 2 years ago

Hello ! I'm happy to help you :D

I think it's possible to use resolve from pathlib or maybe something around glob all file ?

orbikm commented 2 years ago

Ok, this should be fixed now. Please pull down release 0.1.14 and let me know if this addresses it on your end. Feel free to re-open if the issue remains unresolved.

Once again, thanks for reporting the issue and using the plugin!

Mara-Li commented 2 years ago

It doesn't seems to work, on my side at last (windows 11) : image image image

image

Image are localized in assets/img who is in directly under docs (as docs/assets/img) and Mnémosyne folder is located in docs/Roleplay/Personnages/Mnémosyne