You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add pagefind search with modal, Ctrl+K shortcut, and docs boosting
- Install pagefind@1.5.2 as a dev dependency
- Update build script to run pagefind after next export (outputs to out/pagefind)
- Add pagefind-component-ui CSS/JS to _document.js; place <pagefind-modal>
in the page body so it is available site-wide
- Desktop: search trigger button (with 'Search…' text and ⌘K/Ctrl+K badge)
appears at the right end of the nav bar via .nav-search-desktop
- Mobile (≤1020px): compact search icon shown next to the hamburger toggle;
desktop trigger is hidden
- Ctrl+K / Cmd+K keyboard shortcut opens the modal from anywhere on the page
- Keyboard shortcut badges styled as white pills with brand-red text so they
are readable on the red nav background
- Docs pages get data-pagefind-weight="2" on their content wrapper so /docs/
results rank above equally-relevant non-docs pages in search
- Override --pf-outline-focus and --pagefind-ui-primary to Comunica red
- Add z-index: 100 to the fixed nav (modal sits at 9999)
- Gitignore public/pagefind/ (generated at build time, not to be committed)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* add contrast diff in mobile too
* pagefind is normal dep in next
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments