Commit 5f8b45c
authored
fix(config): migrate onBrokenMarkdownLinks to markdown.hooks (#36)
This PR migrates the onBrokenMarkdownLinks configuration from the
top-level config to markdown.hooks.onBrokenMarkdownLinks to fix the
deprecation warning and ensure compatibility with Docusaurus v4.
The deprecated top-level configuration was causing the following warning
during the build process:
```
[WARNING] 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.
```
This change follows the recommended migration path by moving the setting
to the new location under markdown.hooks while maintaining the same
behavior (throwing on broken markdown links).
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>1 parent 3ca3c04 commit 5f8b45c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
0 commit comments