fix: move onBrokenMarkdownLinks config in docusaurus.config.ts to the new location
Fixes the following Docusaurus warning during build. The `siteConfig.onBrokenMarkdownLinks` config option is deprecated and will be removed in Docusaurus v4. Please migrate and move this option to `siteConfig.markdown.hooks.onBrokenMarkdownLinks` instead. Signed-off-by: Sebastian <sebastian.danielsson@proton.me>
This commit is contained in:
@@ -86,7 +86,6 @@ const config: Config = {
|
||||
repoUrl: 'https://github.com/backstage/backstage',
|
||||
},
|
||||
onBrokenLinks: 'log',
|
||||
onBrokenMarkdownLinks: 'log',
|
||||
future: {
|
||||
v4: {
|
||||
removeLegacyPostBuildHeadAttribute: true,
|
||||
@@ -169,6 +168,9 @@ const config: Config = {
|
||||
return removeHtmlComments(fileContent);
|
||||
},
|
||||
format: 'detect',
|
||||
hooks: {
|
||||
onBrokenMarkdownLinks: 'log',
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
'docusaurus-plugin-sass',
|
||||
|
||||
Reference in New Issue
Block a user