You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
onBrokenAnchors reports spurious broken anchors for every page #9880
[WARNING] Docusaurus found broken anchors!
Please check the pages of your site in the list below, and make sure you don't reference any anchor that does not exist.
Note: it's possible to ignore broken anchors with the 'onBrokenAnchors' Docusaurus configuration, and let the build pass.
Exhaustive list of all broken anchors found:
- Broken anchor on source page path = /about:
-> linking to #other-quick-links (resolved as: /about#other-quick-links)
-> linking to #hotkeys (resolved as: /about#hotkeys)
-> linking to #contributing (resolved as: /about#contributing)
However, no such link exists in the about.mdx file, so Docusaurus is drunk.
Hello, I've tried to replicate your project locally however, by following your instructions, I have an error related to python, I don't know how to fix this error neither why you need python.
Could you provide a smaller source code with the strict minimum required to run Docusaurus so that we can debug knowing the error can't come from an external dependency
It looks like your site has a weird behavior regarding heading anchors: the # heading icon is not showing on hover and the HTML structure is different too.
This is very likely the reason.
I don't understand how you modified your site, but it is not the standard behavior so you probably did something.
If you have a custom theme heading component, make sure to use the newly documented hook in it:
I am having the same issue. Upon building the site, I get a huge number of broken anchor false positives. We haven't done anything out of the ordinary. Unfortunately, upgrading to docusaurus 3.2 didn't work, either. Did you find anything that resolved this for you @Zamiell ?
Similar answer to #9721 (comment), we need more info to troubleshoot such problem.
Yes, third-party plugins can also be the cause of such false positives. In which case it's helpful to share which plugins you are using so that we can inspect their code.
Another use case that causes this issue occurs when you use before the titles. On the main blog page, the anchors cannot find the related links, which results in an error. @slorber
-[Section One](#section-one)-[Section Two](#section-two)<!-- truncate -->## Section One
Content for section one.
## Section Two
Content for section two.
Activity
OzakIOne commentedon Feb 23, 2024
Hello, I've tried to replicate your project locally however, by following your instructions, I have an error related to python, I don't know how to fix this error neither why you need python.
Could you provide a smaller source code with the strict minimum required to run Docusaurus so that we can debug knowing the error can't come from an external dependency
slorber commentedon Feb 23, 2024
It looks like your site has a weird behavior regarding heading anchors: the
#heading icon is not showing on hover and the HTML structure is different too.This is very likely the reason.
I don't understand how you modified your site, but it is not the standard behavior so you probably did something.
If you have a custom theme heading component, make sure to use the newly documented hook in it:
https://docusaurus.io/docs/docusaurus-core#useBrokenLinks
Zamiell commentedon Feb 23, 2024
I'll work on a more minimal reproduction, thanks.
polly-bold commentedon Apr 10, 2024
I am having the same issue. Upon building the site, I get a huge number of broken anchor false positives. We haven't done anything out of the ordinary. Unfortunately, upgrading to docusaurus 3.2 didn't work, either. Did you find anything that resolved this for you @Zamiell ?
Zamiell commentedon Apr 10, 2024
iirc i had some other dep that got upgraded which caused this to happen
slorber commentedon Apr 11, 2024
Similar answer to #9721 (comment), we need more info to troubleshoot such problem.
Yes, third-party plugins can also be the cause of such false positives. In which case it's helpful to share which plugins you are using so that we can inspect their code.
erenkan commentedon Oct 1, 2024
Another use case that causes this issue occurs when you use before the titles. On the main blog page, the anchors cannot find the related links, which results in an error. @slorber
slorber commentedon Oct 1, 2024
@erenkan this is another bug reported here: #10287
fix: register heading anchors with Docusaurus broken link checker