zachhannum / mkdocs-autolinks-plugin

An MkDocs plugin that automagically generates relative links between markdown pages
https://pypi.org/project/mkdocs-autolinks-plugin/
MIT License
80 stars 31 forks source link

Log Warning for duplicate only if relevant file #20

Closed Yinameah closed 2 years ago

Yinameah commented 3 years ago

I have some code that is shipped with the documentation I'm building. So the pluging was issuing a lot of Warning for 'main.cpp' files & co, but this is useless since it cannot be linked to anyway.

So I made this little modification to your code. Feel free to merge.

And thanks for the job by the way. Made my life easier

Yinameah commented 3 years ago

I added some other feature. I wanted the errors (file not found) to show up directly in the html rendering. I find it much easier to work with. Since it is really simple, I implemented it on the top of my last modif.

Again, feel free to merge.

Yinameah commented 3 years ago

I just added something heavy and inefficient to check for headerlinks. Maybe someone need this, so I pushed (also for saving the work)

Probably you don't wan't to merge this. I can maybe do another branch if you want to merge the previous commit. Or maybe you can do it (I'm not so familiar with merge requests).

Let me know if I can be of any help on this.

zachhannum commented 2 years ago

I'm going to close this, since the duplicate warning was solved with #22 and we probably don't want to add a dependency on bs4 if we can help it. I do like the option for inline warnings in the html ouput, if you'd like to push that to a new branch for a pull request we can take a look at getting it merged.