broken-link-checker icon indicating copy to clipboard operation
broken-link-checker copied to clipboard

Check broken anchors

Open honzajavorek opened this issue 4 years ago • 9 comments

Is your feature request related to a problem? Please describe. I'm building a website where local anchors are an important part of the content navigation. I need to automatically check whether they're broken or not.

Describe the solution you'd like I'd like the checker to validate whether my <a href="#foo"> or <a href="http://example.com/#foo"> links lead to a page where an actual id="foo" or <a name="foo"> element exists.

Describe alternatives you've considered I spent days already figuring out a JS or Python link checker for the website. Finally I found this one, which works perfectly, but this feature is missing. The Sphinx' builtin link checker does this and it is a very useful thing. It is baked into the Sphinx too much though, I need a generic tool like this one.

honzajavorek avatar Nov 07 '19 16:11 honzajavorek

It's on the to-do list, but it's a complicated feature to accomplish efficiently.

stevenvachon avatar Nov 07 '19 17:11 stevenvachon

I suppose it also implies --get

honzajavorek avatar Nov 07 '19 17:11 honzajavorek

It would if caching were disabled, which causes some complications that need to be thought through. Get method is already used for recursive document checks (getting links).

stevenvachon avatar Nov 07 '19 18:11 stevenvachon

i also looking for a anchor check

muescha avatar Jan 24 '20 17:01 muescha

Any update on this?

sullyD64 avatar Oct 05 '20 11:10 sullyD64

I'll be working on v0.8 soon, but I won't be including document anchor checks at that time

stevenvachon avatar Oct 05 '20 21:10 stevenvachon

I'm also looking for anchor checks. If you can give me some directions, I'll try to PR it.

tg44 avatar Jun 05 '21 15:06 tg44

It's on the to-do list, but it's a complicated feature to accomplish efficiently.

@stevenvachon, Thank you for this library, we are using it for checking all links on our documentation - works great 👍 . To fully accomplish our requirements we need to check all anchors, which I know is quite difficult. As you have experience in linking checking I would ask you if would you be able to add this functionality under the sponsorship?

Siemienik avatar Jul 15 '21 07:07 Siemienik

@stevenvachon don't know how sponsorship looks here but willing to add $100 on top of @Siemienik contribution to get this functionality.

mensfeld avatar Sep 22 '23 14:09 mensfeld