blume 0.6.3 → 0.6.5

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/cli/index.js CHANGED
@@ -5297,8 +5297,7 @@ var themeConfigSchema = z2.object({
5297
5297
  }).strict().default({}),
5298
5298
  layout: z2.enum(["sidebar"]).default("sidebar"),
5299
5299
  mode: z2.enum(["system", "light", "dark"]).default("system"),
5300
- radius: z2.enum(["none", "sm", "md", "lg"]).default("md"),
5301
- strict: z2.boolean().default(false)
5300
+ radius: z2.enum(["none", "sm", "md", "lg"]).default("md")
5302
5301
  }).strict();
5303
5302
  var algoliaSearchSchema = z2.object({
5304
5303
  appId: z2.string(),
@@ -5382,7 +5381,7 @@ var aiConfigSchema = z2.object({
5382
5381
  });
5383
5382
  }
5384
5383
  }).optional(),
5385
- llmsTxt: z2.boolean().default(false)
5384
+ llmsTxt: z2.boolean().default(true)
5386
5385
  }).strict();
5387
5386
  var featuredLinkSchema = z2.object({
5388
5387
  href: z2.string(),
@@ -9684,6 +9683,13 @@ var pageOrder = (page, filename) => {
9684
9683
  if (filename.replace(extname6(filename), "") === "index") {
9685
9684
  return Number.NEGATIVE_INFINITY;
9686
9685
  }
9686
+ if (page.contentType === "changelog") {
9687
+ const iso = page.meta.date ?? page.meta.changelog?.date;
9688
+ const time = iso ? Date.parse(iso) : Number.NaN;
9689
+ if (!Number.isNaN(time)) {
9690
+ return -time;
9691
+ }
9692
+ }
9687
9693
  return numericOrder(filename);
9688
9694
  };
9689
9695
  var metaKey = (path, metaPrefix) => {
@@ -9728,12 +9734,14 @@ var sortNodes = (nodes) => {
9728
9734
  }
9729
9735
  }
9730
9736
  };
9731
- var hoistPages = (nodes) => {
9737
+ var hoistPages = (nodes, recurse) => {
9732
9738
  const pages = nodes.filter((node) => node.kind === "page");
9733
9739
  const groups = nodes.filter((node) => node.kind === "group");
9734
9740
  nodes.splice(0, nodes.length, ...pages, ...groups);
9735
- for (const group of groups) {
9736
- hoistPages(group.children);
9741
+ if (recurse) {
9742
+ for (const group of groups) {
9743
+ hoistPages(group.children, recurse);
9744
+ }
9737
9745
  }
9738
9746
  };
9739
9747
  var toNavNode = (node, display) => {
@@ -9797,9 +9805,7 @@ var buildFileSystemSidebar = (pages, folderMeta, sharedMeta, metaPrefix, display
9797
9805
  }
9798
9806
  applyFolderMeta(root, folderMeta, sharedMeta, metaPrefix);
9799
9807
  sortNodes(root.children);
9800
- if (display === "flat") {
9801
- hoistPages(root.children);
9802
- }
9808
+ hoistPages(root.children, display === "flat");
9803
9809
  return root.children.map((child) => toNavNode(child, display));
9804
9810
  };
9805
9811
  var normalizeRef = (ref) => {
@@ -11905,5 +11911,5 @@ process.on("unhandledRejection", (error) => {
11905
11911
  });
11906
11912
  runMain(main);
11907
11913
 
11908
- //# debugId=82FACDD032301C6E64756E2164756E21
11914
+ //# debugId=45C17FD85BF8188D64756E2164756E21
11909
11915
  //# sourceMappingURL=index.js.map