Replies: 1 comment
-
We don't have that ability for now but it makes sense to me, and I'm thinking we could allow 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', |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On our documentation project we have an english docs directory
docs/en/
and two poorly maintained translation directoriesdocs/ru/
anddocs/zh
for Russian and Chinese languages respectively. We recently upgraded to Docusaurus V3 and have turnedonBrokenLinks
to warn due to the sheer number of links that would need to get fixed in the two latter directories. Additionally we are planning to have these generated by a LLM at some point so we don't want to invest too much effort into fixing the broken links.Is there currently any built-in functionality to exclude directories from getting checked? We would like to only check links for our english translation docs directory.
Beta Was this translation helpful? Give feedback.
All reactions