barodoc 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.
@@ -180,8 +180,32 @@ const docsCollection = defineCollection({
180
180
  }),
181
181
  });
182
182
 
183
+ const blogCollection = defineCollection({
184
+ type: "content",
185
+ schema: z.object({
186
+ title: z.string(),
187
+ description: z.string().optional(),
188
+ excerpt: z.string().optional(),
189
+ date: z.coerce.date().optional(),
190
+ author: z.string().optional(),
191
+ image: z.string().optional(),
192
+ tags: z.array(z.string()).optional(),
193
+ }),
194
+ });
195
+
196
+ const changelogCollection = defineCollection({
197
+ type: "content",
198
+ schema: z.object({
199
+ title: z.string().optional(),
200
+ version: z.string(),
201
+ date: z.coerce.date(),
202
+ }),
203
+ });
204
+
183
205
  export const collections = {
184
206
  docs: docsCollection,
207
+ blog: blogCollection,
208
+ changelog: changelogCollection,
185
209
  };
186
210
  `;
187
211
  }
package/dist/cli.js CHANGED
@@ -6,14 +6,14 @@ import {
6
6
  installDependencies,
7
7
  isCustomProject,
8
8
  loadProjectConfig
9
- } from "./chunk-XWNFQM7S.js";
9
+ } from "./chunk-KYABOR6J.js";
10
10
 
11
11
  // src/cli.ts
12
12
  import cac from "cac";
13
13
  import pc10 from "picocolors";
14
14
 
15
15
  // package.json
16
- var version = "5.0.0";
16
+ var version = "6.0.0";
17
17
 
18
18
  // src/commands/serve.ts
19
19
  import path from "path";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  cleanupProject,
3
3
  createProject
4
- } from "./chunk-XWNFQM7S.js";
4
+ } from "./chunk-KYABOR6J.js";
5
5
 
6
6
  // src/index.ts
7
7
  export * from "@barodoc/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barodoc",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "Documentation framework powered by Astro",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,8 +26,8 @@
26
26
  "picocolors": "^1.1.1",
27
27
  "zod": "^3.24.0",
28
28
  "zod-to-json-schema": "^3.25.1",
29
- "@barodoc/core": "5.0.0",
30
- "@barodoc/theme-docs": "5.0.0"
29
+ "@barodoc/core": "6.0.0",
30
+ "@barodoc/theme-docs": "6.0.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/fs-extra": "^11.0.4",