Validate anchor links? #2699
Replies: 3 comments
-
In general, Material for MkDocs is a theme and only started to provide plugins as part of Insiders (i.e. the built-in tags plugin). Those plugins are tailored to Material for MkDocs and may not be useful for other themes without further ado. Since anchor validation is something entirely non-theme related, I'd say it should be solved as part of a dedicated third-party plugin, so it's out of scope for this project. It's always a good idea to check the MkDocs plugin wiki, maybe there's already a plugin providing this functionality. |
Beta Was this translation helpful? Give feedback.
-
Anchor validation has been released into |
Beta Was this translation helpful? Give feedback.
-
Mkdocs 1.6 can validate anchors now. See the |
Beta Was this translation helpful? Give feedback.
-
An upstream issue to MkDocs to validate the
#anchor
portion of links was closed citing that a third party plugin should do this: mkdocs/mkdocs#658Is this something within scope for Material for MkDocs? Is there some way to solve the general problem of:
where
#title-3
is an accidental typo, but everything builds without warnings? To me this seems like a pretty big footgun towards keeping documentation accurate. For comparison, Sphinx can detect invalid links and throw an error.Is there any solution to catch these types of errors during the build?
Beta Was this translation helpful? Give feedback.
All reactions