@blaaiz/docs-core 0.7.5 → 0.8.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.
@@ -1781,6 +1781,11 @@ function planDocsTree(navigation, options = {}) {
1781
1781
  entries.push(...planDocItems(item.items, dir, false));
1782
1782
  continue;
1783
1783
  }
1784
+ if (!groupDir.startsWith(`${dir}/`)) {
1785
+ throw new Error(
1786
+ `[docs-core] The doc group '${item.title}' keeps its pages in '${groupDir}', outside its tab's folder '${dir}'. Move the pages under '${dir}/', or give the group a tab of its own.`
1787
+ );
1788
+ }
1784
1789
  const folder = groupDir.slice(dir.length + 1);
1785
1790
  if (headings && tabLevel) {
1786
1791
  entries.push(`---${item.title}---`, `...${folder}`);
@@ -3332,5 +3337,5 @@ function mergeOpenApiDocuments(inputs, options) {
3332
3337
  }
3333
3338
 
3334
3339
  export { AI_PROVIDER_MODELS, AI_PROVIDER_NAMES, AiConfigError, DocsConfigError, InvalidNavigationError, OpenApiMergeError, ProxyTargetError, SESSION_COOKIE, assertAllowedTarget, buildLlmsTxt, buildMetadata, buildRobots, buildSearchIndex, buildSessionCookie, buildSitemap, buildThemeCss, clearSessionCookie, createAskAiRoute, createAuthGate, createEmailSignIn, createGoogleAuth, createMarkdownRoute, createSecretSignIn, createSignOut, createSiteAuth, createTryItProxy, createTryItProxyRoute, curlCodeUsage, defineDocsConfig, hasOpenApi, isAllowedEmail, isMarkdownRouteRequest, markdownRewriteTarget, mdxToMarkdown, mergeOpenApiDocuments, openApiOperationToMarkdown, parseNavigation, planDocsTree, readCookie, redirectTarget, resolveAiConfig, searchIndex, signSession, unwrapProxyTarget, validateDocsConfig, verifySession };
3335
- //# sourceMappingURL=chunk-G6EOGADC.js.map
3336
- //# sourceMappingURL=chunk-G6EOGADC.js.map
3340
+ //# sourceMappingURL=chunk-W74K64WH.js.map
3341
+ //# sourceMappingURL=chunk-W74K64WH.js.map