[Docs] Ship standalone Pagefind search with a mobile UI and language/stage/concept facets

Aperta
#376 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
html, javascript

Direzione di ricerca

Start with docs/src/components/Header.astro at lines 41–43 and 87, then inspect the Astro build configuration and the frontmatter used for language, stage, and concepts. Check how the current Pagefind integration indexes the 39 HTML files and reproduce the missing search trigger at 375px. Done means search works at 375px and 1280px, filters by language and stage, and excludes template/example pages.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: docs-site priority: P2 size: M type: enhancement

Summary

Search is Starlight's Pagefind integration and disappears below 1024px in the custom header. Removing Starlight removes search entirely unless replaced.

Location

  • docs/src/components/Header.astro:41-43
  • docs/src/components/Header.astro:87

Evidence

Build log: [starlight:pagefind] Found 39 HTML files (includes the template /reference/example/). Playwright: search trigger not visible at 375px on all pages.

Expected

Fast, accessible search available on every viewport, filterable by project metadata, independent of Starlight.

Proposed fix

Run pagefind --site dist as a post-build step (or astro-pagefind); index only <main> (data-pagefind-body), add data-pagefind-filter for language/stage/concepts from frontmatter and data-pagefind-meta for thumbnails; build a <SearchDialog> on <dialog> with Ctrl/Cmd+K and / shortcuts and result keyboard navigation; exclude drafts and design pages.

Acceptance criteria

  • Search works at 375px and 1280px
  • Filters by language and stage work
  • Template/example pages are not indexed

Repository audit, November 2026 · Phase 7 · Docs platform · evidence: reproduced · ref platform-031


Generated by Claude Code

Lingua principale
C++
Stelle
2
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ibra-kdbra/Math-Problems

Tutte le issue di ibra-kdbra/Math-Problems

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.