@blaaiz/docs-core 0.4.0 → 0.5.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.
@@ -1565,7 +1565,7 @@ function planDocsTree(navigation, options = {}) {
1565
1565
  const apiGroups = [];
1566
1566
  const metas = [];
1567
1567
  const rootPages = [];
1568
- const apiTabDocPages = [];
1568
+ const apiDocLinks = [];
1569
1569
  const apiTabs = navigation.filter((tab) => hasOpenApi(tab.items));
1570
1570
  const soleApiTab = apiTabs.length === 1;
1571
1571
  for (const tab of navigation) {
@@ -1576,7 +1576,7 @@ function planDocsTree(navigation, options = {}) {
1576
1576
  planDocTab(tab);
1577
1577
  }
1578
1578
  metas.unshift({ path: "meta.json", content: { pages: rootPages } });
1579
- return { specs, apiPages, apiGroups, metas, apiTabDocPages };
1579
+ return { specs, apiPages, apiGroups, metas, apiDocLinks };
1580
1580
  function planApiTab(tab) {
1581
1581
  const tabDir = soleApiTab ? apiDir : slugify(tab.title);
1582
1582
  rootPages.push(tabDir);
@@ -1619,7 +1619,8 @@ function planDocsTree(navigation, options = {}) {
1619
1619
  order += 1;
1620
1620
  continue;
1621
1621
  }
1622
- apiTabDocPages.push(item.file);
1622
+ apiDocLinks.push({ file: item.file, dir, order });
1623
+ order += 1;
1623
1624
  }
1624
1625
  return children;
1625
1626
  }
@@ -3119,5 +3120,5 @@ function mergeOpenApiDocuments(inputs, options) {
3119
3120
  }
3120
3121
 
3121
3122
  export { AI_PROVIDER_MODELS, AI_PROVIDER_NAMES, AiConfigError, DocsConfigError, InvalidNavigationError, OpenApiMergeError, ProxyTargetError, SESSION_COOKIE, assertAllowedTarget, buildMetadata, buildRobots, buildSearchIndex, buildSessionCookie, buildSitemap, buildThemeCss, clearSessionCookie, createAskAiRoute, createAuthGate, createEmailSignIn, createGoogleAuth, createMarkdownRoute, createSecretSignIn, createSignOut, createSiteAuth, createTryItProxy, createTryItProxyRoute, defineDocsConfig, isAllowedEmail, mdxToMarkdown, mergeOpenApiDocuments, openApiOperationToMarkdown, parseNavigation, planDocsTree, readCookie, resolveAiConfig, searchIndex, signSession, unwrapProxyTarget, validateDocsConfig, verifySession };
3122
- //# sourceMappingURL=chunk-JHN5XQPU.js.map
3123
- //# sourceMappingURL=chunk-JHN5XQPU.js.map
3123
+ //# sourceMappingURL=chunk-ZWDLAW5M.js.map
3124
+ //# sourceMappingURL=chunk-ZWDLAW5M.js.map