Search
Full-text search across all your documentation pages, built in by default.
Every GetPagemark site includes client-side search with zero configuration. A search index is generated at build time and loaded lazily when the user focuses the search input.
How to Use
- Click the search bar in the header or press Ctrl+K (or Cmd+K on Mac).
- Start typing. Results appear instantly as you type.
- Use ↑ / ↓ arrow keys to navigate results.
- Press Enter to go to the selected result.
- Press Esc to close.
Scoring
Results are ranked by relevance:
- Title match — highest priority (score: 100)
- Heading match — h1-h6 tags (score: 50)
- Content match — body text (score: 10)
Index Details
The search index (search-index.json) is generated during build. It contains page titles, headings, and the first 500 characters of plain text content per page. The index is loaded once on first search interaction and cached in memory.
Limitations
- Search is client-side only — no server requests after the initial index load.
- Limited to 15 results per query.
- No fuzzy matching — search is exact substring match.
- Hidden on mobile viewports (below 768px) due to space constraints.