Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
sbom: true

- name: Attest image
uses: actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d # v4.2.1
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
with:
subject-name: ${{ env.IMAGE }}
subject-digest: ${{ steps.build.outputs.digest }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
persist-credentials: false

- name: Set up pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10

- name: Use Node.js 25.x ⚙️
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@6fc4b006235f201fdab3722e17240ab420d580e5 # v0.6.1
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM ghcr.io/pnpm/pnpm:11.18.0 AS install-deps
FROM --platform=$BUILDPLATFORM ghcr.io/pnpm/pnpm:11.20.0 AS install-deps

WORKDIR /app
COPY package.json ./
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,36 @@
"format:check": "oxfmt --check"
},
"dependencies": {
"@orama/orama": "^3.1.18",
"@tanstack/react-router": "1.170.18",
"@tanstack/react-router-devtools": "1.167.0",
"@tanstack/react-start": "1.168.33",
"@tanstack/start-static-server-functions": "1.167.19",
"@tanstack/react-router": "1.170.20",
"@tanstack/react-router-devtools": "1.167.1",
"@tanstack/react-start": "1.168.37",
"@tanstack/start-static-server-functions": "1.167.21",
"clsx": "^2.1.1",
"fumadocs-core": "16.13.0",
"fumadocs-mdx": "15.2.0",
"fumadocs-ui": "16.13.0",
"lucide-react": "^1.27.0",
"lucide-static": "^1.27.0",
"motion": "^12.43.0",
"fumadocs-core": "16.14.0",
"fumadocs-mdx": "15.2.2",
"fumadocs-ui": "16.14.0",
"lucide-react": "^1.28.0",
"lucide-static": "^1.28.0",
"motion": "^13.0.0",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"swr": "^2.4.2",
"swr": "^2.5.0",
"tailwind-merge": "^3.6.0",
"vite": "^8.1.5"
"vite": "^8.2.0",
"zbsearch": "^3.3.4"
},
"devDependencies": {
"@tailwindcss/vite": "^4.3.3",
"@types/mdx": "^2.0.14",
"@types/node": "^26.1.2",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.4",
"oxfmt": "^0.61.0",
"oxlint": "^1.76.0",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@vitejs/plugin-react": "^6.0.5",
"oxfmt": "^0.62.0",
"oxlint": "^1.77.0",
"oxlint-tsgolint": "^7.0.2001",
"tailwindcss": "^4.3.3",
"typescript": "^7.0.2"
},
"packageManager": "pnpm@11.9.0"
"packageManager": "pnpm@11.20.0"
}
1,782 changes: 895 additions & 887 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

16 changes: 4 additions & 12 deletions src/components/search.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import { create } from "@orama/orama";
import { useDocsSearch } from "fumadocs-core/search/client";
import {
SearchDialog,
Expand All @@ -13,21 +12,14 @@ import {
type SharedProps,
} from "fumadocs-ui/components/dialog/search";
import { useI18n } from "fumadocs-ui/contexts/i18n";

function initOrama() {
return create({
schema: { _: "string" },
// https://docs.orama.com/docs/orama-js/supported-languages
language: "english",
});
}
import { staticClient } from "fumadocs-core/search/client/orama-static";
Comment thread
alex289 marked this conversation as resolved.

export default function DefaultSearchDialog(props: SharedProps) {
const { locale } = useI18n(); // (optional) for i18n
const { search, setSearch, query } = useDocsSearch({
type: "static",
initOrama,
locale,
client: staticClient({
locale,
}),
});

return (
Expand Down
80 changes: 40 additions & 40 deletions src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,44 @@
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.

import { Route as rootRouteImport } from './routes/__root'
import { Route as SitemapDotxmlRouteImport } from './routes/sitemap[.]xml'
import { Route as LlmsDottxtRouteImport } from './routes/llms[.]txt'
import { Route as LlmsFullDottxtRouteImport } from './routes/llms-full[.]txt'
import { Route as IndexRouteImport } from './routes/index'
import { Route as DocsSplatRouteImport } from './routes/docs/$'
import { Route as LlmsFullDottxtRouteImport } from './routes/llms-full[.]txt'
import { Route as LlmsDottxtRouteImport } from './routes/llms[.]txt'
import { Route as SitemapDotxmlRouteImport } from './routes/sitemap[.]xml'
import { Route as ApiSearchRouteImport } from './routes/api/search'
import { Route as DocsSplatRouteImport } from './routes/docs/$'
import { Route as LlmsDotmdxDocsSplatRouteImport } from './routes/llms[.]mdx.docs.$'

const SitemapDotxmlRoute = SitemapDotxmlRouteImport.update({
id: '/sitemap.xml',
path: '/sitemap.xml',
getParentRoute: () => rootRouteImport,
} as any)
const LlmsDottxtRoute = LlmsDottxtRouteImport.update({
id: '/llms.txt',
path: '/llms.txt',
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const LlmsFullDottxtRoute = LlmsFullDottxtRouteImport.update({
id: '/llms-full.txt',
path: '/llms-full.txt',
getParentRoute: () => rootRouteImport,
} as any)
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
const LlmsDottxtRoute = LlmsDottxtRouteImport.update({
id: '/llms.txt',
path: '/llms.txt',
getParentRoute: () => rootRouteImport,
} as any)
const DocsSplatRoute = DocsSplatRouteImport.update({
id: '/docs/$',
path: '/docs/$',
const SitemapDotxmlRoute = SitemapDotxmlRouteImport.update({
id: '/sitemap.xml',
path: '/sitemap.xml',
getParentRoute: () => rootRouteImport,
} as any)
const ApiSearchRoute = ApiSearchRouteImport.update({
id: '/api/search',
path: '/api/search',
getParentRoute: () => rootRouteImport,
} as any)
const DocsSplatRoute = DocsSplatRouteImport.update({
id: '/docs/$',
path: '/docs/$',
getParentRoute: () => rootRouteImport,
} as any)
const LlmsDotmdxDocsSplatRoute = LlmsDotmdxDocsSplatRouteImport.update({
id: '/llms.mdx/docs/$',
path: '/llms.mdx/docs/$',
Expand Down Expand Up @@ -123,18 +123,11 @@ export interface RootRouteChildren {

declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/sitemap.xml': {
id: '/sitemap.xml'
path: '/sitemap.xml'
fullPath: '/sitemap.xml'
preLoaderRoute: typeof SitemapDotxmlRouteImport
parentRoute: typeof rootRouteImport
}
'/llms.txt': {
id: '/llms.txt'
path: '/llms.txt'
fullPath: '/llms.txt'
preLoaderRoute: typeof LlmsDottxtRouteImport
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
}
'/llms-full.txt': {
Expand All @@ -144,18 +137,18 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof LlmsFullDottxtRouteImport
parentRoute: typeof rootRouteImport
}
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexRouteImport
'/llms.txt': {
id: '/llms.txt'
path: '/llms.txt'
fullPath: '/llms.txt'
preLoaderRoute: typeof LlmsDottxtRouteImport
parentRoute: typeof rootRouteImport
}
'/docs/$': {
id: '/docs/$'
path: '/docs/$'
fullPath: '/docs/$'
preLoaderRoute: typeof DocsSplatRouteImport
'/sitemap.xml': {
id: '/sitemap.xml'
path: '/sitemap.xml'
fullPath: '/sitemap.xml'
preLoaderRoute: typeof SitemapDotxmlRouteImport
parentRoute: typeof rootRouteImport
}
'/api/search': {
Expand All @@ -165,6 +158,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof ApiSearchRouteImport
parentRoute: typeof rootRouteImport
}
'/docs/$': {
id: '/docs/$'
path: '/docs/$'
fullPath: '/docs/$'
preLoaderRoute: typeof DocsSplatRouteImport
parentRoute: typeof rootRouteImport
}
'/llms.mdx/docs/$': {
id: '/llms.mdx/docs/$'
path: '/llms.mdx/docs/$'
Expand Down
1 change: 0 additions & 1 deletion src/routes/api/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { createFromSource } from "fumadocs-core/search/server";
import { source } from "@/lib/source";

const server = createFromSource(source, {
// https://docs.orama.com/docs/orama-js/supported-languages
language: "english",
});

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@/*": ["./src/*"],
"fumadocs-mdx:collections/*": ["./.source/*"]
},
"noEmit": true
"noEmit": true,
"allowImportingTsExtensions": true
}
}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default defineConfig({
port: 3000,
},
plugins: [
mdx(await import("./source.config")),
mdx(await import("./source.config.ts")),
tailwindcss(),
tanstackStart({
spa: {
Expand Down