also looking at this
fix: preserve deployment paths in local search results
#91
5 files
+81
-23
| @@ -362,6 +362,14 @@ generated pages. Skip it when you do not need search in a given build: | ||
| 362 | 362 | bunpress build --no-search-index |
| 363 | 363 | ``` |
| 364 | 364 | |
| 365 | ## Deployment under a path | |
| 366 | ||
| 367 | Local search results use the same deployment path as rendered pages. With | |
| 368 | `basePath: '/docs'`, a result for `guide.md` opens `/docs/guide`; section anchors | |
| 369 | and locale paths retain that prefix. When no explicit base path is set, the | |
| 370 | pathname of `sitemap.baseUrl` or `url` supplies it, matching the page renderer. | |
| 371 | Root-hosted sites retain their existing paths. | |
| 372 | ||
| 365 | 373 | ## Accessibility |
| 366 | 374 | |
| 367 | 375 | Search is accessible by default: |