Commit 877c9ae
committed
fix(docs[spa-nav]): update brand links and logo srcs after SPA navigation
why: The sidebar brand link, mobile header brand link, and logo image
srcs use relative paths that go stale after SPA navigation across
directory depths. They live outside the swap regions (.article-container,
.sidebar-tree, .toc-drawer) so swap() never updates them.
what:
- After swapping content regions, copy brand href and logo src from
the fetched document (which has correct relative paths for the target)
- Covers: .sidebar-brand href, .header-center a href, .sidebar-logo src1 parent 475d049 commit 877c9ae
File tree
1 file changed
+18
-0
lines changed- docs/_static/js
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
135 | 153 | | |
136 | 154 | | |
137 | 155 | | |
| |||
0 commit comments