@vite-hub/docs 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{assistant-shared-JcfjK-qg.js → assistant-shared-BmCHVfEd.js} +0 -1
- package/dist/assistant-worker.js +1 -1
- package/dist/assistant.js +1 -1
- package/dist/{content-Chgcvz1q.js → content-Df5eeqTg.js} +1 -3
- package/dist/{draft-BKQg2PLU.js → draft-CYScbH80.js} +0 -1
- package/dist/{manifest-E4mohC7O.js → manifest-BgBIScEV.js} +0 -16
- package/dist/{markdown-BzZkYb24.js → markdown-DgQg53dB.js} +0 -28
- package/dist/navigation.js +0 -2
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +4 -43
- package/dist/primitive-rail.js +0 -4
- package/dist/runtime/app/assistant/DocsAssistant.vue +0 -3
- package/dist/runtime/app/assistant/DocsAssistantOff.vue +0 -2
- package/dist/runtime/app/assistant/DocsAssistantPanel.vue +0 -12
- package/dist/runtime/app/components/DocsAppShell.vue +0 -7
- package/dist/runtime/app/components/DocsArticle.vue +0 -8
- package/dist/runtime/app/components/DocsAsideFooter.vue +0 -5
- package/dist/runtime/app/components/DocsAsideLeftBody.vue +0 -18
- package/dist/runtime/app/components/DocsBrandMark.vue +0 -6
- package/dist/runtime/app/components/DocsCodePanel.vue +0 -19
- package/dist/runtime/app/components/DocsMarkdown.vue +0 -9
- package/dist/runtime/app/components/DocsPage.vue +0 -10
- package/dist/runtime/app/components/DocsPageCredits.vue +0 -1
- package/dist/runtime/app/components/DocsSidebars.vue +0 -8
- package/dist/runtime/app/components/OgImage/DocsPage.takumi.vue +0 -2
- package/dist/runtime/app/components/content/AgentOnly.vue +0 -1
- package/dist/runtime/app/components/content/CodeTree.vue +0 -6
- package/dist/runtime/app/components/content/ComarkHtml.vue +0 -9
- package/dist/runtime/app/components/content/Correct.vue +0 -1
- package/dist/runtime/app/components/content/Example.vue +0 -11
- package/dist/runtime/app/components/content/Examples.vue +0 -4
- package/dist/runtime/app/components/content/Incorrect.vue +0 -1
- package/dist/runtime/app/components/content/McpClient.vue +0 -5
- package/dist/runtime/app/components/content/McpInstall.vue +0 -4
- package/dist/runtime/app/components/content/PageList.vue +0 -11
- package/dist/runtime/app/components/content/ProductFeatureItem.vue +0 -3
- package/dist/runtime/app/components/content/ProductFeatures.vue +0 -3
- package/dist/runtime/app/composables/docs-assistant-problem.ts +0 -8
- package/dist/runtime/app/composables/docs-theme.ts +0 -6
- package/dist/runtime/app/composables/headerActions.ts +0 -1
- package/dist/runtime/app/composables/icons.ts +0 -1
- package/dist/runtime/app/composables/seo.ts +0 -11
- package/dist/runtime/app/composables/tutorial.ts +0 -8
- package/dist/runtime/app/composables/useDocsAssistant.ts +0 -2
- package/dist/runtime/app/error.vue +0 -4
- package/dist/runtime/app/layouts/docs.vue +0 -6
- package/dist/runtime/app/middleware/docs-layout.ts +0 -9
- package/dist/runtime/app/plugins/comark-css.ts +0 -5
- package/dist/runtime/app/plugins/icon-stroke.ts +0 -3
- package/dist/runtime/app/plugins/theme-color.ts +0 -5
- package/dist/runtime/app/utils/docs-theme.ts +0 -9
- package/dist/runtime/app/utils/file-tree.ts +0 -4
- package/dist/runtime/server/llms.js +1 -1
- package/dist/runtime/server/markdown.js +2 -7
- package/dist/runtime/server/mcp.js +1 -1
- package/dist/runtime/server/page.js +2 -2
- package/dist/runtime/server/raw.js +1 -1
- package/dist/runtime/server/search.js +2 -3
- package/dist/runtime/server/sitemap.js +1 -1
- package/dist/runtime/theme/design.css +1 -1
- package/dist/runtime/theme/vitehub.css +386 -0
- package/dist/server.js +2 -2
- package/dist/snapshot-worker.mjs +0 -5
- package/dist/{theme-Bju84I9x.js → theme-DowEsyAx.js} +289 -6
- package/dist/{theme-CgJRnVdT.d.ts → theme-aPbJMLsc.d.ts} +0 -6
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +1 -1
- package/package.json +12 -12
package/dist/snapshot-worker.mjs
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
// Runs in its own Node process, so the snapshot (hundreds of MiB in memory) does not share the heap of the docs build.
|
|
2
|
-
// node snapshot-worker.mjs <app dir> <out dir> <file prefix> <lockfile>
|
|
3
|
-
// Prints the written file names as JSON, with the SHA-256 of the joined parts and the sizes.
|
|
4
1
|
import { createHash } from "node:crypto"
|
|
5
2
|
import { mkdir, readFile, writeFile } from "node:fs/promises"
|
|
6
3
|
import { dirname, resolve } from "node:path"
|
|
7
4
|
import { createNodeModulesSnapshot, packSnapshot } from "@vite-hub/web-container/snapshot"
|
|
8
5
|
|
|
9
6
|
const [dir, outDir, prefix, lockPath] = process.argv.slice(2)
|
|
10
|
-
// The lockfile pins every version, so two builds of one commit give the same bytes.
|
|
11
7
|
const lockfile = await readFile(lockPath, "utf8").catch((error) => {
|
|
12
8
|
if (error.code === "ENOENT") return undefined
|
|
13
9
|
throw error
|
|
@@ -18,7 +14,6 @@ try {
|
|
|
18
14
|
}
|
|
19
15
|
catch (error) {
|
|
20
16
|
if (lockfile === undefined || error?.code !== "WEB_CONTAINER_SNAPSHOT_LOCKFILE_MISMATCH") throw error
|
|
21
|
-
// The dependencies changed since the lockfile was written. Update it, keeping the versions that still fit.
|
|
22
17
|
console.warn(`[docs] ${lockPath} does not match the dependencies (${error.message.split("\n")[0]}). Updating it; commit the change.`)
|
|
23
18
|
result = await createNodeModulesSnapshot({ dir, lockfile, frozenLockfile: false })
|
|
24
19
|
}
|
|
@@ -1,12 +1,295 @@
|
|
|
1
1
|
import { t as isRecord$1 } from "./object-ycNFay7F.js";
|
|
2
|
-
import { vitehubTheme } from "@vite-hub/ui/theme";
|
|
3
2
|
import { defu } from "defu";
|
|
4
|
-
//
|
|
3
|
+
// src/vitehub-theme.ts
|
|
4
|
+
const dialogSlots = {
|
|
5
|
+
content: "divide-y-0",
|
|
6
|
+
header: "min-h-0 shrink-0 px-4 pt-4 pb-2 last:pb-4 sm:px-6 sm:pt-6 sm:pb-3 sm:last:pb-6",
|
|
7
|
+
body: "px-4 py-1 last:pb-4 sm:px-6 sm:py-1 sm:last:pb-6",
|
|
8
|
+
footer: "justify-end gap-2 px-4 pt-3 pb-4 sm:px-6 sm:pt-5 sm:pb-6",
|
|
9
|
+
close: "static ms-auto -me-1 -mt-1 shrink-0 self-start"
|
|
10
|
+
};
|
|
5
11
|
/**
|
|
6
|
-
* The
|
|
7
|
-
*
|
|
8
|
-
*
|
|
12
|
+
* The ViteHub design system as Nuxt UI app config: Lucide icons, black and white actions, Geist radii, underline tabs,
|
|
13
|
+
* and the layered floating surfaces. It pairs with `runtime/theme/vitehub.css`, which holds the tokens. The docs pass it
|
|
14
|
+
* as `appConfig.ui` and merge their own slots over it with `defu`.
|
|
9
15
|
*/
|
|
16
|
+
const vitehubTheme = {
|
|
17
|
+
colors: {
|
|
18
|
+
error: "red",
|
|
19
|
+
info: "sky",
|
|
20
|
+
neutral: "neutral",
|
|
21
|
+
primary: "neutral",
|
|
22
|
+
success: "emerald",
|
|
23
|
+
warning: "amber"
|
|
24
|
+
},
|
|
25
|
+
icons: {
|
|
26
|
+
arrowDown: "i-lucide-arrow-down",
|
|
27
|
+
arrowLeft: "i-lucide-arrow-left",
|
|
28
|
+
arrowRight: "i-lucide-arrow-right",
|
|
29
|
+
arrowUp: "i-lucide-arrow-up",
|
|
30
|
+
caution: "i-lucide-triangle-alert",
|
|
31
|
+
check: "i-lucide-check",
|
|
32
|
+
chevronDoubleLeft: "i-lucide-chevrons-left",
|
|
33
|
+
chevronDoubleRight: "i-lucide-chevrons-right",
|
|
34
|
+
chevronDown: "i-lucide-chevron-down",
|
|
35
|
+
chevronLeft: "i-lucide-chevron-left",
|
|
36
|
+
chevronRight: "i-lucide-chevron-right",
|
|
37
|
+
chevronUp: "i-lucide-chevron-up",
|
|
38
|
+
close: "i-lucide-x",
|
|
39
|
+
copy: "i-lucide-copy",
|
|
40
|
+
copyCheck: "i-lucide-check",
|
|
41
|
+
dark: "i-lucide-moon",
|
|
42
|
+
drag: "i-lucide-grip-vertical",
|
|
43
|
+
ellipsis: "i-lucide-ellipsis",
|
|
44
|
+
error: "i-lucide-circle-alert",
|
|
45
|
+
external: "i-lucide-arrow-up-right",
|
|
46
|
+
eye: "i-lucide-eye",
|
|
47
|
+
eyeOff: "i-lucide-eye-off",
|
|
48
|
+
file: "i-lucide-file",
|
|
49
|
+
folder: "i-lucide-folder",
|
|
50
|
+
folderOpen: "i-lucide-folder-open",
|
|
51
|
+
hash: "i-lucide-hash",
|
|
52
|
+
info: "i-lucide-info",
|
|
53
|
+
light: "i-lucide-sun",
|
|
54
|
+
loading: "i-lucide-loader-circle",
|
|
55
|
+
menu: "i-lucide-menu",
|
|
56
|
+
minus: "i-lucide-minus",
|
|
57
|
+
panelClose: "i-lucide-panel-left-close",
|
|
58
|
+
panelOpen: "i-lucide-panel-left-open",
|
|
59
|
+
plus: "i-lucide-plus",
|
|
60
|
+
reload: "i-lucide-refresh-cw",
|
|
61
|
+
search: "i-lucide-search",
|
|
62
|
+
stop: "i-lucide-square",
|
|
63
|
+
star: "i-lucide-star",
|
|
64
|
+
success: "i-lucide-circle-check",
|
|
65
|
+
system: "i-lucide-monitor",
|
|
66
|
+
tip: "i-lucide-lightbulb",
|
|
67
|
+
upload: "i-lucide-upload",
|
|
68
|
+
warning: "i-lucide-triangle-alert"
|
|
69
|
+
},
|
|
70
|
+
alert: {
|
|
71
|
+
defaultVariants: {
|
|
72
|
+
color: "neutral",
|
|
73
|
+
variant: "subtle"
|
|
74
|
+
},
|
|
75
|
+
slots: {
|
|
76
|
+
root: "rounded-lg p-3 gap-2",
|
|
77
|
+
title: "text-[13px] font-medium",
|
|
78
|
+
description: "text-xs leading-5 opacity-100",
|
|
79
|
+
icon: "size-4 mt-0.5"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
badge: {
|
|
83
|
+
defaultVariants: {
|
|
84
|
+
color: "neutral",
|
|
85
|
+
variant: "subtle"
|
|
86
|
+
},
|
|
87
|
+
slots: { base: "font-medium" },
|
|
88
|
+
variants: { size: {
|
|
89
|
+
xs: { base: "px-1.5 py-0 text-xs/4" },
|
|
90
|
+
sm: { base: "px-1.5 py-0.5 text-xs/4" }
|
|
91
|
+
} }
|
|
92
|
+
},
|
|
93
|
+
kbd: { variants: { size: {
|
|
94
|
+
sm: "text-xs",
|
|
95
|
+
md: "text-xs"
|
|
96
|
+
} } },
|
|
97
|
+
button: {
|
|
98
|
+
defaultVariants: {
|
|
99
|
+
color: "neutral",
|
|
100
|
+
size: "sm"
|
|
101
|
+
},
|
|
102
|
+
slots: {
|
|
103
|
+
base: "rounded-md font-medium disabled:opacity-50 aria-disabled:opacity-50 transition-[color,background-color,box-shadow] duration-150 ease-out motion-reduce:transition-none",
|
|
104
|
+
leadingIcon: "size-4 opacity-80",
|
|
105
|
+
trailingIcon: "size-3.5 opacity-75"
|
|
106
|
+
},
|
|
107
|
+
compoundVariants: [{
|
|
108
|
+
variant: "ghost",
|
|
109
|
+
class: "aria-pressed:bg-elevated aria-pressed:text-highlighted"
|
|
110
|
+
}]
|
|
111
|
+
},
|
|
112
|
+
card: { slots: {
|
|
113
|
+
root: "rounded-lg",
|
|
114
|
+
header: "px-4 py-3 sm:px-4",
|
|
115
|
+
body: "p-4 sm:p-4",
|
|
116
|
+
footer: "px-4 py-3 sm:px-4"
|
|
117
|
+
} },
|
|
118
|
+
dropdownMenu: { slots: {
|
|
119
|
+
content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none",
|
|
120
|
+
label: "text-xs font-medium text-muted",
|
|
121
|
+
itemDescription: "text-clip whitespace-normal"
|
|
122
|
+
} },
|
|
123
|
+
contextMenu: { slots: {
|
|
124
|
+
content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none",
|
|
125
|
+
label: "text-xs font-medium text-muted",
|
|
126
|
+
itemDescription: "text-clip whitespace-normal"
|
|
127
|
+
} },
|
|
128
|
+
editorSuggestionMenu: { slots: { content: "data-[state=open]:animate-none data-[state=closed]:animate-none" } },
|
|
129
|
+
empty: { slots: {
|
|
130
|
+
root: "gap-3 p-5",
|
|
131
|
+
title: "text-sm font-medium",
|
|
132
|
+
description: "text-xs leading-5",
|
|
133
|
+
actions: "mt-1"
|
|
134
|
+
} },
|
|
135
|
+
input: {
|
|
136
|
+
defaultVariants: { size: "sm" },
|
|
137
|
+
compoundVariants: [{
|
|
138
|
+
variant: ["outline", "subtle"],
|
|
139
|
+
class: "focus-visible:ring-2"
|
|
140
|
+
}, {
|
|
141
|
+
fixed: false,
|
|
142
|
+
size: "sm",
|
|
143
|
+
class: "md:text-sm/4"
|
|
144
|
+
}],
|
|
145
|
+
slots: {
|
|
146
|
+
base: "pointer-coarse:text-base",
|
|
147
|
+
leadingIcon: "size-4 opacity-80",
|
|
148
|
+
trailingIcon: "size-3.5 opacity-75"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
inputMenu: {
|
|
152
|
+
defaultVariants: { size: "sm" },
|
|
153
|
+
compoundVariants: [{
|
|
154
|
+
variant: ["outline", "subtle"],
|
|
155
|
+
class: "focus-visible:ring-2"
|
|
156
|
+
}, {
|
|
157
|
+
fixed: false,
|
|
158
|
+
size: "sm",
|
|
159
|
+
class: "md:text-sm/4"
|
|
160
|
+
}],
|
|
161
|
+
slots: {
|
|
162
|
+
base: "pointer-coarse:text-base",
|
|
163
|
+
content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
inputNumber: {
|
|
167
|
+
defaultVariants: { size: "sm" },
|
|
168
|
+
compoundVariants: [{
|
|
169
|
+
variant: ["outline", "subtle"],
|
|
170
|
+
class: "focus-visible:ring-2"
|
|
171
|
+
}, {
|
|
172
|
+
fixed: false,
|
|
173
|
+
size: "sm",
|
|
174
|
+
class: "md:text-sm/4"
|
|
175
|
+
}],
|
|
176
|
+
slots: { base: "pointer-coarse:text-base" }
|
|
177
|
+
},
|
|
178
|
+
inputTags: {
|
|
179
|
+
defaultVariants: { size: "sm" },
|
|
180
|
+
compoundVariants: [{
|
|
181
|
+
variant: ["outline", "subtle"],
|
|
182
|
+
class: { root: "has-focus-visible:ring-2" }
|
|
183
|
+
}, {
|
|
184
|
+
fixed: false,
|
|
185
|
+
size: "sm",
|
|
186
|
+
class: { root: "md:text-sm/4" }
|
|
187
|
+
}],
|
|
188
|
+
slots: { root: "pointer-coarse:text-base" }
|
|
189
|
+
},
|
|
190
|
+
modal: {
|
|
191
|
+
slots: { ...dialogSlots },
|
|
192
|
+
variants: {
|
|
193
|
+
overlay: { true: { overlay: "bg-black/40 dark:bg-black/60" } },
|
|
194
|
+
transition: { true: {
|
|
195
|
+
overlay: "data-[state=open]:animate-none data-[state=closed]:animate-none",
|
|
196
|
+
content: "data-[state=open]:animate-none data-[state=closed]:animate-none"
|
|
197
|
+
} },
|
|
198
|
+
fullscreen: { false: { content: "max-w-md rounded-xl ring-0 shadow-(--vh-shadow-dialog)" } }
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
pageCard: { slots: {
|
|
202
|
+
root: "rounded-lg",
|
|
203
|
+
container: "gap-0 p-4 sm:p-4",
|
|
204
|
+
leading: "mb-3 size-8 justify-center rounded-md bg-elevated/60",
|
|
205
|
+
leadingIcon: "size-4 text-muted opacity-80",
|
|
206
|
+
title: "text-sm font-medium",
|
|
207
|
+
description: "mt-1 text-xs/5 text-muted"
|
|
208
|
+
} },
|
|
209
|
+
popover: { slots: { content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none" } },
|
|
210
|
+
select: {
|
|
211
|
+
defaultVariants: { size: "sm" },
|
|
212
|
+
compoundVariants: [{
|
|
213
|
+
variant: ["outline", "subtle"],
|
|
214
|
+
class: "focus-visible:ring-2"
|
|
215
|
+
}, {
|
|
216
|
+
fixed: false,
|
|
217
|
+
size: "sm",
|
|
218
|
+
class: "md:text-sm/4"
|
|
219
|
+
}],
|
|
220
|
+
slots: {
|
|
221
|
+
base: "pointer-coarse:text-base",
|
|
222
|
+
leadingIcon: "size-4 opacity-80",
|
|
223
|
+
trailingIcon: "size-3.5 opacity-75",
|
|
224
|
+
itemLeadingIcon: "size-4 opacity-80",
|
|
225
|
+
itemTrailingIcon: "size-3.5 opacity-75",
|
|
226
|
+
content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md"
|
|
227
|
+
},
|
|
228
|
+
variants: { position: { popper: { content: "data-[state=open]:animate-none data-[state=closed]:animate-none" } } }
|
|
229
|
+
},
|
|
230
|
+
selectMenu: {
|
|
231
|
+
defaultVariants: { size: "sm" },
|
|
232
|
+
compoundVariants: [{
|
|
233
|
+
variant: ["outline", "subtle"],
|
|
234
|
+
class: "focus-visible:ring-2"
|
|
235
|
+
}, {
|
|
236
|
+
fixed: false,
|
|
237
|
+
size: "sm",
|
|
238
|
+
class: "md:text-sm/4"
|
|
239
|
+
}],
|
|
240
|
+
slots: {
|
|
241
|
+
base: "pointer-coarse:text-base",
|
|
242
|
+
content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
slideover: {
|
|
246
|
+
slots: { ...dialogSlots },
|
|
247
|
+
variants: { transition: { true: { overlay: "data-[state=open]:animate-none data-[state=closed]:animate-none" } } },
|
|
248
|
+
compoundVariants: [{
|
|
249
|
+
transition: true,
|
|
250
|
+
class: { content: "data-[state=open]:animate-none data-[state=closed]:animate-none" }
|
|
251
|
+
}]
|
|
252
|
+
},
|
|
253
|
+
switch: { slots: { thumb: "transition-none data-[state=unchecked]:scale-75" } },
|
|
254
|
+
table: { slots: {
|
|
255
|
+
th: "h-9 px-2.5 py-2 text-xs font-medium text-muted",
|
|
256
|
+
td: "h-9 px-2.5 py-2 text-[13px] tabular-nums text-toned"
|
|
257
|
+
} },
|
|
258
|
+
tabs: {
|
|
259
|
+
defaultVariants: {
|
|
260
|
+
color: "neutral",
|
|
261
|
+
size: "sm",
|
|
262
|
+
variant: "link"
|
|
263
|
+
},
|
|
264
|
+
slots: {
|
|
265
|
+
list: "gap-1",
|
|
266
|
+
trigger: "data-[state=inactive]:text-muted data-[state=active]:text-highlighted hover:data-[state=inactive]:not-disabled:text-highlighted",
|
|
267
|
+
indicator: "bg-(--ui-text-highlighted) transition-none"
|
|
268
|
+
},
|
|
269
|
+
variants: { size: {
|
|
270
|
+
sm: {
|
|
271
|
+
trigger: "h-8 px-2.5 py-0 text-sm gap-1.5",
|
|
272
|
+
leadingIcon: "size-4"
|
|
273
|
+
},
|
|
274
|
+
md: {
|
|
275
|
+
trigger: "h-9 px-3 py-0 text-sm gap-1.5",
|
|
276
|
+
leadingIcon: "size-4"
|
|
277
|
+
}
|
|
278
|
+
} }
|
|
279
|
+
},
|
|
280
|
+
textarea: {
|
|
281
|
+
defaultVariants: { size: "sm" },
|
|
282
|
+
compoundVariants: [{
|
|
283
|
+
variant: ["outline", "subtle"],
|
|
284
|
+
class: "focus-visible:ring-2"
|
|
285
|
+
}],
|
|
286
|
+
slots: { base: "pointer-coarse:text-base" }
|
|
287
|
+
},
|
|
288
|
+
toast: { slots: { root: "rounded-xl ring-0 shadow-(--vh-shadow-floating)" } },
|
|
289
|
+
toaster: { slots: { base: "animate-none! transition-none" } },
|
|
290
|
+
tooltip: { slots: { content: "rounded-md ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=delayed-open]:animate-none data-[state=instant-open]:animate-none data-[state=closed]:animate-none" } }
|
|
291
|
+
};
|
|
292
|
+
// runtime/app/utils/docs-theme.ts
|
|
10
293
|
function docsThemeScope(theme) {
|
|
11
294
|
const scope = {
|
|
12
295
|
ui: {},
|
|
@@ -230,4 +513,4 @@ function docsThemeAdditions(theme) {
|
|
|
230
513
|
const prose = isRecord$1(theme.prose) ? theme.prose : {};
|
|
231
514
|
return isRecord$1(prose.codeIcon) ? { prose: { codeIcon: prose.codeIcon } } : {};
|
|
232
515
|
}
|
|
233
|
-
export { docsThemeScope as i, docsThemeAdditions as n, docsUi as r, docsAppConfigUi as t };
|
|
516
|
+
export { vitehubTheme as a, docsThemeScope as i, docsThemeAdditions as n, docsUi as r, docsAppConfigUi as t };
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
type DocsThemeUi$1 = Record<string, unknown>;
|
|
2
|
-
/** What Nuxt UI's `<UTheme>` takes: slot classes per component in `ui`, and default props per component in `props`. */
|
|
3
2
|
interface DocsThemeScope {
|
|
4
3
|
ui: Record<string, unknown>;
|
|
5
4
|
props: Record<string, unknown>;
|
|
6
5
|
}
|
|
7
|
-
/**
|
|
8
|
-
* The theme as `<UTheme>` props, for the docs pages of an app with its own `app.vue`. The app's `app.config.ts` then
|
|
9
|
-
* stays as written on the app's own pages. `<UTheme>` sets slot classes and default props only, so the docs pages keep
|
|
10
|
-
* the app's colors, icons, and variant classes, such as the color of a callout.
|
|
11
|
-
*/
|
|
12
6
|
declare function docsThemeScope(theme: DocsThemeUi$1): DocsThemeScope;
|
|
13
7
|
/** Nuxt UI app config of the docs design: color aliases, icons, and slot classes per component. */
|
|
14
8
|
type DocsThemeUi = Record<string, unknown>;
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DocsThemeScope, i as docsUi, n as docsAppConfigUi, o as docsThemeScope, r as docsThemeAdditions, t as DocsThemeUi } from "./theme-
|
|
1
|
+
import { a as DocsThemeScope, i as docsUi, n as docsAppConfigUi, o as docsThemeScope, r as docsThemeAdditions, t as DocsThemeUi } from "./theme-aPbJMLsc.js";
|
|
2
2
|
export { type DocsThemeScope, DocsThemeUi, docsAppConfigUi, docsThemeAdditions, docsThemeScope, docsUi };
|
package/dist/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as docsAppConfigUi, n as docsThemeAdditions, i as docsThemeScope, r as docsUi } from "./theme-
|
|
1
|
+
export { t as docsAppConfigUi, n as docsThemeAdditions, i as docsThemeScope, r as docsUi } from "./theme-DowEsyAx.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-hub/docs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A documentation site on ViteHub primitives: typed Markdown pages, navigation, tutorials, search, agent resources, Console editing, and a docs assistant.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"content",
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
"@takumi-rs/core": "2.22.1",
|
|
74
74
|
"@ui-sdk/core": "0.1.0-beta.20",
|
|
75
75
|
"@ui-sdk/vue": "0.1.0-beta.20",
|
|
76
|
-
"@vite-hub/content": "0.
|
|
77
|
-
"@vite-hub/kit": "0.
|
|
78
|
-
"@vite-hub/rate-limit": "0.
|
|
79
|
-
"@vite-hub/source": "0.
|
|
80
|
-
"@vite-hub/ui": "0.
|
|
81
|
-
"@vite-hub/web-container": "0.
|
|
82
|
-
"@vite-hub/workspace": "0.
|
|
76
|
+
"@vite-hub/content": "0.9.0",
|
|
77
|
+
"@vite-hub/kit": "0.9.0",
|
|
78
|
+
"@vite-hub/rate-limit": "0.9.0",
|
|
79
|
+
"@vite-hub/source": "0.9.0",
|
|
80
|
+
"@vite-hub/ui": "0.9.0",
|
|
81
|
+
"@vite-hub/web-container": "0.9.0",
|
|
82
|
+
"@vite-hub/workspace": "0.9.0",
|
|
83
83
|
"@vueuse/core": "^15.0.0",
|
|
84
84
|
"comark-content": "0.5.1",
|
|
85
85
|
"comark-zoom": "^0.14.3",
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
"@nuxt/ui": "^4.13.0",
|
|
104
104
|
"@types/node": "^24.19.2",
|
|
105
105
|
"@vue/test-utils": "2.6.0",
|
|
106
|
-
"@vite-hub/agent": "0.
|
|
107
|
-
"@vite-hub/gateways": "0.
|
|
106
|
+
"@vite-hub/agent": "0.9.0",
|
|
107
|
+
"@vite-hub/gateways": "0.9.0",
|
|
108
108
|
"@vite-hub/icons": "0.1.0",
|
|
109
109
|
"@vite-hub/internal": "0.0.1",
|
|
110
110
|
"comark": "^0.9.2",
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
"@comark/html": "^0.8.1 || ^0.9.0",
|
|
129
129
|
"@comark/vue": "^0.8.1 || ^0.9.0",
|
|
130
130
|
"@nuxt/ui": "^4.11.0",
|
|
131
|
-
"@vite-hub/agent": "0.
|
|
132
|
-
"@vite-hub/gateways": "0.
|
|
131
|
+
"@vite-hub/agent": "0.9.0",
|
|
132
|
+
"@vite-hub/gateways": "0.9.0",
|
|
133
133
|
"comark": "^0.8.1 || ^0.9.0",
|
|
134
134
|
"comark-ui": "^0.14.3",
|
|
135
135
|
"nuxt": "^4.7.0 || >=5.0.0-0",
|