@barodoc/core 6.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-TXSRCD3T.js → chunk-RPBSSV23.js} +5 -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-QECXnisE.d.ts → index-C7DDzFCv.d.ts} +19 -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-CfTZyFiT.d.ts → types-C59QVIss.d.ts} +4 -0
- package/package.json +1 -1
|
@@ -81,6 +81,10 @@ var versionConfigSchema = z.object({
|
|
|
81
81
|
path: z.string()
|
|
82
82
|
}).strict();
|
|
83
83
|
var versionsSchema = z.array(versionConfigSchema).optional();
|
|
84
|
+
var tabSchema = z.object({
|
|
85
|
+
label: z.string(),
|
|
86
|
+
href: z.string()
|
|
87
|
+
});
|
|
84
88
|
var barodocConfigSchema = z.object({
|
|
85
89
|
name: z.string(),
|
|
86
90
|
logo: z.string().optional(),
|
|
@@ -90,6 +94,7 @@ var barodocConfigSchema = z.object({
|
|
|
90
94
|
theme: themeConfigSchema,
|
|
91
95
|
i18n: i18nConfigSchema,
|
|
92
96
|
navigation: z.array(navItemSchema),
|
|
97
|
+
tabs: z.array(tabSchema).optional(),
|
|
93
98
|
topbar: topbarSchema,
|
|
94
99
|
search: searchSchema,
|
|
95
100
|
lineNumbers: lineNumbersSchema,
|
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>;
|
|
@@ -253,6 +263,10 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
253
263
|
locales: string[];
|
|
254
264
|
labels?: Record<string, string> | undefined;
|
|
255
265
|
} | undefined;
|
|
266
|
+
tabs?: {
|
|
267
|
+
label: string;
|
|
268
|
+
href: string;
|
|
269
|
+
}[] | undefined;
|
|
256
270
|
topbar?: {
|
|
257
271
|
github?: string | undefined;
|
|
258
272
|
discord?: string | undefined;
|
|
@@ -317,6 +331,10 @@ declare const barodocConfigSchema: z.ZodObject<{
|
|
|
317
331
|
locales: string[];
|
|
318
332
|
labels?: Record<string, string> | undefined;
|
|
319
333
|
} | undefined;
|
|
334
|
+
tabs?: {
|
|
335
|
+
label: string;
|
|
336
|
+
href: string;
|
|
337
|
+
}[] | undefined;
|
|
320
338
|
topbar?: {
|
|
321
339
|
github?: string | undefined;
|
|
322
340
|
discord?: string | undefined;
|
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-TXSRCD3T.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
|
/**
|