blume 0.6.5 → 0.6.7

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
@@ -8495,7 +8495,7 @@ pre:has(.line.focused):hover .line:not(.focused) {
8495
8495
  }
8496
8496
  }
8497
8497
 
8498
- .prose :not(pre) > code {
8498
+ .prose :not(pre) > code:not(:where([class~="not-prose"] *)) {
8499
8499
  background: var(--blume-code-background);
8500
8500
  padding: 0.15em 0.35em;
8501
8501
  border-radius: 0.3rem;
@@ -9744,6 +9744,17 @@ var hoistPages = (nodes, recurse) => {
9744
9744
  }
9745
9745
  }
9746
9746
  };
9747
+ var hoistTabSections = (nodes, tabPaths, recurse) => {
9748
+ for (const node of nodes) {
9749
+ if (node.kind !== "group") {
9750
+ continue;
9751
+ }
9752
+ if (node.routePath !== undefined && tabPaths.has(node.routePath)) {
9753
+ hoistPages(node.children, recurse);
9754
+ }
9755
+ hoistTabSections(node.children, tabPaths, recurse);
9756
+ }
9757
+ };
9747
9758
  var toNavNode = (node, display) => {
9748
9759
  if (node.kind === "page") {
9749
9760
  return {
@@ -9767,7 +9778,7 @@ var toNavNode = (node, display) => {
9767
9778
  path: node.routePath
9768
9779
  };
9769
9780
  };
9770
- var buildFileSystemSidebar = (pages, folderMeta, sharedMeta, metaPrefix, display) => {
9781
+ var buildFileSystemSidebar = (pages, folderMeta, sharedMeta, metaPrefix, display, tabPaths) => {
9771
9782
  const root = createGroup("", "", "", 0);
9772
9783
  for (const page of pages) {
9773
9784
  if (page.meta.sidebar.hidden) {
@@ -9806,6 +9817,7 @@ var buildFileSystemSidebar = (pages, folderMeta, sharedMeta, metaPrefix, display
9806
9817
  applyFolderMeta(root, folderMeta, sharedMeta, metaPrefix);
9807
9818
  sortNodes(root.children);
9808
9819
  hoistPages(root.children, display === "flat");
9820
+ hoistTabSections(root.children, tabPaths, display === "flat");
9809
9821
  return root.children.map((child) => toNavNode(child, display));
9810
9822
  };
9811
9823
  var normalizeRef = (ref) => {
@@ -9904,7 +9916,7 @@ var buildNavigation = (pages, options) => {
9904
9916
  return {
9905
9917
  featured,
9906
9918
  selectors,
9907
- sidebar: buildFileSystemSidebar(pages, options.folderMeta, sharedFolderMeta, metaPrefix, display),
9919
+ sidebar: buildFileSystemSidebar(pages, options.folderMeta, sharedFolderMeta, metaPrefix, display, new Set(tabs.map((tab) => tab.path).filter((path) => path !== "/"))),
9908
9920
  tabs
9909
9921
  };
9910
9922
  };
@@ -11911,5 +11923,5 @@ process.on("unhandledRejection", (error) => {
11911
11923
  });
11912
11924
  runMain(main);
11913
11925
 
11914
- //# debugId=45C17FD85BF8188D64756E2164756E21
11926
+ //# debugId=776A1FC12D044B5664756E2164756E21
11915
11927
  //# sourceMappingURL=index.js.map