@vite-hub/docs 0.7.0 → 0.8.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/dist/{draft-rOGhtXch.js → draft-BKQg2PLU.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{manifest-CQMreQZ5.js → manifest-E4mohC7O.js} +1 -1
- package/dist/nuxt.js +4 -4
- package/dist/object-ycNFay7F.js +6 -0
- package/dist/runtime/server/page.js +1 -1
- package/dist/{schema-CmSiwC4t.js → schema-fumnVoRZ.js} +1 -3
- package/dist/server.js +1 -1
- package/dist/{theme-DRktv19v.js → theme-Bju84I9x.js} +7 -9
- package/dist/theme.js +1 -1
- package/package.json +12 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { docsSectionForPath, findDocsPage, normalizeDocsPath } from "./navigation.js";
|
|
2
2
|
import { i as docsPageResponse, n as docsPageOf } from "./page-DWsretqk.js";
|
|
3
|
-
import { i as docsPageSchema, t as docsFrontmatter } from "./schema-
|
|
3
|
+
import { i as docsPageSchema, t as docsFrontmatter } from "./schema-fumnVoRZ.js";
|
|
4
4
|
// src/draft.ts
|
|
5
5
|
/**
|
|
6
6
|
* The draft of the page at `path`, parsed like a published page, or null when the request shows the published file.
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as docsSectionSchema, i as docsPageSchema, n as docsLayouts, o as expandDottedKeys, r as docsPageFields } from "./schema-
|
|
1
|
+
import { a as docsSectionSchema, i as docsPageSchema, n as docsLayouts, o as expandDottedKeys, r as docsPageFields } from "./schema-fumnVoRZ.js";
|
|
2
2
|
import { r as docsPagePath } from "./page-DWsretqk.js";
|
|
3
3
|
import { docsCatalog, docsManifestPages, docsMarkdownLinks, docsMcpInstallLinks, docsPageIcon, docsRailEntries, docsRailEntry, docsRailGroups, docsRailIcon, docsRawPath, docsRelatedSections, docsSectionForPath, docsSectionGroup, docsSectionIcon, docsSidebarCollapses, docsSidebarGroups, docsSidebarSections, docsTutorialNavigationCookie, findDocsPage, isDocsWorkspaceLayout, normalizeDocsBase, normalizeDocsPath } from "./navigation.js";
|
|
4
4
|
import { documents } from "@vite-hub/content/collections";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { docsManifestPages, normalizeDocsBase } from "./navigation.js";
|
|
2
|
-
import { a as docsSectionSchema, i as docsPageSchema, t as docsFrontmatter } from "./schema-
|
|
2
|
+
import { a as docsSectionSchema, i as docsPageSchema, t as docsFrontmatter } from "./schema-fumnVoRZ.js";
|
|
3
3
|
import { n as docsPageOf, r as docsPagePath } from "./page-DWsretqk.js";
|
|
4
4
|
import { t as docsErrorDiagnostics } from "./error-diagnostics-Daz9oBJS.js";
|
|
5
5
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
package/dist/nuxt.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as docsErrorDiagnostics } from "./error-diagnostics-Daz9oBJS.js";
|
|
2
2
|
import { t as dependencyKey } from "./steps-muDP1nYT.js";
|
|
3
|
-
import {
|
|
3
|
+
import { t as isRecord } from "./object-ycNFay7F.js";
|
|
4
|
+
import { a as docsAppManifestSource, c as resolveDocsSources, d as docsLinkExclusion, f as docsOutputFile, i as docsAppManifest, l as checkDocsLinks, n as createDocsContent, o as docsAppPanelSource, s as readDocsContent, t as contentName, u as docsLinkError } from "./manifest-E4mohC7O.js";
|
|
4
5
|
import { docsAppPath, docsIndexedPages, docsManifestPages, docsPageIcon, docsPageIndexed, docsRailIcon, docsRawPath, docsSectionIcon, isDocsPath, isDocsWorkspaceLayout, normalizeDocsBase, normalizeDocsPath } from "./navigation.js";
|
|
5
6
|
import { a as replacesDocsPage, o as routePaths, t as docsMount } from "./page-DWsretqk.js";
|
|
6
7
|
import { a as docsReportUrl, i as docsReportDetails, r as docsContentSource } from "./agent-copy-DTCo8cLy.js";
|
|
7
8
|
import { i as docsServerRoutes, n as docsRedirectProblems, r as docsRedirects, t as docsRedirectError } from "./redirects-BEFu4KLR.js";
|
|
8
|
-
import { i as docsThemeScope, n as docsThemeAdditions, r as docsUi, t as docsAppConfigUi } from "./theme-
|
|
9
|
+
import { i as docsThemeScope, n as docsThemeAdditions, r as docsUi, t as docsAppConfigUi } from "./theme-Bju84I9x.js";
|
|
9
10
|
import { createRequire } from "node:module";
|
|
10
11
|
import { addComponent, addComponentsDir, addImportsDir, addPlugin, addRouteMiddleware, addServerHandler, addTemplate, addTypeTemplate, createResolver, defineNuxtModule, extendPages, updateTemplates, useLogger } from "@nuxt/kit";
|
|
11
12
|
import { addRoute, createRouter, findAllRoutes, routeToRegExp } from "rou3";
|
|
@@ -156,7 +157,7 @@ function findPackageDir(file) {
|
|
|
156
157
|
function ownModule(importMetaUrl, modulePath) {
|
|
157
158
|
return resolveRuntimeModule(findPackageDir(fileURLToPath(importMetaUrl)), modulePath);
|
|
158
159
|
}
|
|
159
|
-
// ../internal/dist/vite-
|
|
160
|
+
// ../internal/dist/vite-DyksG6Kl.js
|
|
160
161
|
const projectRootDirectoryMarkers = [
|
|
161
162
|
["server", "agents"],
|
|
162
163
|
["server", "channels"],
|
|
@@ -941,7 +942,6 @@ function runSnapshotWorker(args) {
|
|
|
941
942
|
function tutorialLockfile(fixturesDir, fixture) {
|
|
942
943
|
return resolve(fixturesDir, `${fixture}.package-lock.json`);
|
|
943
944
|
}
|
|
944
|
-
const isRecord = (value) => !!value && typeof value === "object" && !Array.isArray(value);
|
|
945
945
|
const stringRecord = (value) => isRecord(value) ? Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === "string")) : {};
|
|
946
946
|
/** The fields of a `package.json` that a snapshot reads. Other values, and invalid JSON, read as empty. */
|
|
947
947
|
function readManifest(source) {
|
|
@@ -9,7 +9,7 @@ import { content } from "#docs/content";
|
|
|
9
9
|
const handler = defineHandler(async (event) => {
|
|
10
10
|
const path = `/${(getRouterParam(event, "_") ?? "").replace(/\.json$/, "")}`;
|
|
11
11
|
if (content && (content.preview.active() || content.preview.frame())) {
|
|
12
|
-
const { docsDraftResponse } = await import("../../draft-
|
|
12
|
+
const { docsDraftResponse } = await import("../../draft-BKQg2PLU.js");
|
|
13
13
|
const draft = await docsDraftResponse(content, manifest, path, parseDocsDocument);
|
|
14
14
|
if (draft) {
|
|
15
15
|
event.res.headers.set("cache-control", "private, no-store");
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as isRecord } from "./object-ycNFay7F.js";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
// src/schema.ts
|
|
3
4
|
/**
|
|
@@ -183,7 +184,4 @@ function docsFrontmatter(input) {
|
|
|
183
184
|
if (input.navigation === false) expanded.navigation = false;
|
|
184
185
|
return expanded;
|
|
185
186
|
}
|
|
186
|
-
function isRecord(value) {
|
|
187
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
188
|
-
}
|
|
189
187
|
export { docsSectionSchema as a, docsPageSchema as i, docsLayouts as n, expandDottedKeys as o, docsPageFields as r, docsFrontmatter as t };
|
package/dist/server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as checkDocsLinks, n as createDocsContent, r as createDocsManifest } from "./manifest-
|
|
1
|
+
import { l as checkDocsLinks, n as createDocsContent, r as createDocsManifest } from "./manifest-E4mohC7O.js";
|
|
2
2
|
import { a as docsSearchSections, i as docsMarkdown, t as createDocsParser } from "./markdown-BzZkYb24.js";
|
|
3
3
|
import { t as toRawMarkdown } from "./raw-Dh38kL9g.js";
|
|
4
4
|
import { i as docsPageResponse } from "./page-DWsretqk.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as isRecord$1 } from "./object-ycNFay7F.js";
|
|
1
2
|
import { vitehubTheme } from "@vite-hub/ui/theme";
|
|
2
3
|
import { defu } from "defu";
|
|
3
4
|
// runtime/app/utils/docs-theme.ts
|
|
@@ -12,20 +13,20 @@ function docsThemeScope(theme) {
|
|
|
12
13
|
props: {}
|
|
13
14
|
};
|
|
14
15
|
for (const [name, entry] of Object.entries(theme)) {
|
|
15
|
-
if (name === "colors" || name === "icons" || !isRecord
|
|
16
|
+
if (name === "colors" || name === "icons" || !isRecord(entry)) continue;
|
|
16
17
|
if (name === "prose") {
|
|
17
18
|
const prose = docsThemeScope(entry);
|
|
18
19
|
scope.ui.prose = prose.ui;
|
|
19
20
|
if (Object.keys(prose.props).length) scope.props.prose = prose.props;
|
|
20
21
|
continue;
|
|
21
22
|
}
|
|
22
|
-
const slots = isRecord
|
|
23
|
+
const slots = isRecord(entry.slots) ? entry.slots : typeof entry.base === "string" ? { base: entry.base } : null;
|
|
23
24
|
if (slots) scope.ui[name] = slots;
|
|
24
|
-
if (isRecord
|
|
25
|
+
if (isRecord(entry.defaultVariants)) scope.props[name] = entry.defaultVariants;
|
|
25
26
|
}
|
|
26
27
|
return scope;
|
|
27
28
|
}
|
|
28
|
-
function isRecord
|
|
29
|
+
function isRecord(value) {
|
|
29
30
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
30
31
|
}
|
|
31
32
|
// src/theme.ts
|
|
@@ -226,10 +227,7 @@ function docsUi(siteName) {
|
|
|
226
227
|
}
|
|
227
228
|
/** The part of the theme that only adds keys, so an app with its own `app.vue` gets it in its app config. */
|
|
228
229
|
function docsThemeAdditions(theme) {
|
|
229
|
-
const prose = isRecord(theme.prose) ? theme.prose : {};
|
|
230
|
-
return isRecord(prose.codeIcon) ? { prose: { codeIcon: prose.codeIcon } } : {};
|
|
231
|
-
}
|
|
232
|
-
function isRecord(value) {
|
|
233
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
230
|
+
const prose = isRecord$1(theme.prose) ? theme.prose : {};
|
|
231
|
+
return isRecord$1(prose.codeIcon) ? { prose: { codeIcon: prose.codeIcon } } : {};
|
|
234
232
|
}
|
|
235
233
|
export { docsThemeScope as i, docsThemeAdditions as n, docsUi as r, docsAppConfigUi as t };
|
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-Bju84I9x.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-hub/docs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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.8.0",
|
|
77
|
+
"@vite-hub/kit": "0.8.0",
|
|
78
|
+
"@vite-hub/rate-limit": "0.8.0",
|
|
79
|
+
"@vite-hub/source": "0.8.0",
|
|
80
|
+
"@vite-hub/ui": "0.8.0",
|
|
81
|
+
"@vite-hub/web-container": "0.8.0",
|
|
82
|
+
"@vite-hub/workspace": "0.8.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.8.0",
|
|
107
|
+
"@vite-hub/gateways": "0.8.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.8.0",
|
|
132
|
+
"@vite-hub/gateways": "0.8.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",
|