Commit 143e923
committed
[fix] resolve empty overview links at build time
- onEmptyLinkMatch resolved the target from the page directory instead
of the docs root, so [](api/...) links stayed empty and unresolved
- now resolves from the docs root and emits a root-absolute href
without the .md/.mdx extension, matching normalizeMarkdownMdLinks
- guard against a missing file or absent sidebar_label to avoid build crash1 parent d09cf17 commit 143e923
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
| |||
0 commit comments