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
MkDocs warning for anchor link in nav even when the link works #4026
When I add a TOC link to a H2, I see a warning during the build. However, the link works in the published article.
The YAML entry looks like: - Heading2: filename-without-MD-extn/#anchor-to-h2
This works in the published TOC but I see the following warning while building: WARNING - A reference to filename-without-MD-extn/#anchor-to-h2 is included in the nav configuration, which is not found in the documentation files
In the interest of having a clean, warning-free build (to use strict mode), how can I suppress this warning or get rid of it?
I tried adding the extension .md to the nav entry as below, but it stopped working in published TOC and the warning still remained. - Heading2: filename-without-MD-extn.md/#anchor-to-h2
Also, while searching in the issues, I came across this comment in issue #3223 which may be relevant to the above issue.
Activity
ashishguptaiitb commentedon Dec 5, 2025
Following up on this issue. Is it possible to downgrade such a warning to info. I'd like to have this along with
strictmode.