Is it possible to reject broken links for the main language, but ignore broken links for translations? #11371
Answered
by
slorber
rrousselGit
asked this question in
Q&A
-
|
I maintain a documentation where translations are contributed by third-party people. For the sake of being able to move reasonably fast when writing docs, I'd like to ignore link error from translations. Is there a way to change the broken links handling for translations only? |
Beta Was this translation helpful? Give feedback.
Answered by
slorber
Aug 24, 2025
Replies: 2 comments 1 reply
-
|
Yes, we do this too on our own website! onBrokenLinks:
process.env.DOCUSAURUS_CURRENT_LOCALE !== defaultLocale
? 'warn'
: 'throw',
onBrokenAnchors:
process.env.DOCUSAURUS_CURRENT_LOCALE !== defaultLocale
? 'warn'
: 'throw',In the future, these APIs will likely accept a callback to give you more flexibility (#11101) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rrousselGit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, we do this too on our own website!
In the future, these APIs will likely accept a callback to give you more flexibility (#11101)