@fern-api/fern-api-dev 5.78.0 → 5.79.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/cli.cjs +46 -10
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -117799,7 +117799,8 @@ var init_DocsYmlSchemas = __esm({
|
|
|
117799
117799
|
"ai-examples": external_exports.boolean().optional(),
|
|
117800
117800
|
"ai-example-style-instructions": external_exports.string().optional(),
|
|
117801
117801
|
"exclude-apis": external_exports.boolean().optional(),
|
|
117802
|
-
"basepath-aware": external_exports.boolean().optional()
|
|
117802
|
+
"basepath-aware": external_exports.boolean().optional(),
|
|
117803
|
+
"external-sitemaps": external_exports.array(external_exports.string()).optional()
|
|
117803
117804
|
});
|
|
117804
117805
|
GitLibraryInputSchema = external_exports.object({
|
|
117805
117806
|
git: external_exports.string(),
|
|
@@ -122972,7 +122973,8 @@ var init_ExperimentalConfig2 = __esm({
|
|
|
122972
122973
|
aiExamples: schemas_exports6.property("ai-examples", schemas_exports6.boolean().optional()),
|
|
122973
122974
|
aiExampleStyleInstructions: schemas_exports6.property("ai-example-style-instructions", schemas_exports6.string().optional()),
|
|
122974
122975
|
excludeApis: schemas_exports6.property("exclude-apis", schemas_exports6.boolean().optional()),
|
|
122975
|
-
basepathAware: schemas_exports6.property("basepath-aware", schemas_exports6.boolean().optional())
|
|
122976
|
+
basepathAware: schemas_exports6.property("basepath-aware", schemas_exports6.boolean().optional()),
|
|
122977
|
+
externalSitemaps: schemas_exports6.property("external-sitemaps", schemas_exports6.list(schemas_exports6.string()).optional())
|
|
122976
122978
|
});
|
|
122977
122979
|
}
|
|
122978
122980
|
});
|
|
@@ -233834,7 +233836,8 @@ function convertSettingsConfig(settings) {
|
|
|
233834
233836
|
defaultSearchFilters: defaultFilterByCurrentProduct,
|
|
233835
233837
|
search: {
|
|
233836
233838
|
prioritizeCurrentProduct,
|
|
233837
|
-
defaultFilterByCurrentProduct
|
|
233839
|
+
defaultFilterByCurrentProduct,
|
|
233840
|
+
externalSitemaps: void 0
|
|
233838
233841
|
},
|
|
233839
233842
|
language: settings.language ?? "en",
|
|
233840
233843
|
disableSearch: settings.disableSearch ?? false,
|
|
@@ -463197,7 +463200,7 @@ var init_DocsDefinitionResolver = __esm({
|
|
|
463197
463200
|
}),
|
|
463198
463201
|
typographyV2: this.convertDocsTypographyConfiguration(),
|
|
463199
463202
|
layout: this.parsedDocsConfig.layout,
|
|
463200
|
-
settings: this.
|
|
463203
|
+
settings: this.convertDocsSettings(),
|
|
463201
463204
|
css: this.parsedDocsConfig.css,
|
|
463202
463205
|
js: this.convertJavascriptConfiguration(),
|
|
463203
463206
|
agents: this.parsedDocsConfig.agents != null || this.parsedDocsConfig.llmsTxtFile != null || this.parsedDocsConfig.llmsFullTxtFile != null || this.parsedDocsConfig.robotsTxtFile != null ? {
|
|
@@ -464456,6 +464459,25 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
464456
464459
|
fontVariationSettings: font.fontVariationSettings
|
|
464457
464460
|
};
|
|
464458
464461
|
}
|
|
464462
|
+
// Merges the experimental `external-sitemaps` list into `settings.search`
|
|
464463
|
+
// so it is persisted through FDR and read back during Algolia reindexing.
|
|
464464
|
+
// The `as` cast mirrors convertMetadata(): the published FDR SDK
|
|
464465
|
+
// SearchSettingsConfig type does not yet include `externalSitemaps`, but FDR
|
|
464466
|
+
// stores and serves the field at runtime.
|
|
464467
|
+
convertDocsSettings() {
|
|
464468
|
+
const settings = this.parsedDocsConfig.settings;
|
|
464469
|
+
const externalSitemaps = this.parsedDocsConfig.experimental?.externalSitemaps;
|
|
464470
|
+
if (externalSitemaps == null || externalSitemaps.length === 0) {
|
|
464471
|
+
return settings;
|
|
464472
|
+
}
|
|
464473
|
+
return {
|
|
464474
|
+
...settings,
|
|
464475
|
+
search: {
|
|
464476
|
+
...settings?.search,
|
|
464477
|
+
externalSitemaps
|
|
464478
|
+
}
|
|
464479
|
+
};
|
|
464480
|
+
}
|
|
464459
464481
|
convertJavascriptConfiguration() {
|
|
464460
464482
|
if (this.parsedDocsConfig.js == null) {
|
|
464461
464483
|
return;
|
|
@@ -691474,7 +691496,7 @@ var AccessTokenPosthogManager = class {
|
|
|
691474
691496
|
properties: {
|
|
691475
691497
|
...event,
|
|
691476
691498
|
...event.properties,
|
|
691477
|
-
version: "5.
|
|
691499
|
+
version: "5.79.0",
|
|
691478
691500
|
usingAccessToken: true,
|
|
691479
691501
|
...getRunIdProperties()
|
|
691480
691502
|
}
|
|
@@ -691540,7 +691562,7 @@ var UserPosthogManager = class {
|
|
|
691540
691562
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
691541
691563
|
event: "CLI",
|
|
691542
691564
|
properties: {
|
|
691543
|
-
version: "5.
|
|
691565
|
+
version: "5.79.0",
|
|
691544
691566
|
...event,
|
|
691545
691567
|
...event.properties,
|
|
691546
691568
|
usingAccessToken: false,
|
|
@@ -872646,7 +872668,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
872646
872668
|
var LOGS_FOLDER_NAME = "logs";
|
|
872647
872669
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
872648
872670
|
function getCliSource() {
|
|
872649
|
-
const version7 = "5.
|
|
872671
|
+
const version7 = "5.79.0";
|
|
872650
872672
|
return `cli@${version7}`;
|
|
872651
872673
|
}
|
|
872652
872674
|
var DebugLogger = class {
|
|
@@ -899344,6 +899366,20 @@ var definitions6 = {
|
|
|
899344
899366
|
}
|
|
899345
899367
|
],
|
|
899346
899368
|
description: "Deprecated: Use `multi-source: true` on the instance instead. When enabled, docs registration uses a basepath-aware S3 key format, allowing multiple independent doc sites to be hosted under the same custom domain with different basepaths."
|
|
899369
|
+
},
|
|
899370
|
+
"external-sitemaps": {
|
|
899371
|
+
oneOf: [
|
|
899372
|
+
{
|
|
899373
|
+
type: "array",
|
|
899374
|
+
items: {
|
|
899375
|
+
type: "string"
|
|
899376
|
+
}
|
|
899377
|
+
},
|
|
899378
|
+
{
|
|
899379
|
+
type: "null"
|
|
899380
|
+
}
|
|
899381
|
+
],
|
|
899382
|
+
description: "Experimental flag: a list of absolute URLs pointing to external sitemaps (`sitemap.xml`). Their pages are fetched and indexed in search alongside this site's documentation (tagged to the same domain), but are flagged as third-party so they rank below all first-party documentation."
|
|
899347
899383
|
}
|
|
899348
899384
|
},
|
|
899349
899385
|
additionalProperties: false
|
|
@@ -905299,7 +905335,7 @@ var LegacyDocsPublisher = class {
|
|
|
905299
905335
|
previewId,
|
|
905300
905336
|
disableTemplates: void 0,
|
|
905301
905337
|
skipUpload,
|
|
905302
|
-
cliVersion: "5.
|
|
905338
|
+
cliVersion: "5.79.0",
|
|
905303
905339
|
loginCommand: "fern auth login"
|
|
905304
905340
|
});
|
|
905305
905341
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -972212,7 +972248,7 @@ function getAutomationContextFromEnv() {
|
|
|
972212
972248
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
972213
972249
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
972214
972250
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
972215
|
-
cli_version: "5.
|
|
972251
|
+
cli_version: "5.79.0"
|
|
972216
972252
|
};
|
|
972217
972253
|
}
|
|
972218
972254
|
function isAutomationMode() {
|
|
@@ -973044,7 +973080,7 @@ var CliContext = class _CliContext {
|
|
|
973044
973080
|
if (false) {
|
|
973045
973081
|
this.logger.error("CLI_VERSION is not defined");
|
|
973046
973082
|
}
|
|
973047
|
-
return "5.
|
|
973083
|
+
return "5.79.0";
|
|
973048
973084
|
}
|
|
973049
973085
|
getCliName() {
|
|
973050
973086
|
if (false) {
|
package/package.json
CHANGED