@blaaiz/docs-core 0.6.0 → 0.7.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.
- package/dist/{chunk-2GUUVNTP.js → chunk-L4PFRXIK.js} +11 -2
- package/dist/chunk-L4PFRXIK.js.map +1 -0
- package/dist/generator.js +1 -1
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +1 -1
- package/dist/ui/api-try-it.cjs +4 -1
- package/dist/ui/api-try-it.cjs.map +1 -1
- package/dist/ui/api-try-it.d.cts +4 -2
- package/dist/ui/api-try-it.d.ts +4 -2
- package/dist/ui/api-try-it.js +4 -1
- package/dist/ui/api-try-it.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2GUUVNTP.js.map +0 -1
|
@@ -968,6 +968,15 @@ function createProvider(resolved, apiKey, doFetch) {
|
|
|
968
968
|
return resolved.provider === "anthropic" ? createAnthropicProvider(providerOptions) : createOpenAiProvider(providerOptions);
|
|
969
969
|
}
|
|
970
970
|
function createAskAiRoute(options) {
|
|
971
|
+
if (options.config === void 0) {
|
|
972
|
+
return {
|
|
973
|
+
POST: () => Promise.resolve(
|
|
974
|
+
jsonResponse(404, {
|
|
975
|
+
error: "Ask AI is not enabled: docs.config.ts declares no ai block."
|
|
976
|
+
})
|
|
977
|
+
)
|
|
978
|
+
};
|
|
979
|
+
}
|
|
971
980
|
const resolved = resolveAiConfig(options.config);
|
|
972
981
|
if (typeof options.siteName !== "string" || options.siteName.trim() === "") {
|
|
973
982
|
throw new AiConfigError("siteName must be a non-empty string, e.g. theme.name.");
|
|
@@ -3314,5 +3323,5 @@ function mergeOpenApiDocuments(inputs, options) {
|
|
|
3314
3323
|
}
|
|
3315
3324
|
|
|
3316
3325
|
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 };
|
|
3317
|
-
//# sourceMappingURL=chunk-
|
|
3318
|
-
//# sourceMappingURL=chunk-
|
|
3326
|
+
//# sourceMappingURL=chunk-L4PFRXIK.js.map
|
|
3327
|
+
//# sourceMappingURL=chunk-L4PFRXIK.js.map
|