@barodoc/core 5.0.0 → 7.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-RPBSSV23.js} +15 -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-C7DDzFCv.d.ts} +50 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -6
- package/dist/plugins/index.d.ts +2 -2
- package/dist/{types-BSnQ5EUW.d.ts → types-C59QVIss.d.ts} +11 -0
- package/package.json +1 -1
|
@@ -73,6 +73,18 @@ 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();
|
|
84
|
+
var tabSchema = z.object({
|
|
85
|
+
label: z.string(),
|
|
86
|
+
href: z.string()
|
|
87
|
+
});
|
|
76
88
|
var barodocConfigSchema = z.object({
|
|
77
89
|
name: z.string(),
|
|
78
90
|
logo: z.string().optional(),
|
|
@@ -82,6 +94,7 @@ var barodocConfigSchema = z.object({
|
|
|
82
94
|
theme: themeConfigSchema,
|
|
83
95
|
i18n: i18nConfigSchema,
|
|
84
96
|
navigation: z.array(navItemSchema),
|
|
97
|
+
tabs: z.array(tabSchema).optional(),
|
|
85
98
|
topbar: topbarSchema,
|
|
86
99
|
search: searchSchema,
|
|
87
100
|
lineNumbers: lineNumbersSchema,
|
|
@@ -89,6 +102,8 @@ var barodocConfigSchema = z.object({
|
|
|
89
102
|
lastUpdated: z.boolean().optional(),
|
|
90
103
|
announcement: announcementSchema,
|
|
91
104
|
feedback: feedbackSchema,
|
|
105
|
+
blog: blogConfigSchema,
|
|
106
|
+
versions: versionsSchema,
|
|
92
107
|
plugins: z.array(pluginConfigSchema).optional(),
|
|
93
108
|
customCss: z.array(z.string()).optional()
|
|
94
109
|
});
|
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-C7DDzFCv.js';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-C59QVIss.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-C59QVIss.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-C59QVIss.js';
|
|
3
3
|
|
|
4
4
|
declare const grayPresets: readonly ["zinc", "slate", "neutral", "stone", "gray"];
|
|
5
5
|
type GrayPreset = (typeof grayPresets)[number];
|
|
@@ -148,6 +148,16 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
148
148
|
group: z.ZodString;
|
|
149
149
|
pages: z.ZodArray<z.ZodString, "many">;
|
|
150
150
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
151
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
152
|
+
label: z.ZodString;
|
|
153
|
+
href: z.ZodString;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
label: string;
|
|
156
|
+
href: string;
|
|
157
|
+
}, {
|
|
158
|
+
label: string;
|
|
159
|
+
href: string;
|
|
160
|
+
}>, "many">>;
|
|
151
161
|
topbar: z.ZodOptional<z.ZodObject<{
|
|
152
162
|
github: z.ZodOptional<z.ZodString>;
|
|
153
163
|
discord: z.ZodOptional<z.ZodString>;
|
|
@@ -200,6 +210,23 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
200
210
|
enabled: boolean;
|
|
201
211
|
endpoint?: string | undefined;
|
|
202
212
|
}>>;
|
|
213
|
+
blog: z.ZodOptional<z.ZodObject<{
|
|
214
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
enabled?: boolean | undefined;
|
|
217
|
+
}, {
|
|
218
|
+
enabled?: boolean | undefined;
|
|
219
|
+
}>>;
|
|
220
|
+
versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
221
|
+
label: z.ZodString;
|
|
222
|
+
path: z.ZodString;
|
|
223
|
+
}, "strict", z.ZodTypeAny, {
|
|
224
|
+
path: string;
|
|
225
|
+
label: string;
|
|
226
|
+
}, {
|
|
227
|
+
path: string;
|
|
228
|
+
label: string;
|
|
229
|
+
}>, "many">>;
|
|
203
230
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>], null>]>, "many">>;
|
|
204
231
|
customCss: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
205
232
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -236,6 +263,10 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
236
263
|
locales: string[];
|
|
237
264
|
labels?: Record<string, string> | undefined;
|
|
238
265
|
} | undefined;
|
|
266
|
+
tabs?: {
|
|
267
|
+
label: string;
|
|
268
|
+
href: string;
|
|
269
|
+
}[] | undefined;
|
|
239
270
|
topbar?: {
|
|
240
271
|
github?: string | undefined;
|
|
241
272
|
discord?: string | undefined;
|
|
@@ -257,6 +288,13 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
257
288
|
enabled: boolean;
|
|
258
289
|
endpoint?: string | undefined;
|
|
259
290
|
} | undefined;
|
|
291
|
+
blog?: {
|
|
292
|
+
enabled?: boolean | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
versions?: {
|
|
295
|
+
path: string;
|
|
296
|
+
label: string;
|
|
297
|
+
}[] | undefined;
|
|
260
298
|
plugins?: (string | [string, Record<string, unknown>])[] | undefined;
|
|
261
299
|
customCss?: string[] | undefined;
|
|
262
300
|
}, {
|
|
@@ -293,6 +331,10 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
293
331
|
locales: string[];
|
|
294
332
|
labels?: Record<string, string> | undefined;
|
|
295
333
|
} | undefined;
|
|
334
|
+
tabs?: {
|
|
335
|
+
label: string;
|
|
336
|
+
href: string;
|
|
337
|
+
}[] | undefined;
|
|
296
338
|
topbar?: {
|
|
297
339
|
github?: string | undefined;
|
|
298
340
|
discord?: string | undefined;
|
|
@@ -314,6 +356,13 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
314
356
|
enabled: boolean;
|
|
315
357
|
endpoint?: string | undefined;
|
|
316
358
|
} | undefined;
|
|
359
|
+
blog?: {
|
|
360
|
+
enabled?: boolean | undefined;
|
|
361
|
+
} | undefined;
|
|
362
|
+
versions?: {
|
|
363
|
+
path: string;
|
|
364
|
+
label: string;
|
|
365
|
+
}[] | undefined;
|
|
317
366
|
plugins?: (string | [string, Record<string, unknown>])[] | undefined;
|
|
318
367
|
customCss?: string[] | undefined;
|
|
319
368
|
}>;
|
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-C59QVIss.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-C59QVIss.js';
|
|
4
|
+
export { D as DocsFrontmatter, G as GrayPreset, b as barodocConfigSchema, d as docsFrontmatterSchema, g as grayPresets, l as loadConfig } from './index-C7DDzFCv.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
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
barodocConfigSchema,
|
|
3
|
-
docsFrontmatterSchema,
|
|
4
|
-
grayPresets,
|
|
5
|
-
loadConfig
|
|
6
|
-
} from "./chunk-PHWSKL62.js";
|
|
7
1
|
import {
|
|
8
2
|
getLocaleFromPath,
|
|
9
3
|
getLocaleLabel,
|
|
@@ -18,6 +12,12 @@ import {
|
|
|
18
12
|
runConfigHook,
|
|
19
13
|
runHook
|
|
20
14
|
} from "./chunk-UICDSNBG.js";
|
|
15
|
+
import {
|
|
16
|
+
barodocConfigSchema,
|
|
17
|
+
docsFrontmatterSchema,
|
|
18
|
+
grayPresets,
|
|
19
|
+
loadConfig
|
|
20
|
+
} from "./chunk-RPBSSV23.js";
|
|
21
21
|
|
|
22
22
|
// src/integration.ts
|
|
23
23
|
import { existsSync } from "fs";
|
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-C59QVIss.js';
|
|
2
|
+
export { e as BarodocPluginFactory, i as BuildContext, C as ContentContext } from '../types-C59QVIss.js';
|
|
3
3
|
import * as astro from 'astro';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -123,6 +123,10 @@ interface BarodocConfig {
|
|
|
123
123
|
theme?: BarodocThemeConfig;
|
|
124
124
|
i18n?: BarodocI18nConfig;
|
|
125
125
|
navigation: BarodocNavItem[];
|
|
126
|
+
tabs?: {
|
|
127
|
+
label: string;
|
|
128
|
+
href: string;
|
|
129
|
+
}[];
|
|
126
130
|
topbar?: {
|
|
127
131
|
github?: string;
|
|
128
132
|
discord?: string;
|
|
@@ -150,6 +154,13 @@ interface BarodocConfig {
|
|
|
150
154
|
enabled: boolean;
|
|
151
155
|
endpoint?: string;
|
|
152
156
|
};
|
|
157
|
+
blog?: {
|
|
158
|
+
enabled?: boolean;
|
|
159
|
+
};
|
|
160
|
+
versions?: {
|
|
161
|
+
label: string;
|
|
162
|
+
path: string;
|
|
163
|
+
}[];
|
|
153
164
|
plugins?: PluginConfig[];
|
|
154
165
|
customCss?: string[];
|
|
155
166
|
}
|