Skip to content
Discussion options

You must be logged in to vote

We don't have that ability for now but it makes sense to me, and I'm thinking we could allow onBrokenLinks: (links) => {} callbacks.

This would also help for false positive broken anchors (see #9808)

In the meantime we use this trick on our own website for similar reasons:

    onBrokenLinks:
      process.env.DOCUSAURUS_CURRENT_LOCALE !== defaultLocale
        ? 'warn'
        : 'throw',

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Blargian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants