Commit 525a30e
* fix(docs): restore search bar in api/guides starlight header (closes #2299)
Custom Header override replaced Starlight's default header without
re-mounting <Search />, so api.wheels.dev and guides.wheels.dev lost
the search/filter field.
Add a conditional `search` slot to the shared Header and fill it from
the Starlight override using `virtual:starlight/components/Search`,
matching the pattern already used in Footer.astro for EditLink /
LastUpdated / Pagination.
Landing/blog/packages sites are unaffected — they don't pass a search
slot, so the container is not rendered (Astro.slots.has guard).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(docs): refresh guides visual baseline for restored search button
Header now renders Pagefind's <Search /> button per #2299 fix. Diff
confirms only the new search button area changed (202px > 200 threshold).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e264f89 commit 525a30e
3 files changed
Lines changed: 22 additions & 0 deletions
File tree
- web
- packages/ui/src/components
- starlight
- tests/visual-baselines
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
112 | 120 | | |
113 | 121 | | |
114 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
115 | 135 | | |
116 | 136 | | |
117 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
Loading
0 commit comments