mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 08:19:07 +02:00
feat(core): make broken link checker detect broken anchors - add onBrokenAnchors
config (#9528)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
332a466893
commit
fd49301a45
52 changed files with 1220 additions and 519 deletions
|
@ -206,7 +206,11 @@ export default async function createConfigAsync() {
|
|||
},
|
||||
},
|
||||
onBrokenLinks:
|
||||
isBuildFast ||
|
||||
isVersioningDisabled ||
|
||||
process.env.DOCUSAURUS_CURRENT_LOCALE !== defaultLocale
|
||||
? 'warn'
|
||||
: 'throw',
|
||||
onBrokenAnchors:
|
||||
isVersioningDisabled ||
|
||||
process.env.DOCUSAURUS_CURRENT_LOCALE !== defaultLocale
|
||||
? 'warn'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue