@fern-api/fern-api-dev 5.7.7-3-gf0ca1035dc8 → 5.7.8-2-ge7bbdf30acb
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 +24 -12
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -622577,7 +622577,7 @@ var AccessTokenPosthogManager = class {
|
|
|
622577
622577
|
properties: {
|
|
622578
622578
|
...event,
|
|
622579
622579
|
...event.properties,
|
|
622580
|
-
version: "5.7.
|
|
622580
|
+
version: "5.7.8-2-ge7bbdf30acb",
|
|
622581
622581
|
usingAccessToken: true
|
|
622582
622582
|
}
|
|
622583
622583
|
});
|
|
@@ -622631,7 +622631,7 @@ var UserPosthogManager = class {
|
|
|
622631
622631
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
622632
622632
|
event: "CLI",
|
|
622633
622633
|
properties: {
|
|
622634
|
-
version: "5.7.
|
|
622634
|
+
version: "5.7.8-2-ge7bbdf30acb",
|
|
622635
622635
|
...event,
|
|
622636
622636
|
...event.properties,
|
|
622637
622637
|
usingAccessToken: false,
|
|
@@ -814249,18 +814249,25 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
814249
814249
|
const relativeFilePath = this.toRelativeFilepath(item.overviewAbsolutePath);
|
|
814250
814250
|
let pageId = relativeFilePath ? navigation_exports.PageId(relativeFilePath) : void 0;
|
|
814251
814251
|
const id2 = this.#idgen.get(pageId ?? `${prefix2}/section`);
|
|
814252
|
-
const
|
|
814253
|
-
|
|
814254
|
-
|
|
814255
|
-
|
|
814256
|
-
|
|
814252
|
+
const fullSlugParts = item.overviewAbsolutePath ? this.markdownFilesToFullSlugs.get(item.overviewAbsolutePath)?.split("/") : void 0;
|
|
814253
|
+
const urlSlug = item.slug ?? kebabCase_default(item.title);
|
|
814254
|
+
let sectionSlug;
|
|
814255
|
+
let childrenParentSlug;
|
|
814256
|
+
if (item.skipUrlSlug && fullSlugParts != null) {
|
|
814257
|
+
sectionSlug = parentSlug.apply({ urlSlug, fullSlug: fullSlugParts });
|
|
814258
|
+
childrenParentSlug = parentSlug.apply({ urlSlug, skipUrlSlug: true });
|
|
814259
|
+
} else {
|
|
814260
|
+
const slug = parentSlug.apply({ urlSlug, fullSlug: fullSlugParts, skipUrlSlug: item.skipUrlSlug });
|
|
814261
|
+
sectionSlug = slug;
|
|
814262
|
+
childrenParentSlug = slug;
|
|
814263
|
+
}
|
|
814257
814264
|
const noindex = item.overviewAbsolutePath != null ? this.markdownFilesToNoIndex.get(item.overviewAbsolutePath) : void 0;
|
|
814258
814265
|
const frontmatterAvailability = item.overviewAbsolutePath != null ? this.markdownFilesToAvailability.get(item.overviewAbsolutePath) : void 0;
|
|
814259
814266
|
const hiddenSection = hideChildren || item.hidden;
|
|
814260
814267
|
const children2 = await Promise.all(item.contents.map((child) => this.toNavigationChild({
|
|
814261
814268
|
prefix: id2,
|
|
814262
814269
|
item: child,
|
|
814263
|
-
parentSlug:
|
|
814270
|
+
parentSlug: childrenParentSlug,
|
|
814264
814271
|
hideChildren: hiddenSection,
|
|
814265
814272
|
parentAvailability: item.availability ?? parentAvailability
|
|
814266
814273
|
})));
|
|
@@ -814275,7 +814282,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
814275
814282
|
id: id2,
|
|
814276
814283
|
type: "section",
|
|
814277
814284
|
overviewPageId: pageId,
|
|
814278
|
-
slug:
|
|
814285
|
+
slug: sectionSlug.get(),
|
|
814279
814286
|
title: item.overviewAbsolutePath != null ? this.markdownFilesToSidebarTitle.get(item.overviewAbsolutePath) ?? item.title : item.title,
|
|
814280
814287
|
icon: this.resolveIconFileId(item.icon),
|
|
814281
814288
|
collapsed: item.collapsed,
|
|
@@ -847357,7 +847364,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
847357
847364
|
var LOGS_FOLDER_NAME = "logs";
|
|
847358
847365
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
847359
847366
|
function getCliSource() {
|
|
847360
|
-
const version7 = "5.7.
|
|
847367
|
+
const version7 = "5.7.8-2-ge7bbdf30acb";
|
|
847361
847368
|
return `cli@${version7}`;
|
|
847362
847369
|
}
|
|
847363
847370
|
var DebugLogger = class {
|
|
@@ -859973,7 +859980,7 @@ var LegacyDocsPublisher = class {
|
|
|
859973
859980
|
previewId,
|
|
859974
859981
|
disableTemplates: void 0,
|
|
859975
859982
|
skipUpload,
|
|
859976
|
-
cliVersion: "5.7.
|
|
859983
|
+
cliVersion: "5.7.8-2-ge7bbdf30acb",
|
|
859977
859984
|
loginCommand: "fern auth login"
|
|
859978
859985
|
});
|
|
859979
859986
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -934415,7 +934422,7 @@ var CliContext = class _CliContext {
|
|
|
934415
934422
|
if (false) {
|
|
934416
934423
|
this.logger.error("CLI_VERSION is not defined");
|
|
934417
934424
|
}
|
|
934418
|
-
return "5.7.
|
|
934425
|
+
return "5.7.8-2-ge7bbdf30acb";
|
|
934419
934426
|
}
|
|
934420
934427
|
getCliName() {
|
|
934421
934428
|
if (false) {
|
|
@@ -942166,6 +942173,11 @@ async function previewDocsWorkspace({
|
|
|
942166
942173
|
const project = await loadProject2();
|
|
942167
942174
|
const docsWorkspace = project.docsWorkspaces;
|
|
942168
942175
|
if (docsWorkspace == null) {
|
|
942176
|
+
cliContext.failAndThrow(
|
|
942177
|
+
"No docs.yml found in your Fern project. Add a docs.yml to configure your documentation site.",
|
|
942178
|
+
void 0,
|
|
942179
|
+
{ code: CliError.Code.ConfigError }
|
|
942180
|
+
);
|
|
942169
942181
|
return;
|
|
942170
942182
|
}
|
|
942171
942183
|
if (legacyPreview) {
|
package/package.json
CHANGED