Commit d629160
committed
docs: preload cross-package alias targets in the compact index stub
Rendering the stub resolves its cross-package aliases in mkdocstrings' own
collection. On a warm incremental rebuild the target package's pages can
all be cache hits, so nothing loads it and rendering the changed index
crashes with AliasResolutionError — breaking the serve/edit loop for any
src change that alters the generated index. Cold builds were unaffected.
preload_modules pins the targets into the collection.1 parent 878e21e commit d629160
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
109 | 116 | | |
| 117 | + | |
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
| |||
0 commit comments