From 1d79edbfb48eb3d5becd197f74739160a7747a22 Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Thu, 18 Jul 2024 19:44:09 +0200 Subject: [PATCH] fix(docs): use Link for search results --- packages/docs/src/components/docsearch/result.tsx | 7 +++++-- packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/docs/src/components/docsearch/result.tsx b/packages/docs/src/components/docsearch/result.tsx index 63f48a978c1..82d253cdfce 100644 --- a/packages/docs/src/components/docsearch/result.tsx +++ b/packages/docs/src/components/docsearch/result.tsx @@ -4,6 +4,7 @@ import { SearchContext } from './context'; import { AiResultOpenContext, type DocSearchState } from './doc-search'; import { Snippet } from './snippet'; import type { InternalDocSearchHit } from './types'; +import { Link } from '@builder.io/qwik-city'; export const Result = component$( ({ state, item }: { state: DocSearchState; item: InternalDocSearchHit }) => { @@ -49,7 +50,9 @@ export const Result = component$( .filter(Boolean) .join(' ')} > - +
{/* @ts-ignore */} @@ -98,7 +101,7 @@ export const Result = component$( )}
-
+ ); } diff --git a/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx b/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx index 9825d2c760f..ee3567fc169 100644 --- a/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx +++ b/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx @@ -416,7 +416,7 @@ Qwik City also supports: - [Request Handling](/docs/(qwikcity)/advanced/request-handling/index.mdx) ## Typesafe Routing -- [Typed Routes](/docs/(qwikcity)/labs/typed-routes/index.mdx#-typed-routes) -- [Declarative Routing](/docs/(qwikcity)/labs/typed-routes/index.mdx#declarative-routing) +- [Typed Routes](/docs/labs/typed-routes/index.mdx#-typed-routes) +- [Declarative Routing](/docs/labs/typed-routes/index.mdx#declarative-routing) These are discussed later.