Skip to content

Commit 7b4370a

Browse files
authored
Merge pull request #8519 from QwikDev/v2-docs-fixes
docs: style fixes
2 parents 0e29f8a + 177c973 commit 7b4370a

146 files changed

Lines changed: 3677 additions & 7306 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/docs/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ functions/**/*.js
66
# This is used in dev mode because service
77
# workers don't support imports
88
public/repl/repl-sw.js*
9+
public/pagefind/
910

1011
!src/routes/api/qwik/server/
1112

@@ -40,5 +41,5 @@ lerna-debug.log*
4041
*.sw?
4142

4243
# Cloudflare
43-
44+
.wrangler
4445
*.local

packages/docs/global.d.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,28 @@ declare module '*?compiled-string' {
88
const str: string;
99
export default str;
1010
}
11+
12+
declare module '/pagefind/pagefind.js' {
13+
export function options(options: { bundlePath?: string }): Promise<void>;
14+
export function init(): Promise<void>;
15+
export function debouncedSearch(
16+
term: string,
17+
options?: unknown,
18+
debounceTimeoutMs?: number
19+
): Promise<{
20+
results: {
21+
data: () => Promise<{
22+
url: string;
23+
excerpt?: string | null;
24+
meta?: {
25+
title?: string | null;
26+
};
27+
sub_results?: {
28+
title?: string | null;
29+
url: string;
30+
excerpt?: string | null;
31+
}[];
32+
}>;
33+
}[];
34+
} | null>;
35+
}

packages/docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"author": "Qwik Team",
66
"bugs": "https://github.com/QwikDev/qwik",
77
"devDependencies": {
8-
"@algolia/autocomplete-core": "1.7.4",
9-
"@algolia/client-search": "4.14.3",
8+
"@emnapi/core": "1.9.2",
109
"@emotion/react": "11.14.0",
1110
"@emotion/styled": "11.14.1",
1211
"@modular-forms/qwik": "0.29.1",
@@ -15,7 +14,6 @@
1514
"@mui/x-data-grid": "8.11.3",
1615
"@qds.dev/tools": "0.14.3",
1716
"@qds.dev/ui": "0.14.3",
18-
"@qwik-ui/headless": "0.6.7",
1917
"@qwik.dev/core": "workspace:*",
2018
"@qwik.dev/devtools": "0.2.5",
2119
"@qwik.dev/optimizer": "workspace:*",
@@ -42,8 +40,8 @@
4240
"gray-matter": "4.0.3",
4341
"leaflet": "1.9.4",
4442
"magic-string": "0.30.21",
45-
"openai": "3.3.0",
4643
"playwright": "1.57.0",
44+
"pagefind": "1.4.0",
4745
"prettier": "3.7.4",
4846
"prism-themes": "1.9.0",
4947
"prismjs": "1.30.0",
@@ -59,7 +57,7 @@
5957
"valibot": "1.2.0",
6058
"vite": "7.3.1",
6159
"vite-tsconfig-paths": "6.0.4",
62-
"wrangler": "3.114.17"
60+
"wrangler": "4.80.0"
6361
},
6462
"engines": {
6563
"node": "^18.17.0 || ^20.3.0 || >=21.0.0",
@@ -71,8 +69,10 @@
7169
"license": "MIT",
7270
"private": true,
7371
"scripts": {
74-
"build": "pnpm build.repl-sw && qwik build",
72+
"build": "pnpm build.repl-sw && qwik build && pnpm build.pagefind",
7573
"build.client": "vite build && pnpm generate.llms",
74+
"build.pagefind": "pagefind --output-subdir pagefind",
75+
"build.pagefind.dev": "pagefind --output-path public/pagefind",
7676
"build.preview": "NODE_OPTIONS=--max-old-space-size=8192 vite build --ssr src/entry.preview.tsx",
7777
"build.repl-sw": "vite --config vite.config-repl-sw build",
7878
"build.server": "NODE_OPTIONS=--max-old-space-size=8192 vite build -c adapters/cloudflare-pages/vite.config",

packages/docs/pagefind.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
site: dist
2+
glob: '**/*.html'
3+
include_characters: '$<>:'

packages/docs/public/_routes.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"/guide",
88
"/tutorial",
99
"/tutorials",
10+
"/pagefind/*",
1011
"/tutorial/hooks/use-client-effect/",
1112
"/docs/overview/",
1213
"/docs/cheat/qwik-react/",
-27.3 KB
Binary file not shown.
-145 KB
Binary file not shown.
-153 KB
Binary file not shown.
-121 KB
Binary file not shown.
-28.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)