- raw-markdown.ts: Check path bounds before any filesystem probes to
prevent leaking file existence info outside the pages directory
- TableOfContents.tsx: Fix SSR hydration mismatch by moving
window.location.hash into useEffect + state instead of reading it
during render
- raw-markdown.ts: Replace weak regex path sanitization with
path.normalize (the path.resolve bounds check remains as primary guard)
- instrumentation-client.ts: Guard PostHog init against missing env var
instead of using non-null assertion (prevents crash in local dev)
- CopyPageButton.tsx: Show error feedback instead of false success when
copy fails
git filter-repo incorrectly resolved a merge commit where the docs app
was migrated from Docusaurus to Next.js + Markdoc, resulting in the old
Docusaurus files at HEAD. This commit overlays the correct current files
from the source repo (kilo-org/kilocode main branch).
Package renamed from kilocode-docs to @kilocode/kilo-docs.
- Add SearchIcon component (magnifying glass SVG)
- Add mobile search button in the header's right-actions section
- Add openDocSearch function to programmatically trigger DocSearch modal
- Add CSS styles for mobile-search-btn (hidden on desktop, visible on mobile)
- Button appears on viewports ≤768px and opens Algolia DocSearch when tapped
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>