Skip to content

Commit

Permalink
docs: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa committed Dec 23, 2024
1 parent 7bedf39 commit 11cd8eb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/src/components/Toc/Toc.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { cn } from "~/utils/cn";
import { component$, useSignal, $, useOnWindow } from '@qwik.dev/core';
import { ContentHeading } from '@qwik.dev/router';
import type { ContentHeading } from '@qwik.dev/router';

export const TOC = component$(
export const Toc = component$(
({ headings }: { headings: ContentHeading[] }) => {
if (headings.length === 0) {
return null;
Expand Down Expand Up @@ -106,7 +106,7 @@ type RecursiveListProps = {

const RecursiveList = component$<RecursiveListProps>(
({ tree, activeItem, limit = 3 }) => {
return tree?.children?.length && tree.level < limit ? (
return tree.children.length && tree.level < limit ? (
<ul class={cn('m-0 list-none', { 'pl-4': tree.level !== 1 })}>
{tree.children.map((childNode) => (
<li key={childNode.id} class="mt-0 list-none pt-2">
Expand Down
2 changes: 1 addition & 1 deletion docs/src/routes/forwarding-events/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If your script declares global functions or variables, make sure they are explic

You can customize each forwarded variable with the following settings:

- ### preserveBehavior
- ## preserveBehavior

In addition to the `forward` config, we also provide a `preserveBehavior` property. This property allows you to customize each forwarded property, preserving the original behavior of the function.

Expand Down
6 changes: 3 additions & 3 deletions docs/src/routes/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import {
useStore,
useVisibleTask$,
} from "@qwik.dev/core";
import { useLocation, type RequestHandler, useContent } from "@qwik.dev/router";
import { type RequestHandler, useContent } from "@qwik.dev/router";
import { Aside } from "~/components/Aside/Aside";
import { Footer } from "~/components/Footer/Footer";
import { Header } from "~/components/Header/Header";
import { components } from "~/components/MdxComponents/MdxComponents";
import { TOC } from "~/components/Toc/Toc";
import { Toc } from "~/components/Toc/Toc";
import { MDXProvider } from "~/state/MDXProvider";

export const onGet: RequestHandler = async ({ cacheControl }) => {
Expand Down Expand Up @@ -57,7 +57,7 @@ export default component$(() => {
<Slot />
<Footer />
</article>
<TOC headings={headings ?? []} />
<Toc headings={headings ?? []} />
</main>
</div>
</MDXProvider>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/routes/proxying-requests/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ However, because Partytown requests the scripts within a web worker using [fetch

Many third-party scripts already provide the correct CORS headers, but not all do. For services that do not add the correct headers, then a [reverse proxy](#reverse-Proxy) to another domain must be used in order to provide the CORS headers.

#### CORS Response Header
## CORS Response Header

```
Access-Control-Allow-Origin: *
Expand Down
2 changes: 1 addition & 1 deletion docs/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { qwikVite } from "@qwik.dev/core/optimizer";
import { qwikRouter } from "@qwik.dev/router/vite";
import { defineConfig, type UserConfig } from "vite";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import pkg from "./package.json";
import { recmaProvideComponents } from "./recma-provide-components";
Expand Down

0 comments on commit 11cd8eb

Please sign in to comment.