@clarify-labs/cli 0.11.9 → 0.11.11
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/output/cli.cjs +2 -2
- package/output/cli.js +2 -2
- package/output/core/config/config-schema.d.ts +4 -10
- package/output/{engine-Bupsozys.cjs → engine-BzxBO-E9.cjs} +116 -14
- package/output/engine-BzxBO-E9.cjs.map +1 -0
- package/output/{engine-CdH3JL_y.js → engine-DJ8vzo23.js} +116 -14
- package/output/engine-DJ8vzo23.js.map +1 -0
- package/output/index.cjs +1 -1
- package/output/index.js +1 -1
- package/output/parsers/routes/git-metadata.d.ts +2 -0
- package/output/types.d.ts +29 -8
- package/package.json +3 -3
- package/output/engine-Bupsozys.cjs.map +0 -1
- package/output/engine-CdH3JL_y.js.map +0 -1
package/output/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_engine = require("./engine-
|
|
2
|
+
const require_engine = require("./engine-BzxBO-E9.cjs");
|
|
3
3
|
exports.ClarifyEngine = require_engine.ClarifyEngine;
|
|
4
4
|
exports.createClarifyEngine = require_engine.createClarifyEngine;
|
|
5
5
|
exports.createViteAdapter = require_engine.createViteAdapter;
|
package/output/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { d as defineConfig, n as createClarifyEngine, t as ClarifyEngine, u as createViteAdapter } from "./engine-
|
|
1
|
+
import { d as defineConfig, n as createClarifyEngine, t as ClarifyEngine, u as createViteAdapter } from "./engine-DJ8vzo23.js";
|
|
2
2
|
export { ClarifyEngine, createClarifyEngine, createViteAdapter, defineConfig };
|
package/output/types.d.ts
CHANGED
|
@@ -24,25 +24,37 @@ export type ClarifyLocalesConfig = {
|
|
|
24
24
|
default?: string;
|
|
25
25
|
/** Missing translation behavior. Fallback uses default locale content. */
|
|
26
26
|
missing?: 'fallback' | '404' | 'hide';
|
|
27
|
-
locales
|
|
27
|
+
/** Supported locales for localized content and routes. Omit to only set the built-in UI language. */
|
|
28
|
+
locales?: ClarifyLocaleConfig[];
|
|
28
29
|
};
|
|
29
30
|
export type ResolvedClarifyLocalesConfig = {
|
|
30
31
|
default: string;
|
|
31
32
|
missing: 'fallback' | '404' | 'hide';
|
|
32
33
|
locales: ClarifyLocaleConfig[];
|
|
33
34
|
};
|
|
34
|
-
export type
|
|
35
|
+
export type ClarifyLinkConfig = {
|
|
35
36
|
label: ClarifyLocalizedText;
|
|
36
37
|
href: string;
|
|
37
|
-
external?: boolean;
|
|
38
38
|
};
|
|
39
|
+
export type ClarifyNavbarMenuItem = {
|
|
40
|
+
label: ClarifyLocalizedText;
|
|
41
|
+
description?: ClarifyLocalizedText;
|
|
42
|
+
icon?: string;
|
|
43
|
+
} & ({
|
|
44
|
+
href: string;
|
|
45
|
+
} | {
|
|
46
|
+
page: string;
|
|
47
|
+
} | {
|
|
48
|
+
items: ClarifyNavbarMenuItem[];
|
|
49
|
+
});
|
|
50
|
+
export type ClarifyNavbarMenu = ClarifyNavbarMenuItem;
|
|
39
51
|
export type ClarifyBannerConfig = {
|
|
40
52
|
content: ClarifyLocalizedText;
|
|
41
53
|
dismissible?: boolean;
|
|
42
|
-
link?:
|
|
54
|
+
link?: ClarifyLinkConfig;
|
|
43
55
|
};
|
|
44
56
|
export type ClarifyFooterConfig = {
|
|
45
|
-
links?:
|
|
57
|
+
links?: ClarifyLinkConfig[];
|
|
46
58
|
socials?: Record<string, string>;
|
|
47
59
|
copyright?: ClarifyLocalizedText;
|
|
48
60
|
};
|
|
@@ -148,6 +160,8 @@ export type ClarifyPagesGroup = {
|
|
|
148
160
|
group: ClarifyLocalizedText;
|
|
149
161
|
/** Icon name from lucide-react, e.g. "BookOpen". */
|
|
150
162
|
icon?: string;
|
|
163
|
+
/** Page layout inherited by pages in this group. */
|
|
164
|
+
layout?: 'documentation' | 'blog';
|
|
151
165
|
/** Pages or nested groups within this section. */
|
|
152
166
|
pages: ClarifyPagesItem[];
|
|
153
167
|
};
|
|
@@ -179,8 +193,8 @@ export type ClarifyTabItem = {
|
|
|
179
193
|
};
|
|
180
194
|
export type ClarifyTabsConfig = ClarifyTabItem[];
|
|
181
195
|
export type ClarifyNavigationConfig = {
|
|
182
|
-
/**
|
|
183
|
-
|
|
196
|
+
/** Menus and links displayed in the top navigation. */
|
|
197
|
+
menus?: ClarifyNavbarMenu[];
|
|
184
198
|
/** Top-level documentation tabs. Each tab owns its sidebar pages. */
|
|
185
199
|
tabs?: ClarifyTabsConfig;
|
|
186
200
|
};
|
|
@@ -266,6 +280,8 @@ export type ResolvedProjectConfig = {
|
|
|
266
280
|
banner?: ClarifyBannerConfig;
|
|
267
281
|
footer?: ClarifyFooterConfig;
|
|
268
282
|
locales?: ResolvedClarifyLocalesConfig;
|
|
283
|
+
/** Default language for built-in UI when locale routing is not configured. */
|
|
284
|
+
defaultLocale?: string;
|
|
269
285
|
variables: ClarifyVariablesConfig;
|
|
270
286
|
features: ResolvedClarifyFeaturesConfig;
|
|
271
287
|
};
|
|
@@ -278,8 +294,12 @@ export type ContentSection = {
|
|
|
278
294
|
};
|
|
279
295
|
export type ContentRouteMeta = {
|
|
280
296
|
title: string;
|
|
281
|
-
|
|
297
|
+
group?: string;
|
|
282
298
|
keywords?: string[];
|
|
299
|
+
description?: string;
|
|
300
|
+
layout?: 'documentation' | 'blog';
|
|
301
|
+
/** Latest source update as an ISO 8601 timestamp. */
|
|
302
|
+
updatedAt?: string;
|
|
283
303
|
sections?: ContentSection[];
|
|
284
304
|
};
|
|
285
305
|
export type PageRouteModule = {
|
|
@@ -377,6 +397,7 @@ export type ClarifyNavigationNode = {
|
|
|
377
397
|
path: string;
|
|
378
398
|
title: string;
|
|
379
399
|
icon?: string;
|
|
400
|
+
layout?: 'documentation' | 'blog';
|
|
380
401
|
children?: ClarifyNavigationNode[];
|
|
381
402
|
sections?: NavigationSection[];
|
|
382
403
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clarify-labs/cli",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.11",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@apidevtools/swagger-parser": "^12.1.0",
|
|
42
|
-
"@clarify-labs/renderer": "0.11.
|
|
43
|
-
"@clarify-labs/templates": "0.11.
|
|
42
|
+
"@clarify-labs/renderer": "0.11.11",
|
|
43
|
+
"@clarify-labs/templates": "0.11.11",
|
|
44
44
|
"@mdx-js/mdx": "^3.1.1",
|
|
45
45
|
"@mdx-js/rollup": "^3.1.1",
|
|
46
46
|
"@modelcontextprotocol/sdk": "^1.29.0",
|