@barodoc/core 5.0.0 → 6.0.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/{chunk-PHWSKL62.js → chunk-TXSRCD3T.js} +10 -0
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/{index-gZocHQXv.d.ts → index-QECXnisE.d.ts} +32 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/plugins/index.d.ts +2 -2
- package/dist/{types-BSnQ5EUW.d.ts → types-CfTZyFiT.d.ts} +7 -0
- package/package.json +1 -1
|
@@ -73,6 +73,14 @@ var pluginConfigSchema = z.union([
|
|
|
73
73
|
z.string(),
|
|
74
74
|
z.tuple([z.string(), z.record(z.unknown())])
|
|
75
75
|
]);
|
|
76
|
+
var blogConfigSchema = z.object({
|
|
77
|
+
enabled: z.boolean().optional()
|
|
78
|
+
}).optional();
|
|
79
|
+
var versionConfigSchema = z.object({
|
|
80
|
+
label: z.string(),
|
|
81
|
+
path: z.string()
|
|
82
|
+
}).strict();
|
|
83
|
+
var versionsSchema = z.array(versionConfigSchema).optional();
|
|
76
84
|
var barodocConfigSchema = z.object({
|
|
77
85
|
name: z.string(),
|
|
78
86
|
logo: z.string().optional(),
|
|
@@ -89,6 +97,8 @@ var barodocConfigSchema = z.object({
|
|
|
89
97
|
lastUpdated: z.boolean().optional(),
|
|
90
98
|
announcement: announcementSchema,
|
|
91
99
|
feedback: feedbackSchema,
|
|
100
|
+
blog: blogConfigSchema,
|
|
101
|
+
versions: versionsSchema,
|
|
92
102
|
plugins: z.array(pluginConfigSchema).optional(),
|
|
93
103
|
customCss: z.array(z.string()).optional()
|
|
94
104
|
});
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BarodocConfigInput, a as BarodocConfigOutput, D as DocsFrontmatter, b as barodocConfigSchema, d as docsFrontmatterSchema, c as getConfigDefaults, l as loadConfig } from '../index-
|
|
1
|
+
export { B as BarodocConfigInput, a as BarodocConfigOutput, D as DocsFrontmatter, b as barodocConfigSchema, d as docsFrontmatterSchema, c as getConfigDefaults, l as loadConfig } from '../index-QECXnisE.js';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-CfTZyFiT.js';
|
|
4
4
|
import 'astro';
|
package/dist/config/index.js
CHANGED
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as BarodocI18nConfig, c as BarodocNavItem } from '../types-
|
|
1
|
+
import { b as BarodocI18nConfig, c as BarodocNavItem } from '../types-CfTZyFiT.js';
|
|
2
2
|
import 'astro';
|
|
3
3
|
|
|
4
4
|
declare function getLocaleFromPath(path: string, i18n: BarodocI18nConfig): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { R as ResolvedBarodocConfig, a as BarodocConfig } from './types-
|
|
2
|
+
import { R as ResolvedBarodocConfig, a as BarodocConfig } from './types-CfTZyFiT.js';
|
|
3
3
|
|
|
4
4
|
declare const grayPresets: readonly ["zinc", "slate", "neutral", "stone", "gray"];
|
|
5
5
|
type GrayPreset = (typeof grayPresets)[number];
|
|
@@ -200,6 +200,23 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
200
200
|
enabled: boolean;
|
|
201
201
|
endpoint?: string | undefined;
|
|
202
202
|
}>>;
|
|
203
|
+
blog: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
enabled?: boolean | undefined;
|
|
207
|
+
}, {
|
|
208
|
+
enabled?: boolean | undefined;
|
|
209
|
+
}>>;
|
|
210
|
+
versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
211
|
+
label: z.ZodString;
|
|
212
|
+
path: z.ZodString;
|
|
213
|
+
}, "strict", z.ZodTypeAny, {
|
|
214
|
+
path: string;
|
|
215
|
+
label: string;
|
|
216
|
+
}, {
|
|
217
|
+
path: string;
|
|
218
|
+
label: string;
|
|
219
|
+
}>, "many">>;
|
|
203
220
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>], null>]>, "many">>;
|
|
204
221
|
customCss: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
205
222
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -257,6 +274,13 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
257
274
|
enabled: boolean;
|
|
258
275
|
endpoint?: string | undefined;
|
|
259
276
|
} | undefined;
|
|
277
|
+
blog?: {
|
|
278
|
+
enabled?: boolean | undefined;
|
|
279
|
+
} | undefined;
|
|
280
|
+
versions?: {
|
|
281
|
+
path: string;
|
|
282
|
+
label: string;
|
|
283
|
+
}[] | undefined;
|
|
260
284
|
plugins?: (string | [string, Record<string, unknown>])[] | undefined;
|
|
261
285
|
customCss?: string[] | undefined;
|
|
262
286
|
}, {
|
|
@@ -314,6 +338,13 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
314
338
|
enabled: boolean;
|
|
315
339
|
endpoint?: string | undefined;
|
|
316
340
|
} | undefined;
|
|
341
|
+
blog?: {
|
|
342
|
+
enabled?: boolean | undefined;
|
|
343
|
+
} | undefined;
|
|
344
|
+
versions?: {
|
|
345
|
+
path: string;
|
|
346
|
+
label: string;
|
|
347
|
+
}[] | undefined;
|
|
317
348
|
plugins?: (string | [string, Record<string, unknown>])[] | undefined;
|
|
318
349
|
customCss?: string[] | undefined;
|
|
319
350
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AstroIntegration } from 'astro';
|
|
2
|
-
import { B as BarodocOptions } from './types-
|
|
3
|
-
export { a as BarodocConfig, b as BarodocI18nConfig, c as BarodocNavItem, d as BarodocPlugin, e as BarodocPluginFactory, f as BarodocPluginHooks, g as BarodocThemeColors, h as BarodocThemeConfig, i as BuildContext, C as ContentContext, P as PluginConfig, j as PluginContext, R as ResolvedBarodocConfig, k as ResolvedPlugin, T as ThemeExport } from './types-
|
|
4
|
-
export { D as DocsFrontmatter, G as GrayPreset, b as barodocConfigSchema, d as docsFrontmatterSchema, g as grayPresets, l as loadConfig } from './index-
|
|
2
|
+
import { B as BarodocOptions } from './types-CfTZyFiT.js';
|
|
3
|
+
export { a as BarodocConfig, b as BarodocI18nConfig, c as BarodocNavItem, d as BarodocPlugin, e as BarodocPluginFactory, f as BarodocPluginHooks, g as BarodocThemeColors, h as BarodocThemeConfig, i as BuildContext, C as ContentContext, P as PluginConfig, j as PluginContext, R as ResolvedBarodocConfig, k as ResolvedPlugin, T as ThemeExport } from './types-CfTZyFiT.js';
|
|
4
|
+
export { D as DocsFrontmatter, G as GrayPreset, b as barodocConfigSchema, d as docsFrontmatterSchema, g as grayPresets, l as loadConfig } from './index-QECXnisE.js';
|
|
5
5
|
export { getLocaleFromPath, getLocaleLabel, getLocalizedNavGroup, getLocalizedPath, removeLocaleFromPath } from './i18n/index.js';
|
|
6
6
|
export { definePlugin, getPluginIntegrations, loadPlugins, runConfigHook, runHook } from './plugins/index.js';
|
|
7
7
|
import 'zod';
|
package/dist/index.js
CHANGED
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as ResolvedPlugin, j as PluginContext, P as PluginConfig, R as ResolvedBarodocConfig, f as BarodocPluginHooks, d as BarodocPlugin } from '../types-
|
|
2
|
-
export { e as BarodocPluginFactory, i as BuildContext, C as ContentContext } from '../types-
|
|
1
|
+
import { k as ResolvedPlugin, j as PluginContext, P as PluginConfig, R as ResolvedBarodocConfig, f as BarodocPluginHooks, d as BarodocPlugin } from '../types-CfTZyFiT.js';
|
|
2
|
+
export { e as BarodocPluginFactory, i as BuildContext, C as ContentContext } from '../types-CfTZyFiT.js';
|
|
3
3
|
import * as astro from 'astro';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -150,6 +150,13 @@ interface BarodocConfig {
|
|
|
150
150
|
enabled: boolean;
|
|
151
151
|
endpoint?: string;
|
|
152
152
|
};
|
|
153
|
+
blog?: {
|
|
154
|
+
enabled?: boolean;
|
|
155
|
+
};
|
|
156
|
+
versions?: {
|
|
157
|
+
label: string;
|
|
158
|
+
path: string;
|
|
159
|
+
}[];
|
|
153
160
|
plugins?: PluginConfig[];
|
|
154
161
|
customCss?: string[];
|
|
155
162
|
}
|