@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.
@@ -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,
@@ -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-QECXnisE.js';
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-CfTZyFiT.js';
3
+ import '../types-C59QVIss.js';
4
4
  import 'astro';
@@ -3,7 +3,7 @@ import {
3
3
  docsFrontmatterSchema,
4
4
  getConfigDefaults,
5
5
  loadConfig
6
- } from "../chunk-TXSRCD3T.js";
6
+ } from "../chunk-RPBSSV23.js";
7
7
  export {
8
8
  barodocConfigSchema,
9
9
  docsFrontmatterSchema,
@@ -1,4 +1,4 @@
1
- import { b as BarodocI18nConfig, c as BarodocNavItem } from '../types-CfTZyFiT.js';
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-CfTZyFiT.js';
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-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';
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";
@@ -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-CfTZyFiT.js';
2
- export { e as BarodocPluginFactory, i as BuildContext, C as ContentContext } from '../types-CfTZyFiT.js';
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barodoc/core",
3
- "version": "6.0.0",
3
+ "version": "7.0.0",
4
4
  "description": "Core integration for Barodoc documentation framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",