Search and AI
Built-in search, markdown export, and the AI contextual menu.
Search#
Every Shiso site ships with client-side search — no service or API key required. Open it with the header button or ⌘K / Ctrl K.
The index is built at compile time from your content: each page is split into
heading-bounded sections, so results land on the exact section that matched.
Pages marked hidden in navigation stay out of the index.
Customize the input placeholder with search.prompt, or set search to false
to remove the search button and keyboard shortcut:
Search providers#
The built-in local provider is used by default. Select a registered provider
with search.provider; options are passed directly to its factory:
Register custom providers in src/entry-client.tsx before hydration:
Every provider returns normalized results with url, page, score, and
optional heading and snippet fields. Provider options are included in the
browser bundle, so do not put private API keys in them. An unknown provider id
logs a warning and falls back to local.
Markdown export#
The production build publishes the raw markdown of every page next to its HTML:
This powers the contextual menu below and gives AI tools a clean, token-efficient version of every page.
Contextual menu#
The contextual key adds a menu beside the page title for AI-optimized
actions. The first option is the primary button; the rest go in a dropdown.
copy: copy the page as Markdown to the clipboardview: open the page's markdown source in a new tabchatgpt,claude,perplexity: open the assistant with a prompt pointing at the page's markdown URL (requires$shiso.siteUrl)
The MCP-based options from the standard (mcp, cursor, vscode) require a
hosted MCP server, which Shiso does not provide — they are accepted and
skipped with a build notice.
Custom options#
Define your own entries as objects. $path expands to the page path and
$page to the page's markdown URL: